pub struct StrokeParams<'a> {
pub line_width: f64,
pub line_cap: LineCap,
pub line_join: LineJoin,
pub miter_limit: f64,
pub flatness: f64,
pub stroke_adjust: bool,
pub line_dash: &'a [f64],
pub line_dash_phase: f64,
pub vector_antialias: bool,
}Expand description
Parameters governing how a stroke is rendered.
All fields mirror the correspondingly named fields on the C++ SplashState.
Fields§
§line_width: f64Stroke line width in user space.
line_cap: LineCapLine cap style (Butt / Round / Projecting).
line_join: LineJoinLine join style (Miter / Round / Bevel).
miter_limit: f64Miter limit (dimensionless ratio).
flatness: f64Flatness for curve flattening (maximum chord deviation, device pixels).
stroke_adjust: boolWhether stroke adjustment is enabled.
line_dash: &'a [f64]Dash array; empty slice means solid line.
line_dash_phase: f64Phase offset into the dash array.
vector_antialias: boolWhether vector anti-aliasing is requested.
Auto Trait Implementations§
impl<'a> Freeze for StrokeParams<'a>
impl<'a> RefUnwindSafe for StrokeParams<'a>
impl<'a> Send for StrokeParams<'a>
impl<'a> Sync for StrokeParams<'a>
impl<'a> Unpin for StrokeParams<'a>
impl<'a> UnsafeUnpin for StrokeParams<'a>
impl<'a> UnwindSafe for StrokeParams<'a>
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