Struct gfx::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<(), Error>

Derived Implementations

impl Eq for Blend

impl PartialEq<Blend> for Blend

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

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

impl PartialOrd<Blend> 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>(&self, __arg_0: &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