Expand description
Structs§
- Segment
Option - 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’sSegmentedor libadwaita’sAdwToggleGrouphave it.
Enums§
- Segment
Overflow - What a
Segmenteddoes with the options that do not fit its row.
Functions§
- segment_
fit - Which options a row of
roompoints shows, withwidthseach and a “More” button ofmorepoints: all when they fit, else those from the start that fit beside the button,selectedalways among them. The rest go into the menu. - segment_
step - The option a key asks for, from
atamongoptions(enabledeach), round from one end to the other;Nonefor a key that moves nothing.