Widget.setStateFlags

void setStateFlags(gtk.types.StateFlags flags, bool clear)

Turns on flag values in the current widget state.

Typical widget states are insensitive, prelighted, etc.

This function accepts the values gtk.types.StateFlags.DirLtr and gtk.types.StateFlags.DirRtl but ignores them. If you want to set the widget's direction, use gtk.widget.Widget.setDirection.

This function is for use in widget implementations.

Parameters

flagsState flags to turn on
clearWhether to clear state before turning on flags