Available on crate feature
switch only.Expand description
On/off switches for settings that apply immediately.
Structs§
- Colours
- Track, thumb and label colours of a switch.
- Switch
- A switch builder. Convert it into an
Elementto render.
Enums§
- Action
- What a switch keyboard shortcut does. Useful when the app tracks which switch is current.
Constants§
- TRACK_
HEIGHT - Height of the switch track in logical pixels. The track is twice as wide.
Functions§
- colours
- Resolves the colours of a switch for an interaction status.
- default_
keymap - The default switch shortcuts:
- style
- The iced toggler style for a status.
- switch
- Creates a switch that is on when
is_onis true.