Enum Class StateFlags

java.lang.Object
java.lang.Enum<StateFlags>
org.gnome.gtk.StateFlags
All Implemented Interfaces:
Serializable, Comparable<StateFlags>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum StateFlags extends Enum<StateFlags> implements Enumeration

Describes a widget state.

Widget states are used to match the widget against CSS pseudo-classes. Note that GTK extends the regular CSS classes and sometimes uses different names.

  • Enum Constant Details

    • NORMAL

      public static final StateFlags NORMAL
      State during normal operation
    • ACTIVE

      public static final StateFlags ACTIVE
      Widget is active
    • PRELIGHT

      public static final StateFlags PRELIGHT
      Widget has a mouse pointer over it
    • SELECTED

      public static final StateFlags SELECTED
      Widget is selected
    • INSENSITIVE

      public static final StateFlags INSENSITIVE
      Widget is insensitive
    • INCONSISTENT

      public static final StateFlags INCONSISTENT
      Widget is inconsistent
    • FOCUSED

      public static final StateFlags FOCUSED
      Widget has the keyboard focus
    • BACKDROP

      public static final StateFlags BACKDROP
      Widget is in a background toplevel window
    • DIR_LTR

      public static final StateFlags DIR_LTR
      Widget is in left-to-right text direction
    • DIR_RTL

      public static final StateFlags DIR_RTL
      Widget is in right-to-left text direction
    • VISITED

      public static final StateFlags VISITED
      The location the widget points to has already been visited
    • CHECKED

      public static final StateFlags CHECKED
      Widget is checked
    • DROP_ACTIVE

      public static final StateFlags DROP_ACTIVE
      Widget is highlighted as a drop target for DND
    • FOCUS_VISIBLE

      public static final StateFlags FOCUS_VISIBLE
      Widget has the visible focus
    • FOCUS_WITHIN

      public static final StateFlags FOCUS_WITHIN
      Widget contains the keyboard focus
  • Method Details

    • values

      public static StateFlags[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static StateFlags valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static Set<StateFlags> of(int flags)
      Create a new EnumSet<StateFlags> for the provided bitfield
      Parameters:
      flags - the StateFlags bitfield
      Returns:
      the EnumSet for the provided bitfield
    • of

      public static Set<StateFlags> of(MemorySegment address)
      Create a new EnumSet<StateFlags> for the bitfield in the provided memory address.
      Parameters:
      address - the memory address holding a bitfield value
      Returns:
      the EnumSet for the bitfield in the provided memory address
    • getType

      public static @Nullable Type getType()
      Get the GType of the StateFlags class.
      Returns:
      the GType