get_state_flags
Description:
Returns the widget state as a flag set.
It is worth mentioning that the effective gtk_state_flag_insensitive state will be returned, that is, also based on parent insensitivity, even if this itself is sensitive.
Also note that if you are looking for a way to obtain the [flags@Gtk.StateFlags] to pass to a [class@Gtk.StyleContext] method, you should look at [method@Gtk.StyleContext.get_state].
Parameters:
this |
a `GtkWidget` |
Returns:
The state flags for widget |