MaterialMotionScheme
enum · ferroui-themes-material · v0.5.0
enum MaterialMotionScheme
The two motion schemes published by Material Design.
Members
Standard
Standard
Subtle motion for utilitarian interfaces.
Expressive
Expressive
The Material 3 Expressive spring scheme.
spring
const fn spring(self: Self, role: MaterialMotionRole) -> MaterialSpringSpec
The exact unit-mass spring parameters of the upstream motion role.
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.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherEquivalent<K>CastableFrom<ST, Uninit, Uninit>CastableFrom<ST, Initialized, Initialized>Read<Exclusive, BecauseExclusive>CloneCopyDebugDefaultEqStructuralPartialEqPartialEqMarkupTyped
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.