type PathStroke<S = Default> = PathOptions<StrokeOptions, S>;
A stroked path drawing context.
pub fn weight(self, weight: f32) -> Self
[src]
Short-hand for the stroke_weight
method.
Short-hand for the stroke_tolerance
method.
Provide a mutable reference to the StrokeOptions
field.
fn stroke_opts(self, opts: StrokeOptions) -> Self
[src]
Specify the whole set of stroke tessellation options.
fn start_cap(self, cap: LineCap) -> Self
[src]
The start line cap as specified by the SVG spec.
fn end_cap(self, cap: LineCap) -> Self
[src]
The end line cap as specified by the SVG spec.
fn caps(self, cap: LineCap) -> Self
[src]
The start and end line cap as specified by the SVG spec.
The stroke for each sub-path does not extend beyond its two endpoints. A zero length sub-path will therefore not have any stroke. Read more
At the end of each sub-path, the shape representing the stroke will be extended by a rectangle with the same width as the stroke width and whose length is half of the stroke width. If a sub-path has zero length, then the resulting effect is that the stroke for that sub-path consists solely of a square with side length equal to the stroke width, centered at the sub-path's point. Read more
At each end of each sub-path, the shape representing the stroke will be extended by a half circle with a radius equal to the stroke width. If a sub-path has zero length, then the resulting effect is that the stroke for that sub-path consists solely of a full circle centered at the sub-path's point. Read more
The stroke for each sub-path does not extend beyond its two endpoints. A zero length sub-path will therefore not have any stroke. Read more
At the end of each sub-path, the shape representing the stroke will be extended by a rectangle with the same width as the stroke width and whose length is half of the stroke width. If a sub-path has zero length, then the resulting effect is that the stroke for that sub-path consists solely of a square with side length equal to the stroke width, centered at the sub-path's point. Read more
At each end of each sub-path, the shape representing the stroke will be extended by a half circle with a radius equal to the stroke width. If a sub-path has zero length, then the resulting effect is that the stroke for that sub-path consists solely of a full circle centered at the sub-path's point. Read more
The stroke for each sub-path does not extend beyond its two endpoints. A zero length sub-path will therefore not have any stroke. Read more
At the end of each sub-path, the shape representing the stroke will be extended by a rectangle with the same width as the stroke width and whose length is half of the stroke width. If a sub-path has zero length, then the resulting effect is that the stroke for that sub-path consists solely of a square with side length equal to the stroke width, centered at the sub-path's point. Read more
At each end of each sub-path, the shape representing the stroke will be extended by a half circle with a radius equal to the stroke width. If a sub-path has zero length, then the resulting effect is that the stroke for that sub-path consists solely of a full circle centered at the sub-path's point. Read more
fn join(self, join: LineJoin) -> Self
[src]
The way in which lines are joined at the vertices, matching the SVG spec. Read more
A sharp corner is to be used to join path segments.
Same as a join_miter
, but if the miter limit is exceeded, the miter is clipped at a miter length equal to the miter limit value multiplied by the stroke width. Read more
A round corner is to be used to join path segments.
A bevelled corner is to be used to join path segments. The bevel shape is a triangle that fills the area between the two stroked segments. Read more
The total stroke_weight (aka width) of the line.
Describes the limit before miter lines will clip, as described in the SVG spec. Read more
Maximum allowed distance to the path when building an approximation.