pub enum AnimationState {
Move(f64, Scalar, Scalar, Scalar, Scalar, f64),
Rotate(f64, Scalar, Scalar, f64),
Scale(f64, Scalar, Scalar, Scalar, Scalar, f64),
Flip(bool, bool),
Visibility(bool),
Blink(f64, f64, usize, usize),
Fade(f64, f64, f64, f64),
Ease(EaseFunction, Box<AnimationState>),
}
Expand description
The state of animation
Variants§
Move(f64, Scalar, Scalar, Scalar, Scalar, f64)
time, begin_x, begin_y, change_x, change_y, duration
Rotate(f64, Scalar, Scalar, f64)
time, begin, change, duration
Scale(f64, Scalar, Scalar, Scalar, Scalar, f64)
time, begin_x, begin_y, change_x, change_y, duration
Flip(bool, bool)
flip_x, flip_y
Visibility(bool)
visible
Blink(f64, f64, usize, usize)
past_time, duration, blinked_times, total_times
Fade(f64, f64, f64, f64)
time, begin, change, duration
Ease(EaseFunction, Box<AnimationState>)
ease_function, animation
Implementations§
Trait Implementations§
Source§impl Clone for AnimationState
impl Clone for AnimationState
Source§fn clone(&self) -> AnimationState
fn clone(&self) -> AnimationState
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 moreAuto Trait Implementations§
impl Freeze for AnimationState
impl RefUnwindSafe for AnimationState
impl Send for AnimationState
impl Sync for AnimationState
impl Unpin for AnimationState
impl UnwindSafe for AnimationState
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