pub struct PathStyle {
pub fill: Option<FillRule>,
pub stroke: bool,
pub line_width: f32,
pub line_cap: LineCapStyle,
pub line_join: LineJoinStyle,
pub miter_limit: f32,
pub dash: Option<DashPattern>,
}Expand description
Style for path rendering, combining fill rule, stroke, and line attributes.
Default values match the PDF initial graphics state (PDF spec §8.4.1).
Fields§
§fill: Option<FillRule>Fill rule, or None for no fill.
stroke: boolWhether to stroke the path.
line_width: f32Line width in user space units (default: 1.0).
line_cap: LineCapStyleLine cap style (default: Butt).
line_join: LineJoinStyleLine join style (default: Miter).
miter_limit: f32Miter limit (default: 10.0).
dash: Option<DashPattern>Dash pattern, or None for solid line.
Trait Implementations§
impl StructuralPartialEq for PathStyle
Auto Trait Implementations§
impl Freeze for PathStyle
impl RefUnwindSafe for PathStyle
impl Send for PathStyle
impl Sync for PathStyle
impl Unpin for PathStyle
impl UnsafeUnpin for PathStyle
impl UnwindSafe for PathStyle
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