Skip to main content

segment_fit

Function segment_fit 

Source
pub fn segment_fit(
    widths: &[f32],
    more: f32,
    room: f32,
    selected: Option<usize>,
) -> Vec<usize>
Expand description

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.