Package: gtk
Class gtk-switch
Superclassesgtk-widget, gtk-buildable, gtk-actionable, gtk-activatable, g-object, common-lisp:standard-object, common-lisp:t Documented Subclasses
None
Direct SlotsDetails The gtk-switch widget is a widget that has two states: on or off. The user can control which state should be active by clicking the switch, or by dragging the handle. CSS nodesswitch ╰── sliderThe gtk-switch implementation has two CSS nodes, the main node with the name switch and a subnode named slider. Neither of them is using any style classes. Style Property Details
Signal DetailsThe "activate" signallambda (widget) :actionThe signal on the switch is an action signal and emitting it causes the switch to animate. Applications should never connect to this signal, but use the "notify::active" signal.
The "state-set" signallambda (widget state) :run-lastThe signal on the switch is emitted to change the underlying state. It is emitted when the user changes the switch position. The default handler keeps the state in sync with the active property. To implement delayed state change, applications can connect to this signal, initiate the change of the underlying state, and call the gtk-switch-state function when the underlying state change is complete. The signal handler should return true to prevent the default handler from running. Visually, the underlying state is represented by the trough color of the switch, while the active property is represented by the position of the switch.
| Slot Access FunctionsInherited Slot Access Functions |
*2021-12-23