pub struct MaskShape {
pub geometry: Geometry,
pub mode: Option<MaskMode>,
pub feather: Option<Anim<f32>>,
pub invert: bool,
}Expand description
One mask outline and how it combines with those before it.
Fields§
§geometry: GeometryThe outline.
mode: Option<MaskMode>add (default; the first adds to nothing), subtract or intersect.
feather: Option<Anim<f32>>Edge softness, as a fraction of the area’s shorter side. Default 0.
invert: boolKeeps the outside of the outline instead.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MaskShape
impl<'de> Deserialize<'de> for MaskShape
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
impl StructuralPartialEq for MaskShape
Auto Trait Implementations§
impl Forget for MaskShape
impl Freeze for MaskShape
impl Move for MaskShape
impl RefUnwindSafe for MaskShape
impl Send for MaskShape
impl Sync for MaskShape
impl Unpin for MaskShape
impl UnsafeUnpin for MaskShape
impl UnwindSafe for MaskShape
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