[][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

past_time, duration, blinked_times, total_times

Fade(f64f64f64f64)

time, begin, change, duration

ease_function, animation

Implementations

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]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.