pub struct PathFill {
pub elements: Arc<[PathElement]>,
pub rule: FillRule,
pub paint: PathPaint,
pub transform: [f32; 6],
pub opacity: f32,
pub clip: Option<Arc<PathClip>>,
}Expand description
A shape made of curves, filled with exact coverage at each pixel, so it stays sharp at any size. A stroke is a fill of its expanded outline.
Fields§
§elements: Arc<[PathElement]>The outline.
rule: FillRuleWhich parts of it are inside.
paint: PathPaintWhat fills it.
transform: [f32; 6][a, b, c, d, e, f], taking (x, y) to (a x + c y + e, b x + d y + f) in
logical pixels.
opacity: f32Multiplies its alpha, from 0.0 to 1.0.
clip: Option<Arc<PathClip>>Shows it only through this outline.
Implementations§
Trait Implementations§
impl StructuralPartialEq for PathFill
Auto Trait Implementations§
impl Freeze for PathFill
impl RefUnwindSafe for PathFill
impl Send for PathFill
impl Sync for PathFill
impl Unpin for PathFill
impl UnsafeUnpin for PathFill
impl UnwindSafe for PathFill
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