This type indicates the current state of a widget. The state determines how the widget is drawn. The
gtk-state-type
enumeration is also used to identify different colors in a deprecated
GtkStyle object for drawing, so states can be used for subparts of a
widget as well as entire widgets.
Warning
The
gtk-state-type enumeration has been deprecated since version 3.14
and should not be used in newly written code. All APIs that are using this
enumeration have been deprecated in favor of alternatives using the
gtk-state-flags flags.
(define-g-enum "GtkStateType" gtk-state-type
(:export t
:type-initializer "gtk_state_type_get_type")
(:normal 0)
(:active 1)
(:prelight 2)
(:selected 3)
(:insensitive 4)
(:inconsistent 5)
(:focused 6))
- :normal
- State during normal operation.
- :active
- State of a currently active widget, such as a depressed button.
- :prelight
- State indicating that the mouse pointer is over the widget and the widget will respond to mouse clicks.
- :selected
- State of a selected item, such the selected row in a list.
- :insensitive
- State indicating that the widget is unresponsive to user actions.
- :inconsistent
- The widget is inconsistent, such as checkbuttons or radiobuttons that aren't either set to true nor nil, or buttons requiring the user attention.
- :focused
- The widget has the keyboard focus.