Switch.setState

Sets the underlying state of the gtk.Switch

Normally, this is the same as active, unless the switch is set up for delayed state changes. This function is typically called from a state-set signal handler.

See state-set for details.

class Switch
void
setState
(
bool state
)

Parameters

state bool

the new state

Meta

Since

3.14