[][src]Trait rmicrobit::graphics::scrolling::Animate

pub trait Animate {
    fn is_finished(&self) -> bool;
fn reset(&mut self);
fn tick(&mut self); }

The state of an animation.

Required methods

fn is_finished(&self) -> bool

Say whether the animation has completed.

fn reset(&mut self)

Reset the animation to the beginning.

fn tick(&mut self)

Advance to the next step of the animation.

If the animation has completed, does nothing.

Loading content...

Implementors

impl<T: Scrollable> Animate for T[src]

Loading content...