pub enum MaskType {
Alpha,
Vector,
Luminance,
}
Expand description
If this layer is a mask, this property describes the operation used to mask the layer’s siblings. The value may be one of the following: - ALPHA: the mask node’s alpha channel will be used to determine the opacity of each pixel in the masked result. - VECTOR: if the mask node has visible fill paints, every pixel inside the node’s fill regions will be fully visible in the masked result. If the mask has visible stroke paints, every pixel inside the node’s stroke regions will be fully visible in the masked result. - LUMINANCE: the luminance value of each pixel of the mask node will be used to determine the opacity of that pixel in the masked result.
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MaskType
impl<'de> Deserialize<'de> for MaskType
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
Source§impl Ord for MaskType
impl Ord for MaskType
Source§impl PartialOrd for MaskType
impl PartialOrd for MaskType
impl Copy for MaskType
impl Eq for MaskType
impl StructuralPartialEq for MaskType
Auto Trait Implementations§
impl Freeze for MaskType
impl RefUnwindSafe for MaskType
impl Send for MaskType
impl Sync for MaskType
impl Unpin for MaskType
impl UnwindSafe for MaskType
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.