cosmic::widget::segmented_control

Function horizontal

source
pub fn horizontal<SelectionMode: Default, Message>(
    model: &Model<SelectionMode>,
) -> HorizontalSegmentedButton<'_, SelectionMode, Message>
where Model<SelectionMode>: Selectable,
Expand description

A selection of multiple choices appearing as a conjoined button.

The data for the widget comes from a model that is maintained the application.

For details on the model, see the segmented_button module for more details.