DrawingContext

Trait DrawingContext 

Source
pub trait DrawingContext {
    // Required methods
    fn fill_rect(&mut self, bounds: &Bounds, color: &Rgb565);
    fn stroke_rect(&mut self, bounds: &Bounds, color: &Rgb565);
    fn line(&mut self, start: &Point, end: &Point, color: &Rgb565);
    fn fill_text(&mut self, bounds: &Bounds, text: &str, style: &TextStyle<'_>);
    fn text(&mut self, text: &str, position: &Point, style: &TextStyle<'_>);
    fn translate(&mut self, offset: &Point);
}

Required Methods§

Source

fn fill_rect(&mut self, bounds: &Bounds, color: &Rgb565)

Source

fn stroke_rect(&mut self, bounds: &Bounds, color: &Rgb565)

Source

fn line(&mut self, start: &Point, end: &Point, color: &Rgb565)

Source

fn fill_text(&mut self, bounds: &Bounds, text: &str, style: &TextStyle<'_>)

Source

fn text(&mut self, text: &str, position: &Point, style: &TextStyle<'_>)

Source

fn translate(&mut self, offset: &Point)

Implementors§