[][src]Enum sprite::AnimationState

pub enum AnimationState {
    Move(f64, Scalar, Scalar, Scalar, Scalar, f64),
    Rotate(f64, Scalar, Scalar, f64),
    Scale(f64, Scalar, Scalar, Scalar, Scalar, f64),
    Flip(boolbool),
    Visibility(bool),
    Blink(f64f64usizeusize),
    Fade(f64f64f64f64),
    Ease(EaseFunctionBox<AnimationState>),
}

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(boolbool)

flip_x, flip_y

Visibility(bool)

visible

Blink(f64f64usizeusize)

past_time, duration, blinked_times, total_times

Fade(f64f64f64f64)

time, begin, change, duration

Ease(EaseFunctionBox<AnimationState>)

ease_function, animation

Methods

impl AnimationState
[src]

pub fn update<I: ImageSize>(
    &self,
    sprite: &mut Sprite<I>,
    dt: f64
) -> (Option<AnimationState>, Status, f64)
[src]

Update the state and change the sprite's properties

Trait Implementations

impl Clone for AnimationState
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]