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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.