pub enum Verb {
MoveTo(f32, f32),
LineTo(f32, f32),
BezierTo(f32, f32, f32, f32, f32, f32),
Solid,
Hole,
Close,
}
Expand description
A verb describes how to interpret one or more points to continue the countour
of a Path
.
Variants§
MoveTo(f32, f32)
Terminates the current sub-path and defines the new current point by the given x/y f32 coordinates.
LineTo(f32, f32)
Describes that the contour of the path should continue as a line from the current point to the given x/y f32 coordinates.
BezierTo(f32, f32, f32, f32, f32, f32)
Describes that the contour of the path should continue as a cubie bezier segment from the current point via two control points (as f32 pairs) to the point in the last f32 pair.
Solid
Sets the current sub-path winding to be solid.
Hole
Sets the current sub-path winding to be hole.
Close
Closes the current sub-path.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Verb
impl RefUnwindSafe for Verb
impl Send for Verb
impl Sync for Verb
impl Unpin for Verb
impl UnwindSafe for Verb
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