[][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)

Provided methods

fn as_u32(&self) -> u32

Implementations on Foreign Types

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

impl ToColor for u32[src][]

impl ToColor for isize[src][]

Implementors

impl ToColor for Color[src][]