#[repr(u8)]pub enum CompOp {
Show 25 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,
Minus = 13,
Multiply = 14,
Screen = 15,
Overlay = 16,
Darken = 17,
Lighten = 18,
ColorDodge = 19,
ColorBurn = 20,
HardLight = 21,
SoftLight = 22,
Difference = 23,
Exclusion = 24,
}Expand description
SVG compositing operation.
Port of C++ comp_op_e. Each variant corresponds to a specific
alpha-compositing formula from the SVG Compositing specification.
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
Minus = 13
Multiply = 14
Screen = 15
Overlay = 16
Darken = 17
Lighten = 18
ColorDodge = 19
ColorBurn = 20
HardLight = 21
SoftLight = 22
Difference = 23
Exclusion = 24
Trait Implementations§
impl Copy for CompOp
impl Eq for CompOp
impl StructuralPartialEq for CompOp
Auto Trait Implementations§
impl Freeze for CompOp
impl RefUnwindSafe for CompOp
impl Send for CompOp
impl Sync for CompOp
impl Unpin for CompOp
impl UnsafeUnpin for CompOp
impl UnwindSafe for CompOp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().