Enum lyon_tessellation::LineCap [] [src]

pub enum LineCap {
    Butt,
    Square,
    Round,
}

Line cap as defined by the SVG specification.

See: https://svgwg.org/specs/strokes/#StrokeLinecapProperty

LineCap::Butt LineCap::Square LineCap::Round

Variants

The stroke for each subpath does not extend beyond its two endpoints. A zero length subpath will therefore not have any stroke.

At the end of each subpath, 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 subpath has zero length, then the resulting effect is that the stroke for that subpath consists solely of a square with side length equal to the stroke width, centered at the subpath's point.

[Not implemented] At each end of each subpath, the shape representing the stroke will be extended by a half circle with a radius equal to the stroke width. If a subpath has zero length, then the resulting effect is that the stroke for that subpath consists solely of a full circle centered at the subpath's point.

Trait Implementations

impl Copy for LineCap
[src]

impl Clone for LineCap
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for LineCap
[src]

Formats the value using the given formatter.

impl PartialEq for LineCap
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.