pub struct OpacityEffect {
pub name: String,
pub opacity: f32,
pub source: Option<GraphicsEffectSource>,
}Expand description
Multiplies the alpha of its source (Win2D OpacityEffect). Animatable:
Opacity.
Fields§
§name: StringThe name of the effect.
opacity: f32The opacity, 0 to 1 (default 1).
source: Option<GraphicsEffectSource>The input.
Trait Implementations§
Source§impl Clone for OpacityEffect
impl Clone for OpacityEffect
Source§impl Debug for OpacityEffect
impl Debug for OpacityEffect
Source§impl Default for OpacityEffect
impl Default for OpacityEffect
Source§impl From<OpacityEffect> for GraphicsEffect
impl From<OpacityEffect> for GraphicsEffect
Source§fn from(effect: OpacityEffect) -> Self
fn from(effect: OpacityEffect) -> Self
Converts to this type from the input type.
Source§impl From<OpacityEffect> for GraphicsEffectSource
impl From<OpacityEffect> for GraphicsEffectSource
Source§fn from(effect: OpacityEffect) -> Self
fn from(effect: OpacityEffect) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OpacityEffect
impl PartialEq for OpacityEffect
impl StructuralPartialEq for OpacityEffect
Auto Trait Implementations§
impl Freeze for OpacityEffect
impl RefUnwindSafe for OpacityEffect
impl Send for OpacityEffect
impl Sync for OpacityEffect
impl Unpin for OpacityEffect
impl UnsafeUnpin for OpacityEffect
impl UnwindSafe for OpacityEffect
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