Type Alias PathEvent
pub type PathEvent = Event<Point2D<f32, UnknownUnit>, Point2D<f32, UnknownUnit>>;
Available on crate feature
canvas
only.Expand description
A path event representing endpoints and control points as positions.
Aliased Type§
enum PathEvent {
Begin {
at: Point2D<f32, UnknownUnit>,
},
Line {
from: Point2D<f32, UnknownUnit>,
to: Point2D<f32, UnknownUnit>,
},
Quadratic {
from: Point2D<f32, UnknownUnit>,
ctrl: Point2D<f32, UnknownUnit>,
to: Point2D<f32, UnknownUnit>,
},
Cubic {
from: Point2D<f32, UnknownUnit>,
ctrl1: Point2D<f32, UnknownUnit>,
ctrl2: Point2D<f32, UnknownUnit>,
to: Point2D<f32, UnknownUnit>,
},
End {
last: Point2D<f32, UnknownUnit>,
first: Point2D<f32, UnknownUnit>,
close: bool,
},
}
Variants§
Begin
Fields
§
at: Point2D<f32, UnknownUnit>
Line
Quadratic
Fields
§
from: Point2D<f32, UnknownUnit>
§
ctrl: Point2D<f32, UnknownUnit>
§
to: Point2D<f32, UnknownUnit>
Cubic
Fields
§
from: Point2D<f32, UnknownUnit>
§
ctrl1: Point2D<f32, UnknownUnit>
§
ctrl2: Point2D<f32, UnknownUnit>
§
to: Point2D<f32, UnknownUnit>