Package org.gnome.gtk
Enum Class StateFlags
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<StateFlags>
,Constable
@Generated("io.github.jwharm.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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionWidget is activeWidget is in a background toplevel windowWidget is checkedWidget is in left-to-right text directionWidget is in right-to-left text directionWidget is highlighted as a drop target for DNDWidget has the visible focusWidget contains the keyboard focusWidget has the keyboard focusWidget is inconsistentWidget is insensitiveWidget is a linkState during normal operationWidget has a mouse pointer over itWidget is selectedThe location the widget points to has already been visited -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the StateFlags classint
getValue()
Get the numeric value of this enumstatic StateFlags
of
(int value) Create a new StateFlags for the provided valuestatic StateFlags
Returns the enum constant of this class with the specified name.static StateFlags[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL
State during normal operation -
ACTIVE
Widget is active -
PRELIGHT
Widget has a mouse pointer over it -
SELECTED
Widget is selected -
INSENSITIVE
Widget is insensitive -
INCONSISTENT
Widget is inconsistent -
FOCUSED
Widget has the keyboard focus -
BACKDROP
Widget is in a background toplevel window -
DIR_LTR
Widget is in left-to-right text direction -
DIR_RTL
Widget is in right-to-left text direction -
LINK
Widget is a link -
VISITED
The location the widget points to has already been visited -
CHECKED
Widget is checked -
DROP_ACTIVE
Widget is highlighted as a drop target for DND -
FOCUS_VISIBLE
Widget has the visible focus -
FOCUS_WITHIN
Widget contains the keyboard focus
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
of
Create a new StateFlags for the provided value- Parameters:
value
- the bitfield value- Returns:
- the bitfield for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-