Enum rich_sdl2_rust::color::BlendMode
source · #[non_exhaustive]pub enum BlendMode {
None,
AlphaBlend,
Add,
Mul,
}
Expand description
A mode for blending colors.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
Not blend, overwrites a color by the another one.
AlphaBlend
Blending colors by their alpha values.
Add
Blending colors by addition.
Mul
Blending colors by multiplication.
Trait Implementations§
source§impl PartialEq for BlendMode
impl PartialEq for BlendMode
impl Copy for BlendMode
impl Eq for BlendMode
impl StructuralPartialEq for BlendMode
Auto Trait Implementations§
impl RefUnwindSafe for BlendMode
impl Send for BlendMode
impl Sync for BlendMode
impl Unpin for BlendMode
impl UnwindSafe for BlendMode
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