Struct radiant_rs::BlendMode [−][src]
pub struct BlendMode { pub color: BlendingFunction, pub alpha: BlendingFunction, pub constant_value: Color, }
A blendmode for use with Layer::set_blendmode()
.
See blendmodes for a list of predefined modes.
Fields
color: BlendingFunction
The blending function for color channels.
alpha: BlendingFunction
The blending function for alpha channels.
constant_value: Color
A constant color that can be used in the blending functions.
Trait Implementations
impl Copy for BlendMode
[src]
impl Copy for BlendMode
impl Clone for BlendMode
[src]
impl Clone for BlendMode
fn clone(&self) -> BlendMode
[src]
fn clone(&self) -> BlendMode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for BlendMode
[src]
impl Debug for BlendMode
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for BlendMode
[src]
impl PartialEq for BlendMode
fn eq(&self, other: &BlendMode) -> bool
[src]
fn eq(&self, other: &BlendMode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &BlendMode) -> bool
[src]
fn ne(&self, other: &BlendMode) -> bool
This method tests for !=
.
impl Default for BlendMode
[src]
impl Default for BlendMode