Struct draw_state::state::Blend [] [src]

pub struct Blend {
    pub color: BlendChannel,
    pub alpha: BlendChannel,
}

Fields

color
alpha

Methods

impl Blend

fn new(eq: Equation, src: Factor, dst: Factor) -> Blend

Create a new blend state with a given equation.

Trait Implementations

impl Default for Blend

fn default() -> Blend

impl Debug for Blend

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Eq for Blend

impl PartialEq for Blend

fn eq(&self, __arg_0: &Blend) -> bool

fn ne(&self, __arg_0: &Blend) -> bool

impl PartialOrd for Blend

fn partial_cmp(&self, __arg_0: &Blend) -> Option<Ordering>

fn lt(&self, __arg_0: &Blend) -> bool

fn le(&self, __arg_0: &Blend) -> bool

fn gt(&self, __arg_0: &Blend) -> bool

fn ge(&self, __arg_0: &Blend) -> bool

impl Hash for Blend

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Clone for Blend

fn clone(&self) -> Blend

1.0.0fn clone_from(&mut self, source: &Self)

impl Copy for Blend