setState

open fun setState(state: Boolean)

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.

Parameters

state

the new state