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

The blending function for color channels.

The blending function for alpha channels.

A constant color that can be used in the blending functions.

Trait Implementations

impl Copy for BlendMode
[src]

impl Clone for BlendMode
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for BlendMode
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for BlendMode
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Default for BlendMode
[src]

[src]

Returns the "default value" for a type. Read more