pub struct VnMask {
pub luminance: bool,
pub tint_leaf: bool,
pub key: u64,
pub paint: Option<VnMaskPainter>,
}Expand description
CSS mask: the element’s painting, subtree included, is multiplied by the
alpha (or luminance) of what paint draws over its border box.
Fields§
§luminance: boolmask-mode: luminance; alpha otherwise.
tint_leaf: boolThe element paints nothing but its background, and every layer can be drawn tinted: a solid background then paints as the mask in its colour, without an isolated layer.
key: u64Identifies what paint draws, for comparing styles.
paint: Option<VnMaskPainter>Draws the layers; no painter, no mask.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VnMask
impl<'de> Deserialize<'de> for VnMask
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for VnMask
impl !Send for VnMask
impl !Sync for VnMask
impl !UnwindSafe for VnMask
impl Forget for VnMask
impl Freeze for VnMask
impl Move for VnMask
impl Unpin for VnMask
impl UnsafeUnpin for VnMask
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more