### Enumeration

# Gtk StateFlags

since: 4.0

#### Declaration

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

Available since: 4.0

#### Members

`GTK_STATE_FLAG_NORMAL`

  State during normal operation.

  - Value: `0`
  - Nickname: `normal`
  - Available since: 4.0
`GTK_STATE_FLAG_ACTIVE`

  Widget is active.

  - Value: `1`
  - Nickname: `active`
  - Available since: 4.0
`GTK_STATE_FLAG_PRELIGHT`

  Widget has a mouse pointer over it.

  - Value: `2`
  - Nickname: `prelight`
  - Available since: 4.0
`GTK_STATE_FLAG_SELECTED`

  Widget is selected.

  - Value: `4`
  - Nickname: `selected`
  - Available since: 4.0
`GTK_STATE_FLAG_INSENSITIVE`

  Widget is insensitive.

  - Value: `8`
  - Nickname: `insensitive`
  - Available since: 4.0
`GTK_STATE_FLAG_INCONSISTENT`

  Widget is inconsistent.

  - Value: `16`
  - Nickname: `inconsistent`
  - Available since: 4.0
`GTK_STATE_FLAG_FOCUSED`

  Widget has the keyboard focus.

  - Value: `32`
  - Nickname: `focused`
  - Available since: 4.0
`GTK_STATE_FLAG_BACKDROP`

  Widget is in a background toplevel window.

  - Value: `64`
  - Nickname: `backdrop`
  - Available since: 4.0
`GTK_STATE_FLAG_DIR_LTR`

  Widget is in left-to-right text direction.

  - Value: `128`
  - Nickname: `dir-ltr`
  - Available since: 4.0
`GTK_STATE_FLAG_DIR_RTL`

  Widget is in right-to-left text direction.

  - Value: `256`
  - Nickname: `dir-rtl`
  - Available since: 4.0
`GTK_STATE_FLAG_LINK`

  Widget is a link.

  - Value: `512`
  - Nickname: `link`
  - Available since: 4.0
`GTK_STATE_FLAG_VISITED`

  The location the widget points to has already been visited.

  - Value: `1024`
  - Nickname: `visited`
  - Available since: 4.0
`GTK_STATE_FLAG_CHECKED`

  Widget is checked.

  - Value: `2048`
  - Nickname: `checked`
  - Available since: 4.0
`GTK_STATE_FLAG_DROP_ACTIVE`

  Widget is highlighted as a drop target for DND.

  - Value: `4096`
  - Nickname: `drop-active`
  - Available since: 4.0
`GTK_STATE_FLAG_FOCUS_VISIBLE`

  Widget has the visible focus.

  - Value: `8192`
  - Nickname: `focus-visible`
  - Available since: 4.0
`GTK_STATE_FLAG_FOCUS_WITHIN`

  Widget contains the keyboard focus.

  - Value: `16384`
  - Nickname: `focus-within`
  - Available since: 4.0