FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MaterialAppBar

    struct · ferroui-themes-material · v0.5.0

    struct MaterialAppBar
    

    Place this bar above its ScrollSource in an Auto,* grid. Navigation and Actions are ordinary controls: commands, keyboard focus and automation remain their own. The scroll source is weak. A drag consumes app-bar pre-scroll, then child scroll, then leftover app-bar post-scroll; horizontal gestures remain with the child.

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

    Returns a strong reference to this object.

    Source

    title_property

    fn title_property() -> &'static StyledProperty<Option<String>>
    

    Source

    subtitle_property

    fn subtitle_property() -> &'static StyledProperty<Option<String>>
    

    Source

    navigation_property

    fn navigation_property() -> &'static StyledProperty<Option<BoxedValue>>
    

    Source

    actions_property

    fn actions_property() -> &'static StyledProperty<Option<BoxedValue>>
    

    Source

    size_variant_property

    fn size_variant_property() -> &'static StyledProperty<MaterialAppBarSize>
    

    Source

    scroll_behavior_property

    fn scroll_behavior_property() -> &'static StyledProperty<MaterialAppBarScrollBehavior>
    

    Source

    scroll_source_property

    fn scroll_source_property() -> &'static StyledProperty<Option<ElementRef<ScrollViewer>>>
    

    Source

    collapsed_height_property

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

    Source

    expanded_height_property

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

    NaN selects the source-defined height for the variant and subtitle presence.

    Source

    center_title_property

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

    Source

    safe_insets_property

    fn safe_insets_property() -> &'static StyledProperty<Thickness>
    

    Source

    scrolled_background_property

    fn scrolled_background_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
    

    Source

    can_scroll_property

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

    Source

    is_snap_enabled_property

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

    Source

    reduced_motion_property

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

    Source

    motion_scheme_property

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

    Source

    height_offset_property

    fn height_offset_property() -> &'static DirectProperty<MaterialAppBar, f64>
    

    Source

    collapsed_fraction_property

    fn collapsed_fraction_property() -> &'static DirectProperty<MaterialAppBar, f64>
    

    Source

    overlapped_fraction_property

    fn overlapped_fraction_property() -> &'static DirectProperty<MaterialAppBar, f64>
    

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    title

    fn title(self: &Self) -> Option<String>
    

    Source

    set_title

    fn set_title(self: &Self, value: Option<String>)
    

    Source

    subtitle

    fn subtitle(self: &Self) -> Option<String>
    

    Source

    set_subtitle

    fn set_subtitle(self: &Self, value: Option<String>)
    

    Source

    navigation

    fn navigation(self: &Self) -> Option<BoxedValue>
    

    Source

    set_navigation

    fn set_navigation(self: &Self, value: Option<BoxedValue>)
    

    Source

    actions

    fn actions(self: &Self) -> Option<BoxedValue>
    

    Source

    set_actions

    fn set_actions(self: &Self, value: Option<BoxedValue>)
    

    Source

    size_variant

    fn size_variant(self: &Self) -> MaterialAppBarSize
    

    Source

    set_size_variant

    fn set_size_variant(self: &Self, value: MaterialAppBarSize)
    

    Source

    scroll_behavior

    fn scroll_behavior(self: &Self) -> MaterialAppBarScrollBehavior
    

    Source

    set_scroll_behavior

    fn set_scroll_behavior(self: &Self, value: MaterialAppBarScrollBehavior)
    

    Source

    scroll_source

    fn scroll_source(self: &Self) -> Option<Ref<ScrollViewer>>
    

    Source

    set_scroll_source

    fn set_scroll_source(self: &Self, value: Option<Ref<ScrollViewer>>)
    

    Source

    collapsed_height

    fn collapsed_height(self: &Self) -> f64
    

    Source

    set_collapsed_height

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

    Source

    expanded_height

    fn expanded_height(self: &Self) -> f64
    

    Source

    set_expanded_height

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

    Source

    center_title

    fn center_title(self: &Self) -> bool
    

    Source

    set_center_title

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

    Source

    safe_insets

    fn safe_insets(self: &Self) -> Thickness
    

    Source

    set_safe_insets

    fn set_safe_insets(self: &Self, value: Thickness)
    

    Source

    scrolled_background

    fn scrolled_background(self: &Self) -> Option<Rc<dyn IBrush>>
    

    Source

    set_scrolled_background

    fn set_scrolled_background(self: &Self, value: Option<Rc<dyn IBrush>>)
    

    Source

    can_scroll

    fn can_scroll(self: &Self) -> bool
    

    Source

    set_can_scroll

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

    Source

    is_snap_enabled

    fn is_snap_enabled(self: &Self) -> bool
    

    Source

    set_is_snap_enabled

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

    Source

    reduced_motion

    fn reduced_motion(self: &Self) -> bool
    

    Source

    set_reduced_motion

    fn set_reduced_motion(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

    state

    fn state(self: &Self) -> MaterialAppBarState
    

    Source

    height_offset

    fn height_offset(self: &Self) -> f64
    

    Source

    collapsed_fraction

    fn collapsed_fraction(self: &Self) -> f64
    

    Source

    overlapped_fraction

    fn overlapped_fraction(self: &Self) -> f64
    

    Source

    is_animating

    fn is_animating(self: &Self) -> bool
    

    Source

    set_height_offset

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

    Source

    restore_state

    fn restore_state(self: &Self, value: MaterialAppBarState)
    

    Source

    expand

    fn expand(self: &Self)
    

    Source

    collapse

    fn collapse(self: &Self)
    

    Source

    pre_scroll

    fn pre_scroll(self: &Self, available_y: f64) -> f64
    

    For a custom nested-scroll container. Units are dp; upward finger movement is negative.

    Source

    post_scroll

    fn post_scroll(self: &Self, consumed_y: f64, available_y: f64) -> f64
    

    Source

    settle

    fn settle(self: &Self, velocity_y: f64)
    

    Settles after a user scroll/fling, using native spline decay then DefaultEffects snap.

    Source

    scroll_content_by

    fn scroll_content_by(self: &Self, delta_y: f64) -> f64
    

    Runs the native pre/child/post ordering against the configured physical ScrollViewer.

    Source

    Trait implementations

    Availability

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