GtkStateFlags

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.

Values

ValueMeaning
Normal0

State during normal operation.

Active1

Widget is active.

Prelight2

Widget has a mouse pointer over it.

Selected4

Widget is selected.

Insensitive8

Widget is insensitive.

Inconsistent16

Widget is inconsistent.

Focused32

Widget has the keyboard focus.

Backdrop64

Widget is in a background toplevel window.

DirLtr128

Widget is in left-to-right text direction. Since 3.8

DirRtl256

Widget is in right-to-left text direction. Since 3.8

Visited1024

The location the widget points to has already been visited. Since 3.12

Checked2048

Widget is checked. Since 3.14

DropActive4096

Widget is highlighted as a drop target for DND. Since 3.20