pub enum PathOp {
MoveTo {
x: f32,
y: f32,
},
LineTo {
x: f32,
y: f32,
},
CurveTo {
x1: f32,
y1: f32,
x2: f32,
y2: f32,
x3: f32,
y3: f32,
},
Close,
}Expand description
A single path construction operation.
Coordinates are in user space (pre-CTM transformation).
Variants§
MoveTo
Move to a new point, starting a new subpath.
LineTo
Draw a straight line to the given point.
CurveTo
Draw a cubic Bezier curve with two control points and an endpoint.
Close
Close the current subpath with a straight line back to its start.
Trait Implementations§
impl StructuralPartialEq for PathOp
Auto Trait Implementations§
impl Freeze for PathOp
impl RefUnwindSafe for PathOp
impl Send for PathOp
impl Sync for PathOp
impl Unpin for PathOp
impl UnsafeUnpin for PathOp
impl UnwindSafe for PathOp
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