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

DIR_RTL256

Widget is in right-to-left text direction

VISITED1024

The location the widget points to has already been visited

CHECKED2048

Widget is checked

DROP_ACTIVE4096

Widget is highlighted as a drop target for DND

FOCUS_VISIBLE8192

Widget has the visible focus

FOCUS_WITHIN16384

Widget contains the keyboard focus

Meta