FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MaterialAppBarState

    struct · ferroui-themes-material · v0.5.0

    struct MaterialAppBarState
    

    A serializable scroll snapshot. Deltas follow finger movement: up is negative. The offset is always between the negative collapse limit and zero.

    View source

    Members

    new

    fn new(height_offset_limit: f64) -> Self
    

    Source

    height_offset_limit

    fn height_offset_limit(self: Self) -> f64
    

    Source

    height_offset

    fn height_offset(self: Self) -> f64
    

    Source

    content_offset

    fn content_offset(self: Self) -> f64
    

    Source

    content_at_start

    fn content_at_start(self: Self) -> bool
    

    Source

    set_height_offset_limit

    fn set_height_offset_limit(self: &mut Self, value: f64)
    

    Source

    set_height_offset

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

    Source

    set_content_offset

    fn set_content_offset(self: &mut Self, value: f64)
    

    Source

    set_content_at_start

    fn set_content_at_start(self: &mut Self, value: bool)
    

    Source

    collapsed_fraction

    fn collapsed_fraction(self: Self) -> f64
    

    Source

    overlapped_fraction

    fn overlapped_fraction(self: Self) -> f64
    

    Source

    pre_scroll

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

    The source pre-scroll contract consumes the Y gesture when the bar changes height.

    Source

    post_scroll

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

    Called after the child. Only exit-until-collapsed responds to leftover downward scroll.

    Source

    reset_content_after_fling

    fn reset_content_after_fling(self: &mut Self, available_velocity_y: f64)
    

    Source

    snap_target

    fn snap_target(self: Self) -> Option<f64>
    

    Native rounding tolerance and nearest-anchor threshold, used after decay finishes.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • CastableFrom<ST, Uninit, Uninit>
    • CastableFrom<ST, Initialized, Initialized>
    • Read<Exclusive, BecauseExclusive>
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Default

    Availability

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