Package: gtk

GFlags gtk-state-flags

Details

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.
(define-g-flags "GtkStateFlags" gtk-state-flags
  (:export t
   :type-initializer "gtk_state_flags_get_type")
  (:normal 0)
  (:active       #.(ash 1 0))
  (:prelight     #.(ash 1 1))
  (:selected     #.(ash 1 2))
  (:insensitive  #.(ash 1 3))
  (:inconsistent #.(ash 1 4))
  (:focused      #.(ash 1 5))
  (:backdrop     #.(ash 1 6))
  (:dir-ltr      #.(ash 1 7))
  (:dir-rtl      #.(ash 1 8))
  (:link         #.(ash 1 9))
  (:visited      #.(ash 1 10))
  (:checked      #.(ash 1 11))
  (:drop-active  #.(ash 1 12)))  
: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. Since 3.20
 

See also

2021-7-4