pub enum PathVerb {
MoveTo(Point),
LineTo(Point),
QuadTo {
ctrl: Point,
end: Point,
},
CubicTo {
c1: Point,
c2: Point,
end: Point,
},
Close,
}Expand description
A single drawing verb in a PathData sequence.
Variants§
MoveTo(Point)
Begin a new sub-path at the given point.
LineTo(Point)
Draw a straight line to the given point.
QuadTo
Draw a quadratic Bézier curve with one control point.
CubicTo
Draw a cubic Bézier curve with two control points.
Fields
Close
Close the current sub-path by drawing a line back to the last MoveTo.
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