pub enum OutlineCommand {
MoveTo {
x: f32,
y: f32,
},
LineTo {
x: f32,
y: f32,
},
QuadTo {
cx: f32,
cy: f32,
x: f32,
y: f32,
},
CurveTo {
c1x: f32,
c1y: f32,
c2x: f32,
c2y: f32,
x: f32,
y: f32,
},
Close,
}Expand description
Glyph outline command in font design units, with y increasing upward.
Variants§
MoveTo
Move the pen to a new position.
LineTo
Draw a straight line to the given position.
QuadTo
Draw a quadratic Bezier curve.
Fields
CurveTo
Draw a cubic Bezier curve.
Fields
Close
Close the current subpath.
Trait Implementations§
Source§impl Clone for OutlineCommand
impl Clone for OutlineCommand
Source§fn clone(&self) -> OutlineCommand
fn clone(&self) -> OutlineCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OutlineCommand
Source§impl Debug for OutlineCommand
impl Debug for OutlineCommand
Source§impl PartialEq for OutlineCommand
impl PartialEq for OutlineCommand
Source§fn eq(&self, other: &OutlineCommand) -> bool
fn eq(&self, other: &OutlineCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OutlineCommand
Auto Trait Implementations§
impl Freeze for OutlineCommand
impl RefUnwindSafe for OutlineCommand
impl Send for OutlineCommand
impl Sync for OutlineCommand
impl Unpin for OutlineCommand
impl UnsafeUnpin for OutlineCommand
impl UnwindSafe for OutlineCommand
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