pub struct VisualAnimationConfig {
pub key: Option<String>,
pub animate: AnimateProperties,
pub spring: SpringConfig,
pub threshold: f32,
pub clip_behavior: ClipBehavior,
}Expand description
Configuration for visual animations on layout changes
Fields§
§key: Option<String>Stable key for tracking across rebuilds
animate: AnimatePropertiesWhich properties to animate
spring: SpringConfigSpring configuration
threshold: f32Minimum change threshold (ignore tiny changes)
clip_behavior: ClipBehaviorClipping behavior during animation
Implementations§
Source§impl VisualAnimationConfig
impl VisualAnimationConfig
Sourcepub fn with_spring(self, config: SpringConfig) -> Self
pub fn with_spring(self, config: SpringConfig) -> Self
Use spring configuration
Sourcepub fn with_threshold(self, threshold: f32) -> Self
pub fn with_threshold(self, threshold: f32) -> Self
Set minimum change threshold
Sourcepub fn clip_to_animated(self) -> Self
pub fn clip_to_animated(self) -> Self
Clip to animated bounds during animation
Sourcepub fn clip_to_layout(self) -> Self
pub fn clip_to_layout(self) -> Self
Clip to layout bounds during animation
Trait Implementations§
Source§impl Clone for VisualAnimationConfig
impl Clone for VisualAnimationConfig
Source§fn clone(&self) -> VisualAnimationConfig
fn clone(&self) -> VisualAnimationConfig
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 VisualAnimationConfig
impl Debug for VisualAnimationConfig
Auto Trait Implementations§
impl Freeze for VisualAnimationConfig
impl RefUnwindSafe for VisualAnimationConfig
impl Send for VisualAnimationConfig
impl Sync for VisualAnimationConfig
impl Unpin for VisualAnimationConfig
impl UnsafeUnpin for VisualAnimationConfig
impl UnwindSafe for VisualAnimationConfig
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