Struct direct_gui::Color [] [src]

pub struct Color(_);

A newtype representing the color in a buffer.

It is divided into alpha (not used), red, green & blue: 0xFF000000: alpha (not used) 0x00FF0000: red 0x0000FF00: green 0x000000FF: blue

Methods

impl Color
[src]

[src]

Create a color from a 32 bits unsigned int, discard the alpha (last 8 bits).

[src]

Create a color from 3 8 bits unsigned ints and pack them into a 32 bit unsigned int.

[src]

Return the wrapped u32 object.

Trait Implementations

impl Copy for Color
[src]

impl Clone for Color
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Color
[src]

impl PartialEq<Color> for Color
[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 Debug for Color
[src]

[src]

Formats the value using the given formatter.

impl Serialize for Color
[src]

[src]

impl<'de> Deserialize<'de> for Color
[src]

[src]

impl Default for Color
[src]

[src]

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