set_state_flags
Description:
Turns on flag values in the current widget state.
Typical widget states are insensitive, prelighted, etc.
This function accepts the values [flags@Gtk.StateFlags.dir-ltr] and [flags@Gtk.StateFlags.dir-rtl] but ignores them. If you want to set the widget's direction, use [method@Gtk.Widget.set_direction].
This function is for use in widget implementations.
Parameters:
this |
a widget |
flags |
state flags to turn on |
clear |
whether to clear state before turning on |