[][src]Trait silver_animation::ContainedAnimation

pub trait ContainedAnimation {
    fn draw(&mut self, gfx: &mut Graphics) -> Result<()>;
fn set_location(&mut self, location: Vector);
fn set_size(&mut self, size: Vector);
fn get_draw_pos(&self) -> Rectangle;
fn get_position(&self) -> Vector;
fn get_size(&self) -> Vector; }

The same as BasicAnimation, however ContainedAnimations are in control of their position

This one can be used when the location is also part of the animation.

Required methods

fn draw(&mut self, gfx: &mut Graphics) -> Result<()>

fn set_location(&mut self, location: Vector)

fn set_size(&mut self, size: Vector)

fn get_draw_pos(&self) -> Rectangle

fn get_position(&self) -> Vector

fn get_size(&self) -> Vector

Loading content...

Implementors

impl<Animation> ContainedAnimation for BasicAnimationContainer<Animation> where
    Animation: BasicAnimation
[src]

Loading content...