DirectConnectedAnimationConfiguration
struct · ferroui-controls · v0.5.0
struct DirectConnectedAnimationConfiguration
Produces a direct, linear translation suitable for back navigation. No gravity arc or shadow is applied, and the default duration is shorter (150 ms).
Assign this to the configuration of a
ConnectedAnimation before starting the
return animation to animate back to the source view.
Members
new
fn new() -> Rc<Self>
Creates the configuration.
duration
fn duration(self: &Self) -> Option<Duration>
Gets the duration of the animation. When None, the default duration
of the ConnectedAnimationService
is used.
set_duration
fn set_duration(self: &Self, value: Option<Duration>)
Sets the duration of the animation.
with_duration
fn with_duration(self: Rc<Self>, value: Option<Duration>) -> Rc<Self>
Sets duration and returns the configuration.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherConnectedAnimationConfiguration
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.