pub struct AlphaMaskPaint {
pub path: BezPath,
pub transform: Affine,
pub fill: Paint,
pub opacity: f64,
pub paint_bounds: Rect,
pub composition: Option<(u32, f32)>,
}Expand description
One vector paint contributing alpha to a mask, in local path coordinates. Color channels do not affect coverage; fill alpha and opacity are multiplied.
Fields§
§path: BezPath§transform: Affine§fill: Paint§opacity: f64§paint_bounds: RectComplete local geometry bounds before stroke expansion or trimming.
composition: Option<(u32, f32)>Primitive boundary: compose its paints before applying source-relative opacity.
Trait Implementations§
Source§impl Clone for AlphaMaskPaint
impl Clone for AlphaMaskPaint
Source§fn clone(&self) -> AlphaMaskPaint
fn clone(&self) -> AlphaMaskPaint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AlphaMaskPaint
impl RefUnwindSafe for AlphaMaskPaint
impl Send for AlphaMaskPaint
impl Sync for AlphaMaskPaint
impl Unpin for AlphaMaskPaint
impl UnsafeUnpin for AlphaMaskPaint
impl UnwindSafe for AlphaMaskPaint
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.