Package org.gnome.gtk
Enum Class AccessibleState
- All Implemented Interfaces:
Serializable,Comparable<AccessibleState>,Constable,Enumeration
@Generated("io.github.jwharm.JavaGI")
public enum AccessibleState
extends Enum<AccessibleState>
implements Enumeration
The possible accessible states of a
Accessible.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA “busy” state.A “checked” state; indicates the current state of aCheckButton.A “disabled” state; corresponds to theWidget:sensitiveproperty.An “expanded” state; corresponds to theExpander:expandedproperty.A “hidden” state; corresponds to theWidget:visibleproperty.An “invalid” state; set when a widget is showing an error.A “pressed” state; indicates the current state of aToggleButton.A “selected” state; set when a widget is selected.Indicates that a widget with the GTK_ACCESSIBLE_ROLE_LINK has been visited. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable TypegetType()Get the GType of the AccessibleState classintgetValue()Get the numeric value of this enumvoidInitializesvaluewith the appropriate type for thestate.static AccessibleStateof(int value) Create a new AccessibleState for the provided valuestatic AccessibleStateof(MemorySegment address) Create a new AccessibleState for the value in the provided memory address.static AccessibleStateReturns the enum constant of this class with the specified name.static AccessibleState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BUSY
A “busy” state. This state has boolean values -
CHECKED
A “checked” state; indicates the current state of aCheckButton. Value type:AccessibleTristate -
DISABLED
A “disabled” state; corresponds to theWidget:sensitiveproperty. It indicates a UI element that is perceivable, but not editable or operable. Value type: boolean -
EXPANDED
An “expanded” state; corresponds to theExpander:expandedproperty. Value type: boolean or undefined -
HIDDEN
A “hidden” state; corresponds to theWidget:visibleproperty. You can use this state explicitly on UI elements that should not be exposed to an assistive technology. Value type: boolean See also:DISABLED -
INVALID
An “invalid” state; set when a widget is showing an error. Value type:AccessibleInvalidState -
PRESSED
A “pressed” state; indicates the current state of aToggleButton. Value type:AccessibleTristateenumeration -
SELECTED
A “selected” state; set when a widget is selected. Value type: boolean or undefined -
VISITED
Indicates that a widget with the GTK_ACCESSIBLE_ROLE_LINK has been visited. Value type: boolean.- Since:
- 4.12
-
-
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 AccessibleState for the provided value- Parameters:
value- the enum value- Returns:
- the enum for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValuein interfaceEnumeration- Returns:
- the enum value
-
of
Create a new AccessibleState for the value in the provided memory address.- Parameters:
address- the memory address holding a enum value- Returns:
- the enum for the value in the provided memory address
-
getType
Get the GType of the AccessibleState class- Returns:
- the GType
-
initValue
Initializesvaluewith the appropriate type for thestate.This function is mostly meant for language bindings, in conjunction with gtk_accessible_update_relation_state().
- Parameters:
value- an uninitializedGValue
-