set_state_flags


Description:

public void set_state_flags (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_state_flag_dir_ltr and gtk_state_flag_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 `GtkWidget`

flags

State flags to turn on

clear

Whether to clear state before turning on flags