pub struct AlphaMaskEffect {
pub name: String,
pub source: Option<GraphicsEffectSource>,
pub alpha_mask: Option<GraphicsEffectSource>,
}Expand description
Keeps its source where its mask is opaque (Win2D AlphaMaskEffect):
the source multiplied by the alpha of the mask.
Fields§
§name: StringThe name of the effect.
source: Option<GraphicsEffectSource>The input.
alpha_mask: Option<GraphicsEffectSource>The mask.
Trait Implementations§
Source§impl Clone for AlphaMaskEffect
impl Clone for AlphaMaskEffect
Source§impl Debug for AlphaMaskEffect
impl Debug for AlphaMaskEffect
Source§impl Default for AlphaMaskEffect
impl Default for AlphaMaskEffect
Source§impl From<AlphaMaskEffect> for GraphicsEffect
impl From<AlphaMaskEffect> for GraphicsEffect
Source§fn from(effect: AlphaMaskEffect) -> Self
fn from(effect: AlphaMaskEffect) -> Self
Converts to this type from the input type.
Source§impl From<AlphaMaskEffect> for GraphicsEffectSource
impl From<AlphaMaskEffect> for GraphicsEffectSource
Source§fn from(effect: AlphaMaskEffect) -> Self
fn from(effect: AlphaMaskEffect) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AlphaMaskEffect
impl PartialEq for AlphaMaskEffect
impl StructuralPartialEq for AlphaMaskEffect
Auto Trait Implementations§
impl Freeze for AlphaMaskEffect
impl RefUnwindSafe for AlphaMaskEffect
impl Send for AlphaMaskEffect
impl Sync for AlphaMaskEffect
impl Unpin for AlphaMaskEffect
impl UnsafeUnpin for AlphaMaskEffect
impl UnwindSafe for AlphaMaskEffect
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more