#[repr(i32)]pub enum CompositionBlendMode {
Show 29 variants
Clear = 0,
Src = 1,
Dst = 2,
SrcOver = 3,
DstOver = 4,
SrcIn = 5,
DstIn = 6,
SrcOut = 7,
DstOut = 8,
SrcATop = 9,
DstATop = 10,
Xor = 11,
Plus = 12,
Modulate = 13,
Screen = 14,
Overlay = 15,
Darken = 16,
Lighten = 17,
ColorDodge = 18,
ColorBurn = 19,
HardLight = 20,
SoftLight = 21,
Difference = 22,
Exclusion = 23,
Multiply = 24,
Hue = 25,
Saturation = 26,
Color = 27,
Luminosity = 28,
}Variants§
Clear = 0
No regions are enabled.
Src = 1
Only the source will be present.
Dst = 2
Only the destination will be present.
SrcOver = 3
Source is placed over the destination.
DstOver = 4
Destination is placed over the source.
SrcIn = 5
The source that overlaps the destination, replaces the destination.
DstIn = 6
Destination which overlaps the source, replaces the source.
SrcOut = 7
Source is placed, where it falls outside of the destination.
DstOut = 8
Destination is placed, where it falls outside of the source.
SrcATop = 9
Source which overlaps the destination, replaces the destination.
DstATop = 10
Destination which overlaps the source replaces the source.
Xor = 11
The non-overlapping regions of source and destination are combined.
Plus = 12
Display the sum of the source image and destination image.
Modulate = 13
Multiplies all components (= alpha and color).
Screen = 14
Multiplies the complements of the backdrop and source color values, then complements the result.
Overlay = 15
Multiplies or screens the colors, depending on the backdrop color value.
Darken = 16
Selects the darker of the backdrop and source colors.
Lighten = 17
Selects the lighter of the backdrop and source colors.
ColorDodge = 18
Brightens the backdrop color to reflect the source color.
ColorBurn = 19
Darkens the backdrop color to reflect the source color.
HardLight = 20
Multiplies or screens the colors, depending on the source color value.
SoftLight = 21
Darkens or lightens the colors, depending on the source color value.
Difference = 22
Subtracts the darker of the two constituent colors from the lighter color.
Exclusion = 23
Produces an effect similar to that of the Difference mode but lower in contrast.
Multiply = 24
The source color is multiplied by the destination color and replaces the destination.
Hue = 25
Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color.
Saturation = 26
Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color.
Color = 27
Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color.
Luminosity = 28
Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color.
Trait Implementations§
Source§impl BatchValue for CompositionBlendMode
impl BatchValue for CompositionBlendMode
Source§impl Clone for CompositionBlendMode
impl Clone for CompositionBlendMode
impl Copy for CompositionBlendMode
Source§impl Debug for CompositionBlendMode
impl Debug for CompositionBlendMode
Source§impl Default for CompositionBlendMode
impl Default for CompositionBlendMode
impl Eq for CompositionBlendMode
Source§impl Hash for CompositionBlendMode
impl Hash for CompositionBlendMode
Source§impl PartialEq for CompositionBlendMode
impl PartialEq for CompositionBlendMode
impl StructuralPartialEq for CompositionBlendMode
Auto Trait Implementations§
impl Freeze for CompositionBlendMode
impl RefUnwindSafe for CompositionBlendMode
impl Send for CompositionBlendMode
impl Sync for CompositionBlendMode
impl Unpin for CompositionBlendMode
impl UnsafeUnpin for CompositionBlendMode
impl UnwindSafe for CompositionBlendMode
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more