StyleContext.getState

Returns the state used for style matching.

This method should only be used to retrieve the #GtkStateFlags to pass to #GtkStyleContext methods, like [gtk.style_context.StyleContext.getPadding]. If you need to retrieve the current state of a #GtkWidget, use [gtk.widget.Widget.getStateFlags].

Returns

the state flags