[][src]Trait silver_animation::ContainedAnimation

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

pub fn draw(&mut self, gfx: &mut Graphics) -> Result<()>[src]

pub fn set_location(&mut self, location: Vector)[src]

pub fn set_size(&mut self, size: Size)[src]

pub fn get_draw_pos(&self) -> Combined[src]

pub fn get_position(&self) -> Vector[src]

pub fn get_size(&self) -> Size[src]

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...