Expand description
Modules§
- cmd
- Commands that control toggle.
Structs§
- Check
Style W
Checkmark toggle style.- Combo
Style W
Popup toggle style.- Default
Style W
Default toggle style.- Light
Style W
Toggle light style.- Radio
Style W
Radio toggle style.- Selector
- Represents the contextual selector behavior of
value
selector. - Switch
Style W
Switch toggle style.- Toggle
W
A toggle button that flips abool
orOption<bool>
variable on click, or selects a value.
Enums§
- Selector
Error - Error for
Selector
operations.
Statics§
- CHECK_
SPACING_ VAR - Spacing between the checkmark and the content.
- COMBO_
SPACING_ VAR - Spacing between the arrow symbol and the content.
- DESELECT_
ON_ DEINIT_ VAR - If
value
is deselected when the widget that has the value is deinited and the value was selected. - DESELECT_
ON_ NEW_ VAR - If
value
deselects the previously selected value when the variable changes. - IS_
CHECKED_ VAR - The toggle button checked state.
- IS_
TRISTATE_ VAR - If toggle button cycles between
None
,Some(false)
andSome(true)
on click. - RADIO_
SPACING_ VAR - Spacing between the radio and the content.
- SCROLL_
ON_ SELECT_ VAR - If
value
scrolls into view when selected. - SELECTOR
- Contextual
Selector
. - SELECT_
ON_ INIT_ VAR - If
value
is selected when the widget that has the value is inited. - SELECT_
ON_ NEW_ VAR - If
value
selects the new value when the variable changes and the previous value was selected. - STYLE_
FN_ VAR - Contextual style variable.
- SWITCH_
SPACING_ VAR - Spacing between the switch and the content.
Traits§
- Selector
Impl - Represents a
Selector
implementation.
Functions§
- check_
spacing P
Spacing between the checkmark and the content.- checked
P
Toggle cycles betweentrue
andfalse
, updating the variable.- checked_
opt P
Toggle cycles betweenSome(true)
andSome(false)
and acceptsNone
, if the widget istristate
also sets toNone
in the toggle cycle.- checked_
popup P
Popup open when the toggle button is checked.- combo_
spacing P
Spacing between the arrow symbol and the content.- deselect_
on_ deinit P
Ifvalue
is deselected when the widget that has the value is deinited and the value was selected.- deselect_
on_ new P
Ifvalue
deselects the previously selected value when the variable changes.- is_
checked P
If the toggle is checked from any of the three primary properties.- radio_
spacing P
Spacing between the radio and the content.- scroll_
on_ select P
If the scrolls into view when thevalue
selected.- select_
on_ init P
Ifvalue
is selected when the widget that has the value is inited.- select_
on_ new P
Ifvalue
selects the new value when the variable changes and the previous value was selected.- selector
P
Sets the contextual selector that all inner widgets will target from thevalue
property.- style_
fn P
Extends or replaces the widget style.- switch_
spacing P
Spacing between the switch and the content.- tristate
P
EnablesNone
as an input value.- value
P
Values that is selected in the contextualselector
.