FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MaterialMotionScheme

    enum · ferroui-themes-material · v0.5.0

    enum MaterialMotionScheme
    

    The two motion schemes published by Material Design.

    View source

    Members

    Standard

    Standard
    

    Subtle motion for utilitarian interfaces.

    Source

    Expressive

    Expressive
    

    The Material 3 Expressive spring scheme.

    Source

    spring

    const fn spring(self: Self, role: MaterialMotionRole) -> MaterialSpringSpec
    

    The exact unit-mass spring parameters of the upstream motion role.

    Source

    duration

    fn duration(self: Self, role: MaterialMotionRole, reduced_motion: bool) -> SignedDuration
    

    The finite duration used to host this spring in FerroUI's duration-based transitions.

    This is a settling-time adapter, not a Material duration token: the easing evaluates the source spring in real seconds and the duration only bounds its imperceptible tail. Install this value with the matching Self::easing resource.

    Source

    easing

    fn easing(self: Self, role: MaterialMotionRole, reduced_motion: bool) -> Easing
    

    A real FerroUI easing for DoubleTransition, BrushTransition, shape transitions, keyframe animations and compositor animations.

    The adapter additionally reads IPlatformSettings::animations_enabled on the UI thread. Its render-thread snapshot is immutable and contains no thread-local access.

    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
    • Equivalent<K>
    • CastableFrom<ST, Uninit, Uninit>
    • CastableFrom<ST, Initialized, Initialized>
    • Read<Exclusive, BecauseExclusive>
    • Clone
    • Copy
    • Debug
    • Default
    • Eq
    • StructuralPartialEq
    • PartialEq
    • MarkupTyped

    Availability

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