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 Clone for BlendMode
[src]
fn clone(&self) -> BlendMode
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for BlendMode
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for BlendMode
[src]
fn eq(&self, __arg_0: &BlendMode) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &BlendMode) -> bool
[src]
This method tests for !=
.