pub struct BlendEffect {
pub name: String,
pub mode: BlendEffectMode,
pub background: Option<GraphicsEffectSource>,
pub foreground: Option<GraphicsEffectSource>,
}Expand description
Mixes a foreground into a background (Win2D BlendEffect).
Fields§
§name: StringThe name of the effect.
mode: BlendEffectModeHow the two are mixed (default Multiply).
background: Option<GraphicsEffectSource>The input under the foreground (Direct2D’s destination).
foreground: Option<GraphicsEffectSource>The input mixed into the background (Direct2D’s source).
Trait Implementations§
Source§impl Clone for BlendEffect
impl Clone for BlendEffect
Source§impl Debug for BlendEffect
impl Debug for BlendEffect
Source§impl Default for BlendEffect
impl Default for BlendEffect
Source§impl From<BlendEffect> for GraphicsEffect
impl From<BlendEffect> for GraphicsEffect
Source§fn from(effect: BlendEffect) -> Self
fn from(effect: BlendEffect) -> Self
Converts to this type from the input type.
Source§impl From<BlendEffect> for GraphicsEffectSource
impl From<BlendEffect> for GraphicsEffectSource
Source§fn from(effect: BlendEffect) -> Self
fn from(effect: BlendEffect) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BlendEffect
impl PartialEq for BlendEffect
impl StructuralPartialEq for BlendEffect
Auto Trait Implementations§
impl Freeze for BlendEffect
impl RefUnwindSafe for BlendEffect
impl Send for BlendEffect
impl Sync for BlendEffect
impl Unpin for BlendEffect
impl UnsafeUnpin for BlendEffect
impl UnwindSafe for BlendEffect
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