pub struct StrokeStyle {
pub width: f32,
pub line_cap: LineCapStyle,
pub line_join: LineJoinStyle,
pub miter_limit: f32,
pub dash: Option<DashPattern>,
}Expand description
Stroke style parameters for rendering.
Fields§
§width: f32Line width in user space units.
line_cap: LineCapStyleLine cap style.
line_join: LineJoinStyleLine join style.
miter_limit: f32Miter limit for miter joins.
dash: Option<DashPattern>Dash pattern, or None for solid lines.
Implementations§
Source§impl StrokeStyle
impl StrokeStyle
Sourcepub fn from_path_style(style: &PathStyle) -> Self
pub fn from_path_style(style: &PathStyle) -> Self
Create a stroke style from a PDF path style.
Trait Implementations§
Source§impl Clone for StrokeStyle
impl Clone for StrokeStyle
Source§fn clone(&self) -> StrokeStyle
fn clone(&self) -> StrokeStyle
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 StrokeStyle
impl Debug for StrokeStyle
Source§impl PartialEq for StrokeStyle
impl PartialEq for StrokeStyle
impl StructuralPartialEq for StrokeStyle
Auto Trait Implementations§
impl Freeze for StrokeStyle
impl RefUnwindSafe for StrokeStyle
impl Send for StrokeStyle
impl Sync for StrokeStyle
impl Unpin for StrokeStyle
impl UnsafeUnpin for StrokeStyle
impl UnwindSafe for StrokeStyle
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