set_state


Description:

[ Version ( since = "3.14" ) ]
public void set_state (bool state)

Sets the underlying state of the 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.

Parameters:

this

a Switch

state

the new state