pub struct Drawing { /* private fields */ }Expand description
The drawing contains
Implementations§
Source§impl Drawing
impl Drawing
pub fn new() -> Self
Sourcepub fn forward(&mut self, pen: &mut Pen, distance: Distance)
pub fn forward(&mut self, pen: &mut Pen, distance: Distance)
Move by distance forward from pen with the same angle
Sourcepub fn backward(&mut self, pen: &mut Pen, distance: Distance)
pub fn backward(&mut self, pen: &mut Pen, distance: Distance)
Move by distance backward from pen with the same angle
Sourcepub fn set_background_color<C: Into<Color>>(&mut self, color: C)
pub fn set_background_color<C: Into<Color>>(&mut self, color: C)
Change the background color
Sourcepub fn set_center<P: Into<DrawingPos>>(&mut self, positon: P)
pub fn set_center<P: Into<DrawingPos>>(&mut self, positon: P)
Centering the drawing
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Drawing
impl RefUnwindSafe for Drawing
impl Send for Drawing
impl Sync for Drawing
impl Unpin for Drawing
impl UnwindSafe for Drawing
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more