pub struct AnimationController { /* private fields */ }Expand description
Controller for managing multiple animations.
Implementations§
Source§impl AnimationController
impl AnimationController
Sourcepub fn add_spring(&mut self, name: &str, initial: f64, config: SpringConfig)
pub fn add_spring(&mut self, name: &str, initial: f64, config: SpringConfig)
Add a spring animation.
Sourcepub fn add_eased(
&mut self,
name: &str,
from: f64,
to: f64,
duration: f64,
easing: Easing,
)
pub fn add_eased( &mut self, name: &str, from: f64, to: f64, duration: f64, easing: Easing, )
Add an eased animation.
Sourcepub fn set_target(&mut self, name: &str, target: f64)
pub fn set_target(&mut self, name: &str, target: f64)
Set spring target.
Sourcepub fn is_animating(&self) -> bool
pub fn is_animating(&self) -> bool
Whether any animations are active.
Sourcepub fn active_count(&self) -> usize
pub fn active_count(&self) -> usize
Number of active animations.
Trait Implementations§
Source§impl Debug for AnimationController
impl Debug for AnimationController
Source§impl Default for AnimationController
impl Default for AnimationController
Source§fn default() -> AnimationController
fn default() -> AnimationController
Returns the “default value” for a type. Read more