Struct lyon_tessellation::StrokeOptions [] [src]

pub struct StrokeOptions {
    pub start_cap: LineCap,
    pub end_cap: LineCap,
    pub line_join: LineJoin,
    pub line_width: f32,
    pub miter_limit: f32,
    pub tolerance: f32,
    pub vertex_aa: bool,
    pub apply_line_width: bool,
    // some fields omitted
}

Parameters for the tessellator.

Fields

What cap to use at the start of each sub-path.

What cap to use at the end of each sub-path.

See the SVG specification.

Line width

See the SVG specification.

Not implemented yet!

Maximum allowed distance to the path when building an approximation.

See Flattening and tolerance.

An anti-aliasing trick extruding a 1-px wide strip around the edges with a gradient to smooth the edges.

Not implemented yet!

Apply line width

When set to false, the generated vertices will all be positioned in the centre of the line. The width can be applied later on (eg in a vertex shader) by adding the vertex normal multiplied by the line with to each vertex position.

Methods

impl StrokeOptions
[src]

Trait Implementations

impl Copy for StrokeOptions
[src]

impl Clone for StrokeOptions
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for StrokeOptions
[src]

Formats the value using the given formatter.

impl PartialEq for StrokeOptions
[src]

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

This method tests for !=.