Enumeration
Gtk.StateFlags
Description [src]
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.
Members
Name | Nickname | Value | Description |
---|---|---|---|
GTK_STATE_FLAG_NORMAL |
"normal" |
0 |
State during normal operation |
GTK_STATE_FLAG_ACTIVE |
"active" |
1 |
Widget is active |
GTK_STATE_FLAG_PRELIGHT |
"prelight" |
2 |
Widget has a mouse pointer over it |
GTK_STATE_FLAG_SELECTED |
"selected" |
4 |
Widget is selected |
GTK_STATE_FLAG_INSENSITIVE |
"insensitive" |
8 |
Widget is insensitive |
GTK_STATE_FLAG_INCONSISTENT |
"inconsistent" |
16 |
Widget is inconsistent |
GTK_STATE_FLAG_FOCUSED |
"focused" |
32 |
Widget has the keyboard focus |
GTK_STATE_FLAG_BACKDROP |
"backdrop" |
64 |
Widget is in a background toplevel window |
GTK_STATE_FLAG_DIR_LTR |
"dir-ltr" |
128 |
Widget is in left-to-right text direction |
GTK_STATE_FLAG_DIR_RTL |
"dir-rtl" |
256 |
Widget is in right-to-left text direction |
GTK_STATE_FLAG_LINK |
"link" |
512 |
Widget is a link |
GTK_STATE_FLAG_VISITED |
"visited" |
1024 |
The location the widget points to has already been visited |
GTK_STATE_FLAG_CHECKED |
"checked" |
2048 |
Widget is checked |
GTK_STATE_FLAG_DROP_ACTIVE |
"drop-active" |
4096 |
Widget is highlighted as a drop target for DND |
GTK_STATE_FLAG_FOCUS_VISIBLE |
"focus-visible" |
8192 |
Widget has the visible focus |
GTK_STATE_FLAG_FOCUS_WITHIN |
"focus-within" |
16384 |
Widget contains the keyboard focus |