iced_renderer::geometry::path::lyon_path

Type Alias IdEvent

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