#[repr(C)]pub struct SvgStrokeStyle {
pub start_cap: SvgLineCap,
pub end_cap: SvgLineCap,
pub line_join: SvgLineJoin,
pub dash_pattern: OptionSvgDashPattern,
pub line_width: f32,
pub miter_limit: f32,
pub tolerance: f32,
pub apply_line_width: bool,
pub transform: SvgTransform,
pub anti_alias: bool,
pub high_quality_aa: bool,
}
Fields§
§start_cap: SvgLineCap
What cap to use at the start of each sub-path.
Default value: LineCap::Butt
.
end_cap: SvgLineCap
What cap to use at the end of each sub-path.
Default value: LineCap::Butt
.
line_join: SvgLineJoin
See the SVG specification.
Default value: LineJoin::Miter
.
dash_pattern: OptionSvgDashPattern
Dash pattern
line_width: f32
Line width
Default value: StrokeOptions::DEFAULT_LINE_WIDTH
.
miter_limit: f32
See the SVG specification.
Must be greater than or equal to 1.0.
Default value: StrokeOptions::DEFAULT_MITER_LIMIT
.
tolerance: f32
Maximum allowed distance to the path when building an approximation.
See Flattening and tolerance.
Default value: StrokeOptions::DEFAULT_TOLERANCE
.
apply_line_width: bool
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.
Default value: true
. NOTE: currently unused!
transform: SvgTransform
Whether to apply a transform to the points in the path (warning: will be done on the CPU - expensive)
anti_alias: bool
Whether the fill is intended to be anti-aliased (default: true)
high_quality_aa: bool
Whether the anti-aliasing has to be of high quality (default: false)
Trait Implementations§
Source§impl Clone for SvgStrokeStyle
impl Clone for SvgStrokeStyle
Source§fn clone(&self) -> SvgStrokeStyle
fn clone(&self) -> SvgStrokeStyle
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SvgStrokeStyle
impl Debug for SvgStrokeStyle
Source§impl Default for SvgStrokeStyle
impl Default for SvgStrokeStyle
Source§fn default() -> SvgStrokeStyle
fn default() -> SvgStrokeStyle
Source§impl PartialEq for SvgStrokeStyle
impl PartialEq for SvgStrokeStyle
Source§impl PartialOrd for SvgStrokeStyle
impl PartialOrd for SvgStrokeStyle
impl Copy for SvgStrokeStyle
impl StructuralPartialEq for SvgStrokeStyle
Auto Trait Implementations§
impl Freeze for SvgStrokeStyle
impl RefUnwindSafe for SvgStrokeStyle
impl Send for SvgStrokeStyle
impl Sync for SvgStrokeStyle
impl Unpin for SvgStrokeStyle
impl UnwindSafe for SvgStrokeStyle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more