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, y up.
Variants§
MoveTo
Starts a contour.
LineTo
Straight segment.
QuadTo
Quadratic Bezier segment.
Fields
CurveTo
Cubic Bezier segment.
Fields
Close
Closes the contour.
Trait Implementations§
Source§impl Clone for OutlineCommand
impl Clone for OutlineCommand
impl Copy for OutlineCommand
Source§impl Debug for OutlineCommand
impl Debug for OutlineCommand
Source§impl PartialEq for OutlineCommand
impl PartialEq for OutlineCommand
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