pub struct LuminanceToAlphaEffect {
pub name: String,
pub source: Option<GraphicsEffectSource>,
}Expand description
Turns the luminance of its source into alpha (Win2D
LuminanceToAlphaEffect): black with the luminance as its alpha.
Fields§
§name: StringThe name of the effect.
source: Option<GraphicsEffectSource>The input.
Trait Implementations§
Source§impl Clone for LuminanceToAlphaEffect
impl Clone for LuminanceToAlphaEffect
Source§impl Debug for LuminanceToAlphaEffect
impl Debug for LuminanceToAlphaEffect
Source§impl Default for LuminanceToAlphaEffect
impl Default for LuminanceToAlphaEffect
Source§impl From<LuminanceToAlphaEffect> for GraphicsEffect
impl From<LuminanceToAlphaEffect> for GraphicsEffect
Source§fn from(effect: LuminanceToAlphaEffect) -> Self
fn from(effect: LuminanceToAlphaEffect) -> Self
Converts to this type from the input type.
Source§impl From<LuminanceToAlphaEffect> for GraphicsEffectSource
impl From<LuminanceToAlphaEffect> for GraphicsEffectSource
Source§fn from(effect: LuminanceToAlphaEffect) -> Self
fn from(effect: LuminanceToAlphaEffect) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LuminanceToAlphaEffect
impl PartialEq for LuminanceToAlphaEffect
impl StructuralPartialEq for LuminanceToAlphaEffect
Auto Trait Implementations§
impl Freeze for LuminanceToAlphaEffect
impl RefUnwindSafe for LuminanceToAlphaEffect
impl Send for LuminanceToAlphaEffect
impl Sync for LuminanceToAlphaEffect
impl Unpin for LuminanceToAlphaEffect
impl UnsafeUnpin for LuminanceToAlphaEffect
impl UnwindSafe for LuminanceToAlphaEffect
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