Type Alias cosmic::widget::canvas::path::lyon_path::IdEvent

source ·
pub type IdEvent = Event<EndpointId, ControlPointId>;
Expand description

A path event representing endpoints and control points as IDs.

Aliased Type§

enum IdEvent {
    Begin {
        at: EndpointId,
    },
    Line {
        from: EndpointId,
        to: EndpointId,
    },
    Quadratic {
        from: EndpointId,
        ctrl: ControlPointId,
        to: EndpointId,
    },
    Cubic {
        from: EndpointId,
        ctrl1: ControlPointId,
        ctrl2: ControlPointId,
        to: EndpointId,
    },
    End {
        last: EndpointId,
        first: EndpointId,
        close: bool,
    },
}

Variants§

§

Begin

Fields

§

Line

Fields

§

Quadratic

§

Cubic

§

End

Fields

§close: bool