pub type DrawingPolygonInit<'a> = Drawing<'a, PolygonInit>;
Expand description
Initialised drawing state for a polygon.
Aliased Type§
struct DrawingPolygonInit<'a> { /* private fields */ }
Implementations§
source§impl<'a> DrawingPolygonInit<'a>
impl<'a> DrawingPolygonInit<'a>
sourcepub fn stroke<C>(self, color: C) -> Selfwhere
C: IntoLinSrgba<ColorScalar>,
pub fn stroke<C>(self, color: C) -> Selfwhere
C: IntoLinSrgba<ColorScalar>,
Stroke the outline with the given color.
sourcepub fn events<I>(self, events: I) -> DrawingPolygon<'a>where
I: IntoIterator<Item = PathEvent>,
pub fn events<I>(self, events: I) -> DrawingPolygon<'a>where
I: IntoIterator<Item = PathEvent>,
Describe the polygon with a sequence of path events.
sourcepub fn points<I>(self, points: I) -> DrawingPolygon<'a>
pub fn points<I>(self, points: I) -> DrawingPolygon<'a>
Describe the polygon with a sequence of points.
sourcepub fn points_colored<I, P, C>(self, points: I) -> DrawingPolygon<'a>
pub fn points_colored<I, P, C>(self, points: I) -> DrawingPolygon<'a>
Consumes an iterator of points and converts them to an iterator yielding path events.
sourcepub fn points_textured<I, P, T>(
self,
view: &dyn ToTextureView,
points: I
) -> DrawingPolygon<'a>
pub fn points_textured<I, P, T>( self, view: &dyn ToTextureView, points: I ) -> DrawingPolygon<'a>
Describe the polygon with an iterator yielding textured poings.