Struct lyon_tessellation::StrokeBuilder [−][src]
pub struct StrokeBuilder<'l> { /* fields omitted */ }
Expand description
A builder that tessellates a stroke directly without allocating any intermediate data structure.
Implementations
Trait Implementations
type PathType = TessellationResult
type PathType = TessellationResult
The type of object that is created by this builder.
Builds a path object and resets the builder so that it can be used again.
Starts a new sub-path at a given position. Read more
Adds a line segment to the current sub-path. Read more
Adds a quadratic bézier curve to the current sub-path. Read more
Adds a cubic bézier curve to the current sub-path. Read more
Adds a sub-path containing a rectangle. Read more
Hints at the builder that a certain number of endpoints and control points will be added. Read more
Applies the provided path event. Read more
Adds events from an iterator.
Adds a sub-path from a polygon. Read more
Adds a sub-path containing a single point. Read more
Adds a sub-path containing a single line segment. Read more
Adds a sub-path containing an ellipse. Read more
Adds a sub-path containing a circle. Read more
fn add_rounded_rectangle(
&mut self,
rect: &Rect<f32, UnknownUnit>,
radii: &BorderRadii,
winding: Winding
)
fn add_rounded_rectangle(
&mut self,
rect: &Rect<f32, UnknownUnit>,
radii: &BorderRadii,
winding: Winding
)
Adds a sub-path containing a rectangle. Read more
Returns a builder that approximates all curves with sequences of line segments.
fn transformed<Transform>(
self,
transform: Transform
) -> Transformed<Self, Transform> where
Transform: Transformation<f32>,
fn transformed<Transform>(
self,
transform: Transform
) -> Transformed<Self, Transform> where
Transform: Transformation<f32>,
Returns a builder that applies the given transformation to all positions.
Auto Trait Implementations
impl<'l> !RefUnwindSafe for StrokeBuilder<'l>
impl<'l> !Send for StrokeBuilder<'l>
impl<'l> !Sync for StrokeBuilder<'l>
impl<'l> Unpin for StrokeBuilder<'l>
impl<'l> !UnwindSafe for StrokeBuilder<'l>