GravityConnectedAnimationConfiguration
struct · ferroui-controls · v0.5.0
struct GravityConnectedAnimationConfiguration
Produces a gravity-physics effect suitable for forward navigation: the element arcs slightly as it travels and casts an animated shadow. This is the default configuration when none is specified.
Use DirectConnectedAnimationConfiguration for back navigation and
BasicConnectedAnimationConfiguration for a plain transition.
Members
new
fn new() -> Rc<Self>
Creates the configuration.
is_shadow_enabled
fn is_shadow_enabled(self: &Self) -> bool
Gets whether a drop shadow is rendered beneath the element during the
gravity arc. Defaults to true.
set_is_shadow_enabled
fn set_is_shadow_enabled(self: &Self, value: bool)
Sets whether a drop shadow is rendered beneath the element during the gravity arc.
with_is_shadow_enabled
fn with_is_shadow_enabled(self: Rc<Self>, value: bool) -> Rc<Self>
Sets is_shadow_enabled 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.