Enum fonterator::PathOp

source ·
pub enum PathOp {
    Close(),
    Move(f32f32),
    Line(f32f32),
    Quad(f32f32f32f32),
    Cubic(f32f32f32f32f32f32),
    PenWidth(f32),
}
Expand description

PathOp from Footile. Path operation.

Variants

Close()

Close the path

Move(f32f32)

Move to (x, y)

Line(f32f32)

Straight line to (x, y)

Quad(f32f32f32f32)

Quadratic bézier curve (cx, cy, x, y)

Cubic(f32f32f32f32f32f32)

Cubic bézier curve (ax, ay, bx, by, x, y)

PenWidth(f32)

Set pen width (for stroking)

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.