Enum floem_cosmic_text::Command
source · pub enum Command {
MoveTo(Vector),
LineTo(Vector),
CurveTo(Vector, Vector, Vector),
QuadTo(Vector, Vector),
Close,
}
Expand description
Path command.
Variants§
MoveTo(Vector)
Begins a new subpath at the specified point.
LineTo(Vector)
A straight line from the previous point to the specified point.
CurveTo(Vector, Vector, Vector)
A cubic bezier curve from the previous point to the final point with two intermediate control points.
QuadTo(Vector, Vector)
A quadratic curve from the previous point to the final point with one intermediate control point.
Close
Closes a subpath, connecting the final point to the initial point.
Implementations§
Trait Implementations§
source§impl PartialEq for Command
impl PartialEq for Command
impl Copy for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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