FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MaterialSegmentedContent

    struct · ferroui-themes-material · v0.5.0

    struct MaterialSegmentedContent
    

    Two-child layout: an 18 dp check, then the label. Its width always reserves the check and 8 dp gap. An unchecked label is centered by a 13 dp logical offset. Check removal is immediate; check entry has its own scale and opacity springs.

    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<MaterialSegmentedContent>
    

    Returns a strong reference to this object.

    Source

    is_selected_property

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

    Source

    motion_scheme_property

    fn motion_scheme_property() -> &'static StyledProperty<MaterialMotionScheme>
    

    Source

    reduced_motion_property

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

    Source

    label_progress_property

    fn label_progress_property() -> &'static DirectProperty<MaterialSegmentedContent, f64>
    

    Source

    icon_scale_property

    fn icon_scale_property() -> &'static DirectProperty<MaterialSegmentedContent, f64>
    

    Source

    icon_opacity_property

    fn icon_opacity_property() -> &'static DirectProperty<MaterialSegmentedContent, f64>
    

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    is_selected

    fn is_selected(self: &Self) -> bool
    

    Source

    set_is_selected

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

    Source

    motion_scheme

    fn motion_scheme(self: &Self) -> MaterialMotionScheme
    

    Source

    set_motion_scheme

    fn set_motion_scheme(self: &Self, value: MaterialMotionScheme)
    

    Source

    reduced_motion

    fn reduced_motion(self: &Self) -> bool
    

    Source

    set_reduced_motion

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

    Source

    label_progress

    fn label_progress(self: &Self) -> f64
    

    Source

    icon_scale

    fn icon_scale(self: &Self) -> f64
    

    Source

    icon_opacity

    fn icon_opacity(self: &Self) -> f64
    

    Source

    Trait implementations

    Availability

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