pub struct PaintedPath {
pub path: Path,
pub stroke: bool,
pub fill: bool,
pub fill_rule: FillRule,
pub line_width: f64,
pub stroke_color: Color,
pub fill_color: Color,
pub dash_pattern: DashPattern,
pub stroke_alpha: f64,
pub fill_alpha: f64,
}Expand description
A painted path — the result of a painting operator applied to a constructed path.
Fields§
§path: PathThe path segments.
stroke: boolWhether the path is stroked.
fill: boolWhether the path is filled.
fill_rule: FillRuleFill rule used (only meaningful when fill is true).
line_width: f64Line width at the time of painting.
stroke_color: ColorStroking color at the time of painting.
fill_color: ColorFill color at the time of painting.
dash_pattern: DashPatternDash pattern at the time of painting.
stroke_alpha: f64Stroking alpha at the time of painting.
fill_alpha: f64Non-stroking alpha at the time of painting.
Trait Implementations§
Source§impl Clone for PaintedPath
impl Clone for PaintedPath
Source§fn clone(&self) -> PaintedPath
fn clone(&self) -> PaintedPath
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 PaintedPath
impl Debug for PaintedPath
Source§impl PartialEq for PaintedPath
impl PartialEq for PaintedPath
impl StructuralPartialEq for PaintedPath
Auto Trait Implementations§
impl Freeze for PaintedPath
impl RefUnwindSafe for PaintedPath
impl Send for PaintedPath
impl Sync for PaintedPath
impl Unpin for PaintedPath
impl UnsafeUnpin for PaintedPath
impl UnwindSafe for PaintedPath
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