cosmic::widget::canvas::path::lyon_path

Type Alias PathEvent

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