Struct lyon_tessellation::path_stroke::StrokeOptions
[−]
[src]
pub struct StrokeOptions { pub line_cap: LineCap, pub line_join: LineJoin, pub miter_limit: f32, pub tolerance: f32, pub vertex_aa: bool, // some fields omitted }
Parameters for the tessellator.
Fields
line_cap: LineCap
See the SVG secification.
line_join: LineJoin
See the SVG secification.
Not implemented yet!
miter_limit: f32
See the SVG secification.
Not implemented yet!
tolerance: f32
Maximum allowed distance to the path when building an approximation.
vertex_aa: bool
An anti-aliasing trick extruding a 1-px wide strip around the edges with a gradient to smooth the edges.
Not implemented yet!
Methods
impl StrokeOptions
[src]
fn default() -> StrokeOptions
fn with_tolerance(self, tolerance: f32) -> StrokeOptions
fn with_line_cap(self, cap: LineCap) -> StrokeOptions
fn with_line_join(self, join: LineJoin) -> StrokeOptions
fn with_miter_limit(self, limit: f32) -> StrokeOptions
fn with_vertex_aa(self) -> StrokeOptions
Trait Implementations
impl Copy for StrokeOptions
[src]
impl Clone for StrokeOptions
[src]
fn clone(&self) -> StrokeOptions
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for StrokeOptions
[src]
impl PartialEq for StrokeOptions
[src]
fn eq(&self, __arg_0: &StrokeOptions) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &StrokeOptions) -> bool
This method tests for !=
.