Trait andrew::Drawable[][src]

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<'_>)[src][]

A function that draws the object to a canvas

Implementors

impl Drawable for Line[src][+]

impl Drawable for Rectangle[src][+]

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