Enum sprite::AnimationState
source · 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
sourceimpl AnimationState
impl AnimationState
Trait Implementations
sourceimpl Clone for AnimationState
impl Clone for AnimationState
sourcefn clone(&self) -> AnimationState
fn clone(&self) -> AnimationState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for AnimationState
impl Send for AnimationState
impl Sync for AnimationState
impl Unpin for AnimationState
impl UnwindSafe for AnimationState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more