#[repr(i32)]pub enum BlendMode {
Show 29 variants
Clear,
Src,
Dst,
SrcOver,
DstOver,
SrcIn,
DstIn,
SrcOut,
DstOut,
SrcATop,
DstATop,
Xor,
Plus,
Modulate,
Screen,
Overlay,
Darken,
Lighten,
ColorDodge,
ColorBurn,
HardLight,
SoftLight,
Difference,
Exclusion,
Multiply,
Hue,
Saturation,
Color,
Luminosity,
}
Variants§
Clear
Src
Dst
SrcOver
DstOver
SrcIn
DstIn
SrcOut
DstOut
SrcATop
DstATop
Xor
Plus
Modulate
Screen
Overlay
Darken
Lighten
ColorDodge
ColorBurn
HardLight
SoftLight
Difference
Exclusion
Multiply
Hue
Saturation
Color
Luminosity
Implementations§
source§impl SkBlendMode
impl SkBlendMode
pub const LastCoeffMode: SkBlendMode = SkBlendMode::Screen
source§impl SkBlendMode
impl SkBlendMode
pub const LastSeparableMode: SkBlendMode = SkBlendMode::Multiply
source§impl SkBlendMode
impl SkBlendMode
pub const LastMode: SkBlendMode = SkBlendMode::Luminosity
source§impl SkBlendMode
impl SkBlendMode
pub fn as_coeff(self) -> Option<(SkBlendModeCoeff, SkBlendModeCoeff)>
pub fn name(self) -> &'static str
Trait Implementations§
source§impl Clone for SkBlendMode
impl Clone for SkBlendMode
source§fn clone(&self) -> SkBlendMode
fn clone(&self) -> SkBlendMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SkBlendMode
impl Debug for SkBlendMode
source§impl Default for SkBlendMode
impl Default for SkBlendMode
source§fn default() -> SkBlendMode
fn default() -> SkBlendMode
Returns the “default value” for a type. Read more
source§impl From<SkBlendMode> for Blender
impl From<SkBlendMode> for Blender
source§impl Hash for SkBlendMode
impl Hash for SkBlendMode
source§impl PartialEq<SkBlendMode> for SkBlendMode
impl PartialEq<SkBlendMode> for SkBlendMode
source§fn eq(&self, other: &SkBlendMode) -> bool
fn eq(&self, other: &SkBlendMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SkBlendMode
impl Eq for SkBlendMode
impl StructuralEq for SkBlendMode
impl StructuralPartialEq for SkBlendMode
Auto Trait Implementations§
impl RefUnwindSafe for SkBlendMode
impl Send for SkBlendMode
impl Sync for SkBlendMode
impl Unpin for SkBlendMode
impl UnwindSafe for SkBlendMode
Blanket Implementations§
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