[][src]Trait sdl2::gfx::primitives::ToColor

pub trait ToColor {
    fn as_rgba(&self) -> (u8, u8, u8, u8);

    fn as_u32(&self) -> u32 { ... }
}

generic Color type

Required methods

fn as_rgba(&self) -> (u8, u8, u8, u8)

Loading content...

Provided methods

fn as_u32(&self) -> u32

Loading content...

Implementations on Foreign Types

impl ToColor for (u8, u8, u8, u8)[src]

impl ToColor for u32[src]

impl ToColor for isize[src]

Loading content...

Implementors

impl ToColor for Color[src]

Loading content...