Enum skrifa::outline::pen::PathElement
source · pub enum PathElement {
MoveTo {
x: f32,
y: f32,
},
LineTo {
x: f32,
y: f32,
},
QuadTo {
cx0: f32,
cy0: f32,
x: f32,
y: f32,
},
CurveTo {
cx0: f32,
cy0: f32,
cx1: f32,
cy1: f32,
x: f32,
y: f32,
},
Close,
}
Expand description
Single element of a path.
Variants§
MoveTo
Begin a new subpath at (x, y).
LineTo
Draw a line from the current point to (x, y).
QuadTo
Draw a quadratic bezier from the current point with a control point at (cx0, cy0) and ending at (x, y).
CurveTo
Draw a cubic bezier from the current point with control points at (cx0, cy0) and (cx1, cy1) and ending at (x, y).
Close
Close the current subpath.
Trait Implementations§
source§impl Clone for PathElement
impl Clone for PathElement
source§fn clone(&self) -> PathElement
fn clone(&self) -> PathElement
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PathElement
impl Debug for PathElement
source§impl PartialEq for PathElement
impl PartialEq for PathElement
source§impl PartialOrd for PathElement
impl PartialOrd for PathElement
impl Copy for PathElement
impl StructuralPartialEq for PathElement
Auto Trait Implementations§
impl Freeze for PathElement
impl RefUnwindSafe for PathElement
impl Send for PathElement
impl Sync for PathElement
impl Unpin for PathElement
impl UnwindSafe for PathElement
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)