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.

class StyleContext
getState
()

Return Value

Type: gtk.types.StateFlags

the state flags