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
Auto Trait Implementations§
impl Freeze for AnimationController
impl RefUnwindSafe for AnimationController
impl Send for AnimationController
impl Sync for AnimationController
impl Unpin for AnimationController
impl UnwindSafe for AnimationController
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> 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> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().