Enum lyon_tessellation::LineCap
[−]
[src]
pub enum LineCap { Butt, Square, Round, }
Line cap as defined by the SVG specification.
Variants
Butt
The stroke for each subpath does not extend beyond its two endpoints. A zero length subpath will therefore not have any stroke.
Square
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.
Round
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]
fn clone(&self) -> LineCap
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more