file: xswitch.aus

class: GtkSwitchActivateCallback

[317:7] extends: object

Generated low-level callback wrapper for GIR callback activate.

Members

Methods

class: GtkSwitch

[28:7] extends: object

Shows a "light switch" that has two states: on or off. An
example GtkSwitch The user can control which state should be active by clicking the empty area, or by dragging the slider. GtkSwitch can also express situations where the underlying state changes with a delay. In this case, the slider position indicates the user's recent change (represented by the [property@Gtk.Switch:active] property), while the trough color indicates the present underlying state (represented by the [property@Gtk.Switch:state] property). GtkSwitch with delayed state change See [signal@Gtk.Switch::state-set] for details. # Shortcuts and Gestures GtkSwitch supports pan and drag gestures to move the slider. # CSS nodes switch ├── image ├── image ╰── slider GtkSwitch has four css nodes, the main node with the name switch and subnodes for the slider and the on and off images. Neither of them is using any style classes. # Accessibility GtkSwitch uses the [enum@Gtk.AccessibleRole.switch] role.

Members

Methods

class: GtkSwitchStatesetCallback

[387:7] extends: object

Generated low-level callback wrapper for GIR callback state-set.

Members

Methods

class: GtkSwitchMeta

[458:14] static extends: object

Generated metadata helpers for Switch class surfaces.

Methods