StyleContext.getState
gtk.types.StateFlags getState()Returns the state used for style matching.
This method should only be used to retrieve the [gtk.types.StateFlags] to pass to [gtk.style_context.StyleContext] methods, like [gtk.style_context.StyleContext.getPadding]. If you need to retrieve the current state of a [gtk.widget.Widget], use [gtk.widget.Widget.getStateFlags].
Returns
the state flags
Deprecated
Use [gtk.widget.Widget.getStateFlags] instead