Enum allegro::color::PixelFormat[][src]

#[repr(u32)]pub enum PixelFormat {
    PixelFormatAny,
    PixelFormatAnyNoAlpha,
    PixelFormatAnyWithAlpha,
    PixelFormatAny15NoAlpha,
    PixelFormatAny16NoAlpha,
    PixelFormatAny16WithAlpha,
    PixelFormatAny24NoAlpha,
    PixelFormatAny32NoAlpha,
    PixelFormatAny32WithAlpha,
    PixelFormatArgb8888,
    PixelFormatRgba8888,
    PixelFormatArgb4444,
    PixelFormatRgb888,
    PixelFormatRgb565,
    PixelFormatRgb555,
    PixelFormatRgba5551,
    PixelFormatArgb1555,
    PixelFormatAbgr8888,
    PixelFormatXbgr8888,
    PixelFormatBgr888,
    PixelFormatBgr565,
    PixelFormatBgr555,
    PixelFormatRgbx8888,
    PixelFormatXrgb888,
    PixelFormatAbgrF32,
    PixelFormatAbgr8888Le,
    PixelFormatRgba4444,
}

Variants

PixelFormatAny
PixelFormatAnyNoAlpha
PixelFormatAnyWithAlpha
PixelFormatAny15NoAlpha
PixelFormatAny16NoAlpha
PixelFormatAny16WithAlpha
PixelFormatAny24NoAlpha
PixelFormatAny32NoAlpha
PixelFormatAny32WithAlpha
PixelFormatArgb8888
PixelFormatRgba8888
PixelFormatArgb4444
PixelFormatRgb888
PixelFormatRgb565
PixelFormatRgb555
PixelFormatRgba5551
PixelFormatArgb1555
PixelFormatAbgr8888
PixelFormatXbgr8888
PixelFormatBgr888
PixelFormatBgr565
PixelFormatBgr555
PixelFormatRgbx8888
PixelFormatXrgb888
PixelFormatAbgrF32
PixelFormatAbgr8888Le
PixelFormatRgba4444

Implementations

impl PixelFormat[src]

pub fn get_size(&self) -> i32[src]

pub fn get_bits(&self) -> i32[src]

Trait Implementations

impl Clone for PixelFormat[src]

impl Copy for PixelFormat[src]

impl Debug for PixelFormat[src]

Auto Trait Implementations

impl RefUnwindSafe for PixelFormat

impl Send for PixelFormat

impl Sync for PixelFormat

impl Unpin for PixelFormat

impl UnwindSafe for PixelFormat

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.