[][src]Trait silver_animation::AnimationShape

pub trait AnimationShape<Size> {
    pub fn get_size(&self) -> Size;
pub fn get_location(&self) -> Vector;
pub fn set_size(&mut self, size: Size);
pub fn set_location(&mut self, location: Vector);
pub fn get_both(&self) -> Self; }

This is trait used to define the location and the size of an animation This way you can base your animations of Rectangles, Circles, etc

Required methods

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

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

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

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

pub fn get_both(&self) -> Self[src]

Loading content...

Implementations on Foreign Types

impl AnimationShape<Vector> for Rectangle[src]

impl AnimationShape<f32> for Circle[src]

Loading content...

Implementors

Loading content...