pub struct Path(/* private fields */);
Expand description
Graphics path object.
Implementations§
Source§impl Path
impl Path
Sourcepub fn move_to(&mut self, point: Pos, is_relative: bool) -> Result<&mut Path>
pub fn move_to(&mut self, point: Pos, is_relative: bool) -> Result<&mut Path>
Move the current drawing path position to x,y
.
If is_relative
is true
then the specified coordinates are interpreted as deltas from the current path position.
Sourcepub fn line_to(&mut self, point: Pos, is_relative: bool) -> Result<&mut Path>
pub fn line_to(&mut self, point: Pos, is_relative: bool) -> Result<&mut Path>
Draw a line and move the current drawing path position to x,y
.
If is_relative
is true
then the specified coordinates are interpreted as deltas from the current path position.
Sourcepub fn arc_to(
&mut self,
xy: Pos,
angle: Angle,
rxy: Pos,
is_large: bool,
is_clockwise: bool,
is_relative: bool,
) -> Result<&mut Path>
pub fn arc_to( &mut self, xy: Pos, angle: Angle, rxy: Pos, is_large: bool, is_clockwise: bool, is_relative: bool, ) -> Result<&mut Path>
Draw an arc.
Trait Implementations§
Source§impl Clone for Path
Copies path object.
impl Clone for Path
Copies path object.
All allocated objects are reference counted so copying is just a matter of increasing reference counts.
Auto Trait Implementations§
impl Freeze for Path
impl RefUnwindSafe for Path
impl !Send for Path
impl !Sync for Path
impl Unpin for Path
impl UnwindSafe for Path
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