pub struct CrossFadeEffect {
pub name: String,
pub weight: f32,
pub source1: Option<GraphicsEffectSource>,
pub source2: Option<GraphicsEffectSource>,
}Expand description
Blends two sources by a weight (Win2D CrossFadeEffect): source1 at
weight 0, source2 at weight 1. Animatable: Weight (also as
CrossFade, the name of the Win2D member).
Fields§
§name: StringThe name of the effect.
weight: f32The weight of source2, 0 to 1 (default 0.5).
source1: Option<GraphicsEffectSource>The input shown at weight 0.
source2: Option<GraphicsEffectSource>The input shown at weight 1.
Trait Implementations§
Source§impl Clone for CrossFadeEffect
impl Clone for CrossFadeEffect
Source§impl Debug for CrossFadeEffect
impl Debug for CrossFadeEffect
Source§impl Default for CrossFadeEffect
impl Default for CrossFadeEffect
Source§impl From<CrossFadeEffect> for GraphicsEffect
impl From<CrossFadeEffect> for GraphicsEffect
Source§fn from(effect: CrossFadeEffect) -> Self
fn from(effect: CrossFadeEffect) -> Self
Converts to this type from the input type.
Source§impl From<CrossFadeEffect> for GraphicsEffectSource
impl From<CrossFadeEffect> for GraphicsEffectSource
Source§fn from(effect: CrossFadeEffect) -> Self
fn from(effect: CrossFadeEffect) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CrossFadeEffect
impl PartialEq for CrossFadeEffect
impl StructuralPartialEq for CrossFadeEffect
Auto Trait Implementations§
impl Freeze for CrossFadeEffect
impl RefUnwindSafe for CrossFadeEffect
impl Send for CrossFadeEffect
impl Sync for CrossFadeEffect
impl Unpin for CrossFadeEffect
impl UnsafeUnpin for CrossFadeEffect
impl UnwindSafe for CrossFadeEffect
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