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 more
Auto 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more