Skip to main content

Module segmented

Module segmented 

Source
Expand description

The segmented control (Segmented): a row of exclusive options, one selected, re-exported by widgets.

Structs§

SegmentOption
One option of a Segmented: its value, its label, and an icon of the registry drawn before the label.
Segmented
A segmented control: a row of exclusive options, one selected (a view’s modes, a panel’s tabs), as Mantine’s SegmentedControl, Ant’s Segmented or libadwaita’s AdwToggleGroup have it.

Enums§

SegmentOverflow
What a Segmented does with the options that do not fit its row.

Functions§

segment_fit
Which options a row of room points shows, with widths each and a “More” button of more points: all when they fit, else those from the start that fit beside the button, selected always among them. The rest go into the menu.
segment_step
The option a key asks for, from at among options (enabled each), round from one end to the other; None for a key that moves nothing.