pub enum Command {
MoveTo(Point),
LineTo(Point),
CurveTo(Point, Point, Point),
QuadTo(Point, Point),
Close,
}
Expand description
Path command.
Variants§
MoveTo(Point)
Begins a new subpath at the specified point.
LineTo(Point)
A straight line from the previous point to the specified point.
CurveTo(Point, Point, Point)
A cubic bezier curve from the previous point to the final point with two intermediate control points.
QuadTo(Point, Point)
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§
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
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
)