connectStateSet

fun connectStateSet(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (state: Boolean) -> Boolean): <Error class: unknown class>

Emitted to change the underlying state.

The ::state-set signal is emitted when the user changes the switch position. The default handler calls method@Gtk.Switch.set_state with the value of @state.

To implement delayed state change, applications can connect to this signal, initiate the change of the underlying state, and call method@Gtk.Switch.set_state when the underlying state change is complete. The signal handler should return true to prevent the default handler from running.

Parameters

connectFlags

A combination of ConnectFlags

handler

the Callback to connect. Params: state the new state of the switch. Returns true to stop the signal emission