Switch.setState

Sets the underlying state of the GtkSwitch.

Normally, this is the same as [property@Gtk.Switch:active], unless the switch is set up for delayed state changes. This function is typically called from a [signal@Gtk.Switch`::state-set] signal handler.

See [signal@Gtk.Switch::state-set] for details.

class Switch
void
setState
(
bool state
)

Parameters

state bool

the new state

Meta