#[repr(i32)]pub enum BlendEffectMode {
Show 26 variants
Multiply = 0,
Screen = 1,
Darken = 2,
Lighten = 3,
Dissolve = 4,
ColorBurn = 5,
LinearBurn = 6,
DarkerColor = 7,
LighterColor = 8,
ColorDodge = 9,
LinearDodge = 10,
Overlay = 11,
SoftLight = 12,
HardLight = 13,
VividLight = 14,
LinearLight = 15,
PinLight = 16,
HardMix = 17,
Difference = 18,
Exclusion = 19,
Hue = 20,
Saturation = 21,
Color = 22,
Luminosity = 23,
Subtract = 24,
Division = 25,
}Expand description
How a blend effect mixes its foreground into its background (Win2D
BlendEffectMode, the modes of Direct2D’s blend effect).
The modes with a counterpart among the blend modes of the drawing
contexts are drawn: Multiply, Screen, Darken, Lighten,
ColorBurn, ColorDodge, LinearDodge (an addition), Overlay,
SoftLight, HardLight, Difference, Exclusion, Hue, Saturation,
Color and Luminosity. The other modes are drawn from the pixels of the
two sources (docs/porting/winui-materials.md).
Color keeps the hue and saturation of the foreground and the
luminosity of the background; Luminosity the other way round, as Win2D
documents them.
Variants§
Multiply = 0
The default of Win2D.
Screen = 1
Darken = 2
Lighten = 3
Dissolve = 4
ColorBurn = 5
LinearBurn = 6
DarkerColor = 7
LighterColor = 8
ColorDodge = 9
LinearDodge = 10
Overlay = 11
SoftLight = 12
HardLight = 13
VividLight = 14
LinearLight = 15
PinLight = 16
HardMix = 17
Difference = 18
Exclusion = 19
Hue = 20
Saturation = 21
Color = 22
Luminosity = 23
Subtract = 24
Division = 25
Trait Implementations§
Source§impl Clone for BlendEffectMode
impl Clone for BlendEffectMode
impl Copy for BlendEffectMode
Source§impl Debug for BlendEffectMode
impl Debug for BlendEffectMode
Source§impl Default for BlendEffectMode
impl Default for BlendEffectMode
impl Eq for BlendEffectMode
Source§impl Hash for BlendEffectMode
impl Hash for BlendEffectMode
Source§impl PartialEq for BlendEffectMode
impl PartialEq for BlendEffectMode
impl StructuralPartialEq for BlendEffectMode
Auto Trait Implementations§
impl Freeze for BlendEffectMode
impl RefUnwindSafe for BlendEffectMode
impl Send for BlendEffectMode
impl Sync for BlendEffectMode
impl Unpin for BlendEffectMode
impl UnsafeUnpin for BlendEffectMode
impl UnwindSafe for BlendEffectMode
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