pub struct SimplifiedLayoutConfig {
pub duration: f64,
pub easing: SimplifiedEasing,
pub hardware_accelerated: bool,
pub enable_flip: bool,
pub enable_shared_elements: bool,
}Expand description
Simplified layout configuration
Fields§
§duration: f64Animation duration in seconds
easing: SimplifiedEasingEasing function
hardware_accelerated: boolWhether to use hardware acceleration
enable_flip: boolWhether to enable FLIP animations
Whether to enable shared element transitions
Implementations§
Source§impl SimplifiedLayoutConfig
impl SimplifiedLayoutConfig
Sourcepub fn new() -> SimplifiedLayoutConfig
pub fn new() -> SimplifiedLayoutConfig
Create new simplified layout config
Sourcepub fn duration(self, duration: f64) -> SimplifiedLayoutConfig
pub fn duration(self, duration: f64) -> SimplifiedLayoutConfig
Set animation duration
Sourcepub fn easing(self, easing: SimplifiedEasing) -> SimplifiedLayoutConfig
pub fn easing(self, easing: SimplifiedEasing) -> SimplifiedLayoutConfig
Set easing function
Sourcepub fn hardware_accelerated(self, enabled: bool) -> SimplifiedLayoutConfig
pub fn hardware_accelerated(self, enabled: bool) -> SimplifiedLayoutConfig
Set hardware acceleration
Sourcepub fn enable_flip(self, enabled: bool) -> SimplifiedLayoutConfig
pub fn enable_flip(self, enabled: bool) -> SimplifiedLayoutConfig
Enable/disable FLIP animations
Enable/disable shared element transitions
Trait Implementations§
Source§impl Clone for SimplifiedLayoutConfig
impl Clone for SimplifiedLayoutConfig
Source§fn clone(&self) -> SimplifiedLayoutConfig
fn clone(&self) -> SimplifiedLayoutConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimplifiedLayoutConfig
impl Debug for SimplifiedLayoutConfig
Source§impl Default for SimplifiedLayoutConfig
impl Default for SimplifiedLayoutConfig
Source§fn default() -> SimplifiedLayoutConfig
fn default() -> SimplifiedLayoutConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for SimplifiedLayoutConfig
impl PartialEq for SimplifiedLayoutConfig
impl StructuralPartialEq for SimplifiedLayoutConfig
Auto Trait Implementations§
impl Freeze for SimplifiedLayoutConfig
impl RefUnwindSafe for SimplifiedLayoutConfig
impl Send for SimplifiedLayoutConfig
impl Sync for SimplifiedLayoutConfig
impl Unpin for SimplifiedLayoutConfig
impl UnwindSafe for SimplifiedLayoutConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.