pub enum PathOperation {
MoveTo(f32, f32),
LineTo(f32, f32),
CurveTo(f32, f32, f32, f32, f32, f32),
Rectangle(f32, f32, f32, f32),
ClosePath,
}Expand description
A single path operation.
Variants§
MoveTo(f32, f32)
Move to a point (m operator)
LineTo(f32, f32)
Line to a point (l operator)
CurveTo(f32, f32, f32, f32, f32, f32)
Bezier curve to a point (c operator) (control1_x, control1_y, control2_x, control2_y, end_x, end_y)
Rectangle(f32, f32, f32, f32)
Rectangle (re operator) (x, y, width, height)
ClosePath
Close the current path (h operator)
Trait Implementations§
Source§impl Clone for PathOperation
impl Clone for PathOperation
impl Copy for PathOperation
Source§impl Debug for PathOperation
impl Debug for PathOperation
Source§impl PartialEq for PathOperation
impl PartialEq for PathOperation
Source§impl Serialize for PathOperation
impl Serialize for PathOperation
impl StructuralPartialEq for PathOperation
Auto Trait Implementations§
impl Freeze for PathOperation
impl RefUnwindSafe for PathOperation
impl Send for PathOperation
impl Sync for PathOperation
impl Unpin for PathOperation
impl UnsafeUnpin for PathOperation
impl UnwindSafe for PathOperation
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