pub enum PathOp {
MoveTo(Vec2),
LineTo(Vec2),
QuadTo(Vec2, Vec2),
CubicTo(Vec2, Vec2, Vec2),
ArcTo {
rx: f32,
ry: f32,
rotation: f32,
large: bool,
sweep: bool,
to: Vec2,
},
Close,
}Expand description
One drawing command, every coordinate absolute, in the space the path was declared in.
Variants§
MoveTo(Vec2)
Begins a subpath at the point.
LineTo(Vec2)
A straight line to the point.
QuadTo(Vec2, Vec2)
A quadratic curve through one control point to the end point.
CubicTo(Vec2, Vec2, Vec2)
A cubic curve through two control points to the end point.
ArcTo
An elliptical arc as SVG spells it: the radii, the ellipse’s rotation in degrees, the large-arc and sweep flags, the end point.
Close
Closes the subpath back to its start.
Implementations§
Trait Implementations§
impl Copy for PathOp
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