lyon_path

Type Alias PathEvent

source
pub type PathEvent = Event<Point, Point>;
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§

Implementations§

source§

impl PathEvent

source

pub fn transformed<T: Transformation<f32>>(&self, mat: &T) -> Self