Expand description
Modules§
- cmd
- Commands that control toggle.
Structs§
- Check
Style WCheckmark toggle style.- Combo
Style WCombo-box toggle style.- Default
Style WDefault toggle style.- Light
Style WToggle light style.- Radio
Style WRadio toggle style.- Selector
- Represents the contextual selector behavior of
valueselector. - Switch
Style WSwitch toggle style.- Toggle
WA toggle button that flips aboolorOption<bool>variable on click, or selects a value.- Weak
Selector - Weak reference to a
Selector.
Enums§
- Selector
Error - Error for
Selectoroperations.
Statics§
- CHECK_
STYLE_ FN_ VAR - Contextual style variable.
- COMBO_
STYLE_ FN_ VAR - Contextual style variable.
- DESELECT_
ON_ DEINIT_ VAR - If
valueis deselected when the widget that has the value is deinited and the value was selected. - DESELECT_
ON_ NEW_ VAR - If
valuedeselects 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. - LIGHT_
STYLE_ FN_ VAR - Contextual style variable.
- RADIO_
STYLE_ FN_ VAR - Contextual style variable.
- SCROLL_
ON_ SELECT_ VAR - If
valuescrolls into view when selected. - SELECTOR
- Contextual
Selector. - SELECT_
ON_ INIT_ VAR - If
valueis selected when the widget that has the value is inited. - SELECT_
ON_ NEW_ VAR - If
valueselects the new value when the variable changes and the previous value was selected. - STYLE_
FN_ VAR - Contextual style variable.
- SWITCH_
STYLE_ FN_ VAR - Contextual style variable.
Traits§
- Selector
Impl - Represents a
Selectorimplementation.
Functions§
- check_
style_ fn PExtends or replaces theCheckStyle!.- checked
PToggle cycles betweentrueandfalse, updating the variable.- checked_
opt PToggle cycles betweenSome(true)andSome(false)and acceptsNone, if the widget istristatealso sets toNonein the toggle cycle.- checked_
popup PPopup open when the toggle button is checked.- combo_
style_ fn PExtends or replaces theComboStyle!.- deselect_
on_ deinit PIfvalueis deselected when the widget that has the value is deinited and the value was selected.- deselect_
on_ new PIfvaluedeselects the previously selected value when the variable changes.- is_
checked PIf the toggle is checked from any of the three primary properties.- light_
style_ fn PExtends or replaces theLightStyle!.- radio_
style_ fn PExtends or replaces theRadioStyle!.- scroll_
on_ select PIf the widget scrolls into view when thevalueselected.- select_
on_ init PIfvalueis selected when the widget that has the value is inited.- select_
on_ new PIfvalueselects the new value when the variable changes and the previous value was selected.- selector
PSets the contextual selector that all inner widgets will target from thevalueproperty.- style_
fn PExtends or replaces the widget style.- switch_
style_ fn PExtends or replaces theSwitchStyle!.- tristate
PEnablesNoneas an input value.- value
PValues that is selected in the contextualselector.