cosmic::iced_winit::graphics::geometry::path::lyon_path

Trait PositionStore

source
pub trait PositionStore {
    // Required methods
    fn get_endpoint(&self, id: EndpointId) -> Point2D<f32, UnknownUnit>;
    fn get_control_point(&self, id: ControlPointId) -> Point2D<f32, UnknownUnit>;
}
Expand description

Interface for objects storing endpoints and control points positions.

This interface can be implemented by path objects themselves or via external data structures.

Required Methods§

Implementations on Foreign Types§

source§

impl<'l> PositionStore for (&'l [Point2D<f32, UnknownUnit>], &'l [Point2D<f32, UnknownUnit>])

Implementors§

source§

impl PositionStore for Path

source§

impl<'l> PositionStore for PathSlice<'l>

source§

impl<'l, Endpoint> PositionStore for Polygon<'l, Endpoint>
where Endpoint: Position,

source§

impl<'l, Endpoint, ControlPoint> PositionStore for CommandsPathSlice<'l, Endpoint, ControlPoint>
where Endpoint: Position, ControlPoint: Position,