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 MaskShapewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<EasingPoint>: Freeze,
PhantomData<Key<[f32; 2]>>: Freeze,
PhantomData<Key<f32>>: Freeze,
impl Move for MaskShape
impl RefUnwindSafe for MaskShape
impl Send for MaskShapewhere
RawVecInner: Send,
impl Sync for MaskShapewhere
RawVecInner: Sync,
impl Unpin for MaskShape
impl UnsafeUnpin for MaskShapewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<EasingPoint>: UnsafeUnpin,
PhantomData<Key<[f32; 2]>>: UnsafeUnpin,
PhantomData<Key<f32>>: UnsafeUnpin,
impl UnwindSafe for MaskShapewhere
RawVecInner: UnwindSafe,
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