Skip to main content

Module toggle

Module toggle 

Source
Expand description

Checkbox, switch and slider.

Enums§

Check
A checkbox’s value: a mixed selection is Indeterminate (a dash).

Functions§

checkbox
A checkbox bound to a bool.
checkbox_shown
The 16 px box and its label. Returns the response; clicked() means the caller should toggle (an indeterminate box becomes on).
slider
A slider: a 4 px track with the accent filled part and a 14 px round handle, which shows a halo on hover and the value in a tooltip while dragging.
slider_shown
switch
A switch for an on/off setting that applies at once: a 32 x 18 track whose knob slides.
switch_shown
A switch drawn in a fixed state (the gallery) or disabled.