logo
pub struct StrokeBuilder<'l> { /* private fields */ }
Expand description

A builder object that tessellates a stroked path via the PathBuilder interface.

Can be created using StrokeTessellator::builder_with_attributes.

Implementations

Trait Implementations

The type of object that is created by this builder.

Builds a path object, consuming the builder.

Starts a new sub-path at a given position. Read more

Ends the current sub path. 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

Closes the current sub path. 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 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

Adds a sub-path containing a rectangle. Read more

Returns a builder that approximates all curves with sequences of line segments.

Returns a builder that applies the given transformation to all positions.

Returns a builder that support SVG commands. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.