pub enum PathVerb {
MoveTo(Point),
LineTo(Point),
QuadTo {
ctrl: Point,
to: Point,
},
CubicTo {
c1: Point,
c2: Point,
to: Point,
},
Close,
}Expand description
A single drawing command.
Variants§
MoveTo(Point)
Lift the pen and put it down again: starts a new sub-path at this point.
LineTo(Point)
A straight segment from the current point to to.
QuadTo
A quadratic Bézier curve (one control point).
CubicTo
A cubic Bézier curve (two control points).
Fields
Close
Closes the current sub-path, joining it back to its starting point.
Trait Implementations§
impl Copy for PathVerb
impl StructuralPartialEq for PathVerb
Auto Trait Implementations§
impl Freeze for PathVerb
impl RefUnwindSafe for PathVerb
impl Send for PathVerb
impl Sync for PathVerb
impl Unpin for PathVerb
impl UnsafeUnpin for PathVerb
impl UnwindSafe for PathVerb
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