pub struct HasMaskTrait {
pub is_mask: Option<bool>,
pub mask_type: Option<MaskType>,
pub is_mask_outline: Option<bool>,
}
Fields§
§is_mask: Option<bool>
Does this node mask sibling nodes in front of it?
mask_type: Option<MaskType>
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.
is_mask_outline: Option<bool>
True if maskType is VECTOR. This field is deprecated; use maskType instead.
Implementations§
Source§impl HasMaskTrait
impl HasMaskTrait
pub fn new() -> HasMaskTrait
Trait Implementations§
Source§impl Clone for HasMaskTrait
impl Clone for HasMaskTrait
Source§fn clone(&self) -> HasMaskTrait
fn clone(&self) -> HasMaskTrait
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more