接口 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
  • 方法概要

    修饰符和类型
    方法
    说明
    int
    get()
     
    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 int
    getAsValue​(@NotNull Flag @NotNull ... flagSelection)
     
    static boolean
    hasFlag​(int flag, @NotNull Flag @NotNull ... flags)
     
    static <E extends @NotNull Flag>
    E
    reverseLookup​(@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

      static boolean hasFlag(int flag, @NotNull @NotNull Flag @NotNull ... flags)
      参数:
      flag - to check for
      flags - 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 Flag
      flag - 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 Flag
      flags - the flags to lookup
      返回:
      the flags which is the flags int values
    • getAsValue

      static int getAsValue(@NotNull @NotNull Flag @NotNull ... flagSelection)
      参数:
      flagSelection - Flags
      返回:
      value of all the flags set