Enum femtovg::BlendFactor
source · pub enum BlendFactor {
Zero,
One,
SrcColor,
OneMinusSrcColor,
DstColor,
OneMinusDstColor,
SrcAlpha,
OneMinusSrcAlpha,
DstAlpha,
OneMinusDstAlpha,
SrcAlphaSaturate,
}
Expand description
Blend factors.
Variants§
Zero
Not all
One
All use
SrcColor
Using the source color
OneMinusSrcColor
Minus the source color
DstColor
Using the target color
OneMinusDstColor
Minus the target color
SrcAlpha
Using the source alpha
OneMinusSrcAlpha
Minus the source alpha
DstAlpha
Using the target alpha
OneMinusDstAlpha
Minus the target alpha
SrcAlphaSaturate
Scale color by minimum of source alpha and destination alpha
Trait Implementations§
source§impl Clone for BlendFactor
impl Clone for BlendFactor
source§fn clone(&self) -> BlendFactor
fn clone(&self) -> BlendFactor
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 BlendFactor
impl Debug for BlendFactor
source§impl Hash for BlendFactor
impl Hash for BlendFactor
source§impl PartialEq for BlendFactor
impl PartialEq for BlendFactor
source§fn eq(&self, other: &BlendFactor) -> bool
fn eq(&self, other: &BlendFactor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BlendFactor
impl PartialOrd for BlendFactor
source§fn partial_cmp(&self, other: &BlendFactor) -> Option<Ordering>
fn partial_cmp(&self, other: &BlendFactor) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for BlendFactor
impl Eq for BlendFactor
impl StructuralPartialEq for BlendFactor
Auto Trait Implementations§
impl Freeze for BlendFactor
impl RefUnwindSafe for BlendFactor
impl Send for BlendFactor
impl Sync for BlendFactor
impl Unpin for BlendFactor
impl UnwindSafe for BlendFactor
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