pub struct AnimationController {
pub value: f32,
pub running: bool,
/* private fields */
}Fields§
§value: f32§running: boolImplementations§
Source§impl AnimationController
impl AnimationController
pub fn new(duration_secs: f64, easing: Easing) -> Self
pub fn with_session(self, key: SessionKey) -> Self
pub fn start(&mut self)
pub fn animate_to(&mut self, target: f32)
pub fn advance(&mut self) -> bool
pub fn reset(&mut self)
pub fn advance_by(&mut self, dt: f64) -> bool
pub fn progress(&self) -> f32
Trait Implementations§
Source§impl AnimationClip for AnimationController
impl AnimationClip for AnimationController
Auto Trait Implementations§
impl Freeze for AnimationController
impl RefUnwindSafe for AnimationController
impl Send for AnimationController
impl Sync for AnimationController
impl Unpin for AnimationController
impl UnsafeUnpin 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