pub enum PathCommand {
MoveTo(Dp, Dp),
LineTo(Dp, Dp),
CubicTo {
c1: (Dp, Dp),
c2: (Dp, Dp),
end: (Dp, Dp),
},
Close,
}Expand description
A single command of a ShapePath, in Dp-local coordinates relative to the
element’s top-left corner. The paint layer converts these to px with the
ambient density and adds the resolved offset.
Variants§
MoveTo(Dp, Dp)
Start a new subpath at (x, y).
LineTo(Dp, Dp)
Append a straight line to (x, y).
CubicTo
Append a cubic Bezier with control points c1, c2 and endpoint end.
Close
Close the current subpath back to its starting point.
Trait Implementations§
Source§impl Clone for PathCommand
impl Clone for PathCommand
Source§impl Debug for PathCommand
impl Debug for PathCommand
Source§impl PartialEq for PathCommand
impl PartialEq for PathCommand
impl StructuralPartialEq for PathCommand
Auto Trait Implementations§
impl Forget for PathCommand
impl Freeze for PathCommand
impl Move for PathCommand
impl RefUnwindSafe for PathCommand
impl Send for PathCommand
impl Sync for PathCommand
impl Unpin for PathCommand
impl UnsafeUnpin for PathCommand
impl UnwindSafe for PathCommand
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