接口 Flag
- 所有已知实现类:
JImBackendFlags.Type,JImButtonFlags.Type,JImColorEditFlags.Type,JImComboFlags.Type,JImCond.Type,JImConfigFlags.Type,JImDirection.Type,JImDrawCornerFlags.Type,JImDrawListFlags.Type,JImFocusedFlags.Type,JImFontAtlasFlags.Type,JImHoveredFlags.Type,JImInputTextFlags.Type,JImItemFlags.Type,JImMouseButton.Type,JImPopupFlags.Type,JImSelectableFlags.Type,JImSliderFlags.Type,JImSortDirection.Type,JImTabBarFlags.Type,JImTabItemFlags.Type,JImTableBgTarget.Type,JImTableColumnFlags.Type,JImTableFlags.Type,JImTableRowFlags.Type,JImTreeNodeFlags.Type,JImWindowFlags.Type
public interface Flag
-
方法概要
修饰符和类型方法说明intget()static <E extends @NotNull Flag>
@NotNull E @NotNull []getAsFlags(@NotNull Class<@NotNull E> enumType, int flags)This method assumes that all Flag.Type classes have a enum at position 0 labeled NoSuchFlag that takes the default or nothing value for error prevention.static intgetAsValue(@NotNull Flag @NotNull ... flagSelection)static booleanstatic <E extends @NotNull Flag>
EreverseLookup(@NotNull Class<@NotNull E> enumType, int flag)This method assumes that all Flag.Type classes have a enum at position 0 labeled NoSuchFlag that takes the default or nothing value for error prevention.
-
方法详细资料
-
get
int get() -
hasFlag
- 参数:
flag- to check forflags- to check if flag is contained within- 返回:
- boolean true of flag was found
-
reverseLookup
@NotNull static <E extends @NotNull Flag> E reverseLookup(@NotNull @NotNull Class<@NotNull E> enumType, int flag)This method assumes that all Flag.Type classes have a enum at position 0 labeled NoSuchFlag that takes the default or nothing value for error prevention.- 类型参数:
E- the Flag which extends Enum- 参数:
enumType- class that and enum type that extends Flagflag- the flag to lookup- 返回:
- the Flag which is the flag int value
-
getAsFlags
@NotNull static <E extends @NotNull Flag> @NotNull E @NotNull [] getAsFlags(@NotNull @NotNull Class<@NotNull E> enumType, int flags)This method assumes that all Flag.Type classes have a enum at position 0 labeled NoSuchFlag that takes the default or nothing value for error prevention.- 类型参数:
E- the Flag which extends Enum- 参数:
enumType- class that and enum type that extends Flagflags- the flags to lookup- 返回:
- the flags which is the flags int values
-
getAsValue
- 参数:
flagSelection- Flags- 返回:
- value of all the flags set
-