Expand description
Segmented control widget.
Joined row of mutually-exclusive buttons; see segmented.rs.
Segmented control / button-group widget — a joined row of mutually-exclusive
buttons where exactly one is selected. A blend of the tabs::TabHeader row of
clickable labels and button.rs’s styling, with the stateful 3-type split
(state / state-wrapper / widget) of the other interactive widgets.
Clicking a segment selects it: the internal handler computes the clicked
segment’s index from its position among its siblings, updates the
selected_index, invokes the user’s on_change(index), and live-restyles
every segment (selected vs unselected) via set_css_property.
Key types: [Segmented], [SegmentedState], [SegmentedOnChange].
Structs§
- Segmented
- A joined row of mutually-exclusive segments with a selection callback.
- Segmented
OnChange - Segmented
OnChange Callback - Segmented
State - State of a
Segmented: the index of the currently selected segment. - Segmented
State Wrapper
Enums§
Statics§
- SEGMENTED_
ON_ CHANGE_ INVOKER - Process-global slot for this callback kind’s host-side invoker.
Functions§
- AzApp_
setSegmented OnChange Callback Invoker - Register the host-side invoker for this callback kind.
- AzSegmented
OnChange Callback_ create From Host Handle - C-ABI export wrapping
<Wrapper>::create_from_host_handle.
Type Aliases§
- AzSegmented
OnChange Callback Invoker - Pointer-arg variant of this callback kind’s typedef.
- Segmented
OnChange Callback Type - Callback function type invoked when the selected segment changes.