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.
Members
TYPEto_refis_multi_select_propertyoverlap_propertyitem_theme_propertyitem_corner_radius_propertyselected_index_propertyconstructnewis_multi_selectset_is_multi_selectoverlapset_overlapitem_themeset_item_themeselected_indexselected_indicesget_item_corner_radiusset_item_corner_radiusselection_changed_eventselection_changed
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<MaterialSegmentedGroup>
Returns a strong reference to this object.
is_multi_select_property
fn is_multi_select_property() -> &'static StyledProperty<bool>
overlap_property
fn overlap_property() -> &'static StyledProperty<f64>
Adjacent outlines overlap by their stroke width (1 dp by default).
item_theme_property
fn item_theme_property() -> &'static StyledProperty<Option<Ref<ControlTheme>>>
item_corner_radius_property
fn item_corner_radius_property() -> &'static AttachedProperty<CornerRadius>
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.
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
is_multi_select
fn is_multi_select(self: &Self) -> bool
set_is_multi_select
fn set_is_multi_select(self: &Self, value: bool)
overlap
fn overlap(self: &Self) -> f64
set_overlap
fn set_overlap(self: &Self, value: f64)
item_theme
fn item_theme(self: &Self) -> Option<Ref<ControlTheme>>
set_item_theme
fn set_item_theme(self: &Self, value: Option<Ref<ControlTheme>>)
selected_index
fn selected_index(self: &Self) -> i32
selected_indices
fn selected_indices(self: &Self) -> Vec<usize>
get_item_corner_radius
fn get_item_corner_radius(child: &Control) -> CornerRadius
set_item_corner_radius
fn set_item_corner_radius(child: &Control, value: CornerRadius)
selection_changed_event
fn selection_changed_event() -> &'static RoutedEvent<RoutedEventArgs>
selection_changed
fn selection_changed(self: &Self, handler: impl Fn(&Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherCastableFrom<ST, Uninit, Uninit>CastableFrom<ST, Initialized, Initialized>Read<Exclusive, BecauseExclusive>ControlImplExtPanelImplExtDerefUpcast<T>Upcast<MaterialSegmentedGroup>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplInteractiveImplFerroObjectImplVisualImplControlImplPanelImplInputElementImplLayoutableImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.