pub enum PathOp {
Close(),
Move(Pt<f32>),
Line(Pt<f32>),
Quad(Pt<f32>, Pt<f32>),
Cubic(Pt<f32>, Pt<f32>, Pt<f32>),
PenWidth(f32),
}
Expand description
Path operation.
Variants
Close()
Close the path
Move(Pt<f32>)
Move to a point
Line(Pt<f32>)
Straight line to end point
Quad(Pt<f32>, Pt<f32>)
Quadratic bézier curve (control point and end point)
Cubic(Pt<f32>, Pt<f32>, Pt<f32>)
Cubic bézier curve (two control points and end point)
PenWidth(f32)
Set pen width (for stroking)
Trait Implementations
impl Copy for PathOp
impl StructuralPartialEq for PathOp
Auto Trait Implementations
impl RefUnwindSafe for PathOp
impl Send for PathOp
impl Sync for PathOp
impl Unpin for PathOp
impl UnwindSafe for PathOp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more