Expand description
Switch / toggle widget.
Boolean on/off with a sliding knob; see switch.rs.
Switch (toggle) widget — a boolean on/off control rendered as a rounded,
pill-shaped “track” with a sliding circular “knob”. A near-clone of
crate::widgets::check_box::CheckBox (boolean state + an on_toggle
callback) restyled as a switch: toggling flips the knob’s horizontal
position (via margin-left) and the track’s background colour.
Key types: [Switch], [SwitchState], [SwitchOnToggle].
Structs§
- Switch
- A toggleable on/off switch widget with a sliding knob and toggle callback.
- Switch
OnToggle - Switch
OnToggle Callback - Switch
State - The on/off state of a
Switch. - Switch
State Wrapper
Enums§
Statics§
- SWITCH_
ON_ TOGGLE_ INVOKER - Process-global slot for this callback kind’s host-side invoker.
Functions§
- AzApp_
setSwitch OnToggle Callback Invoker - Register the host-side invoker for this callback kind.
- AzSwitch
OnToggle Callback_ create From Host Handle - C-ABI export wrapping
<Wrapper>::create_from_host_handle.
Type Aliases§
- AzSwitch
OnToggle Callback Invoker - Pointer-arg variant of this callback kind’s typedef.
- Switch
OnToggle Callback Type - Callback function type invoked when the switch is toggled.