pub struct Painter { /* private fields */ }
Implementations§
Trait Implementations§
source§impl PainterTrait for Painter
impl PainterTrait for Painter
source§fn restore(&mut self)
fn restore(&mut self)
Restores to the state saved by a preceding call to
Self::save
and removes
that state from internal stack.fn clear_all(&mut self)
source§fn stroke(&mut self, path: &dyn PathTrait)
fn stroke(&mut self, path: &dyn PathTrait)
Strokes (outlines) the path with the current stoke style.
source§fn scale(&mut self, sx: f64, sy: f64)
fn scale(&mut self, sx: f64, sy: f64)
Add a scaling transformation to the canvas units horizontally and/or vertically.