[][src]Trait andrew::Drawable

pub trait Drawable {
    fn draw(&self, canvas: &mut Canvas);
}

The Drawable trait allows object to be drawn to a buffer or canvas

Required methods

fn draw(&self, canvas: &mut Canvas)

A function that draws the object to a canvas

Loading content...

Implementors

impl Drawable for Line[src]

impl Drawable for Rectangle[src]

impl<'a> Drawable for Text<'a>[src]

Loading content...