[][src]Trait silver_animation::ContainedAnimation

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

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: Size)

fn get_draw_pos(&self) -> Combined

fn get_position(&self) -> Vector

fn get_size(&self) -> Size

Loading content...

Implementors

impl<Animation, Size, Combined> ContainedAnimation<Size, Combined> for BasicAnimationContainer<Animation, Size, Combined> where
    Animation: BasicAnimation<Size, Combined>,
    Combined: AnimationShape<Size>, 
[src]

Loading content...