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.

DIR_LTR128

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

DIR_RTL256

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

DROP_ACTIVE4096

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