Package: gtk

GFlags gtk:state-flags

Declaration

(gobject:define-gflags "GtkStateFlags" 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))
  (:focus-visible #.(ash 1 13))
  (:focus-within  #.(ash 1 14)))  

Values

: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.

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.
 

See also

2024-4-24