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
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 Copy for LineCap
impl Clone for LineCap
[src]
impl Clone for LineCap
fn clone(&self) -> LineCap
[src]
fn clone(&self) -> LineCap
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for LineCap
[src]
impl Debug for LineCap
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for LineCap
[src]
impl PartialEq for LineCap