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

pub type IdEvent = Event<EndpointId, ControlPointId>;
Available on crate feature canvas only.
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