pub struct PartMaskFlags {
pub is_mask_part: bool,
pub mask_write: bool,
pub mask_influence: bool,
pub visible_inside_mask: bool,
pub draw_as_mask: bool,
pub geom: GeomKind,
}Expand description
Static, per-part mask flags read once from ssab PartData.
mask_influence is deliberately dual-purpose: for a writer
it is the stencil OP (0 = increment, 1 = invert); for a drawn target it is
the mask opt-in. Clipping parts (writer and target) use the same value for
both roles.
Fields§
§is_mask_part: boolPart type is PartTypeMask — always a pure (colourless) mask.
mask_write: boolA drawn part that also writes coverage (a clipping writer).
mask_influence: boolDual meaning: OP for writers, mask opt-in for targets.
visible_inside_mask: boolPolarity: draw inside (true) or outside (false) the coverage.
draw_as_mask: boolShape/Text/Nines promoted to a pure mask.
geom: GeomKindGeometry this part builds when it writes coverage.
Implementations§
Source§impl PartMaskFlags
impl PartMaskFlags
Sourcepub fn is_clipping(&self) -> bool
pub fn is_clipping(&self) -> bool
A clipping writer: draws its own colour and writes coverage.
Sourcepub fn polarity(&self) -> StencilTest
pub fn polarity(&self) -> StencilTest
Stencil test to apply to this part when it is a masked target.
Trait Implementations§
Source§impl Clone for PartMaskFlags
impl Clone for PartMaskFlags
impl Copy for PartMaskFlags
Source§impl Debug for PartMaskFlags
impl Debug for PartMaskFlags
Auto Trait Implementations§
impl Freeze for PartMaskFlags
impl RefUnwindSafe for PartMaskFlags
impl Send for PartMaskFlags
impl Sync for PartMaskFlags
impl Unpin for PartMaskFlags
impl UnsafeUnpin for PartMaskFlags
impl UnwindSafe for PartMaskFlags
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