#[repr(C)]pub struct SvgFillStyle {
pub line_join: SvgLineJoin,
pub miter_limit: f32,
pub tolerance: f32,
pub fill_rule: SvgFillRule,
pub transform: SvgTransform,
pub anti_alias: bool,
pub high_quality_aa: bool,
}Fields§
§line_join: SvgLineJoinSee the SVG specification.
Default value: LineJoin::Miter.
miter_limit: f32See the SVG specification.
Must be greater than or equal to 1.0.
Default value: StrokeOptions::DEFAULT_MITER_LIMIT.
tolerance: f32Maximum allowed distance to the path when building an approximation.
See Flattening and tolerance.
Default value: StrokeOptions::DEFAULT_TOLERANCE.
fill_rule: SvgFillRuleWhether to use the “winding” or “even / odd” fill rule when tesselating the path
transform: SvgTransformWhether to apply a transform to the points in the path (warning: will be done on the CPU - expensive)
anti_alias: boolWhether the fill is intended to be anti-aliased (default: true)
high_quality_aa: boolWhether the anti-aliasing has to be of high quality (default: false)
Trait Implementations§
Source§impl Clone for SvgFillStyle
impl Clone for SvgFillStyle
Source§fn clone(&self) -> SvgFillStyle
fn clone(&self) -> SvgFillStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SvgFillStyle
impl Debug for SvgFillStyle
Source§impl Default for SvgFillStyle
impl Default for SvgFillStyle
Source§impl PartialEq for SvgFillStyle
impl PartialEq for SvgFillStyle
Source§impl PartialOrd for SvgFillStyle
impl PartialOrd for SvgFillStyle
impl Copy for SvgFillStyle
impl StructuralPartialEq for SvgFillStyle
Auto Trait Implementations§
impl Freeze for SvgFillStyle
impl RefUnwindSafe for SvgFillStyle
impl Send for SvgFillStyle
impl Sync for SvgFillStyle
impl Unpin for SvgFillStyle
impl UnwindSafe for SvgFillStyle
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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