#[repr(i32)]pub enum BlendMode {
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
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
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 duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Hash for SkBlendMode
impl Hash for SkBlendMode
Source§impl PartialEq for SkBlendMode
impl PartialEq for SkBlendMode
Source§fn eq(&self, other: &SkBlendMode) -> bool
fn eq(&self, other: &SkBlendMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SkBlendMode
impl Eq for SkBlendMode
impl StructuralPartialEq for SkBlendMode
Auto Trait Implementations§
impl Freeze for SkBlendMode
impl RefUnwindSafe for SkBlendMode
impl Send for SkBlendMode
impl Sync for SkBlendMode
impl Unpin for SkBlendMode
impl UnsafeUnpin 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