FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MaterialSegmentedGroup

    struct · ferroui-themes-material · v0.5.0

    struct MaterialSegmentedGroup
    

    A Material segmented row. Use RadioButton children for single choice (the default), or set IsMultiSelect="True" and use ToggleButton children for independent choices.

    The group scopes radio selection to its logical children, supplies equal widths, overlapping outlines, first/last logical corner shapes, selection/interaction stacking and arrow navigation. Child IsChecked, IsEnabled, Content, commands and automation remain native. Set IsMultiSelect before adding children; replace the children to change their kind.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<MaterialSegmentedGroup>
    

    Returns a strong reference to this object.

    Source

    is_multi_select_property

    fn is_multi_select_property() -> &'static StyledProperty<bool>
    

    Source

    overlap_property

    fn overlap_property() -> &'static StyledProperty<f64>
    

    Adjacent outlines overlap by their stroke width (1 dp by default).

    Source

    item_theme_property

    fn item_theme_property() -> &'static StyledProperty<Option<Ref<ControlTheme>>>
    

    Source

    item_corner_radius_property

    fn item_corner_radius_property() -> &'static AttachedProperty<CornerRadius>
    

    Source

    selected_index_property

    fn selected_index_property() -> &'static DirectProperty<MaterialSegmentedGroup, i32>
    

    The first selected child, or -1. Change a child's IsChecked to change selection.

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    is_multi_select

    fn is_multi_select(self: &Self) -> bool
    

    Source

    set_is_multi_select

    fn set_is_multi_select(self: &Self, value: bool)
    

    Source

    overlap

    fn overlap(self: &Self) -> f64
    

    Source

    set_overlap

    fn set_overlap(self: &Self, value: f64)
    

    Source

    item_theme

    fn item_theme(self: &Self) -> Option<Ref<ControlTheme>>
    

    Source

    set_item_theme

    fn set_item_theme(self: &Self, value: Option<Ref<ControlTheme>>)
    

    Source

    selected_index

    fn selected_index(self: &Self) -> i32
    

    Source

    selected_indices

    fn selected_indices(self: &Self) -> Vec<usize>
    

    Source

    get_item_corner_radius

    fn get_item_corner_radius(child: &Control) -> CornerRadius
    

    Source

    set_item_corner_radius

    fn set_item_corner_radius(child: &Control, value: CornerRadius)
    

    Source

    selection_changed_event

    fn selection_changed_event() -> &'static RoutedEvent<RoutedEventArgs>
    

    Source

    selection_changed

    fn selection_changed(self: &Self, handler: impl Fn(&Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.