pub struct PathEvent {
pub segments: Vec<PathSegment>,
pub paint_op: PaintOp,
pub line_width: f64,
pub stroking_color: Option<Color>,
pub non_stroking_color: Option<Color>,
pub ctm: [f64; 6],
pub dash_pattern: Option<DashPattern>,
pub fill_rule: Option<FillRule>,
}Expand description
Information about a painted path.
Produced by the interpreter when a path is stroked, filled, or both. Contains the path geometry, paint operation, and graphics state at the time of painting.
Fields§
§segments: Vec<PathSegment>The path segments making up this path.
paint_op: PaintOpThe paint operation applied.
line_width: f64Stroke line width.
stroking_color: Option<Color>Stroking (outline) color.
non_stroking_color: Option<Color>Non-stroking (fill) color.
ctm: [f64; 6]Current transformation matrix at the time of painting.
dash_pattern: Option<DashPattern>Dash pattern for stroked paths.
fill_rule: Option<FillRule>Fill rule for filled paths.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PathEvent
impl RefUnwindSafe for PathEvent
impl Send for PathEvent
impl Sync for PathEvent
impl Unpin for PathEvent
impl UnsafeUnpin for PathEvent
impl UnwindSafe for PathEvent
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