pub type DrawingPathOptions<'a, T> = Drawing<'a, PathOptions<T>>;
Expand description
The drawing context for a path in the tessellation options state.
Aliased Type§
struct DrawingPathOptions<'a, T> { /* private fields */ }
Implementations§
source§impl<'a, T> DrawingPathOptions<'a, T>where
T: TessellationOptions,
PathOptions<T>: Into<Primitive>,
Primitive: Into<Option<PathOptions<T>>>,
impl<'a, T> DrawingPathOptions<'a, T>where
T: TessellationOptions,
PathOptions<T>: Into<Primitive>,
Primitive: Into<Option<PathOptions<T>>>,
sourcepub fn events<I>(self, events: I) -> DrawingPath<'a>where
I: IntoIterator<Item = PathEvent>,
pub fn events<I>(self, events: I) -> DrawingPath<'a>where
I: IntoIterator<Item = PathEvent>,
Submit the path events to be tessellated.
sourcepub fn points<I>(self, points: I) -> DrawingPath<'a>
pub fn points<I>(self, points: I) -> DrawingPath<'a>
Submit the path events as a polyline of points.
sourcepub fn points_closed<I>(self, points: I) -> DrawingPath<'a>
pub fn points_closed<I>(self, points: I) -> DrawingPath<'a>
Submit the path events as a polyline of points.
An event will be generated that closes the start and end points.
sourcepub fn points_colored<I, P, C>(self, points: I) -> DrawingPath<'a>
pub fn points_colored<I, P, C>(self, points: I) -> DrawingPath<'a>
Submit path events as a polyline of colored points.
sourcepub fn points_colored_closed<I, P, C>(self, points: I) -> DrawingPath<'a>
pub fn points_colored_closed<I, P, C>(self, points: I) -> DrawingPath<'a>
Submit path events as a polyline of colored points.
The path with automatically close from the end point to the start point.
sourcepub fn points_textured<I, P, TC>(
self,
view: &dyn ToTextureView,
points: I
) -> DrawingPath<'a>
pub fn points_textured<I, P, TC>( self, view: &dyn ToTextureView, points: I ) -> DrawingPath<'a>
Submit path events as a polyline of textured points.
sourcepub fn points_textured_closed<I, P, TC>(
self,
view: &dyn ToTextureView,
points: I
) -> DrawingPath<'a>
pub fn points_textured_closed<I, P, TC>( self, view: &dyn ToTextureView, points: I ) -> DrawingPath<'a>
Submit path events as a polyline of textured points.
The path with automatically close from the end point to the start point.