FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MaterialSpringEasing

    struct · ferroui-themes-material · v0.5.0

    struct MaterialSpringEasing
    

    Bridges a physical spring to FerroUI's normalized-progress IEasing interface.

    Use the matching duration; the same spring with an unrelated duration changes its physical speed. This adapter starts with zero velocity because IEasing has no velocity channel. Controls needing interruption continuity use MaterialSpringState instead.

    View source

    Members

    new

    fn new(spec: MaterialSpringSpec, duration: SignedDuration, reduced_motion: bool) -> Self
    

    Source

    spring_spec

    fn spring_spec(self: &Self) -> MaterialSpringSpec
    

    Parameters consumed by the velocity-preserving Material property transitions.

    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
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • CastableFrom<ST, Uninit, Uninit>
    • CastableFrom<ST, Initialized, Initialized>
    • Read<Exclusive, BecauseExclusive>
    • Clone
    • Debug
    • IEasing

    Availability

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