#[repr(u32)]pub enum gfx_con_pixel_fmt_t {
GFX_8BIT_INDEXED = 8,
GFX_RGB_565 = 16,
GFX_RGB_888 = 24,
GFX_xRGB_8888 = 32,
}
Expand description
Specifying GFX_8BIT_INDEXED means that the buffer uses VGA style
8-bit per pixel indexed colors, and that the console palette, specified by
the
Specifying GFX_RGB_565 means that the buffer uses 16 bits per pixel, with format 0bRRRRRGGGGGGBBBBB (in little endian).
Specifying GFX_RGB_888 means that the buffer uses 24 bits per pixel, with format 0xRRGGBB (in little endian).
Specifying GFX_xRGB_8888 means that the buffer uses 32 bits per pixel, with format 0xXXRRGGBB (in little endian), where X is unused.
Variants§
GFX_8BIT_INDEXED = 8
0xII
GFX_RGB_565 = 16
0bRRRRRGGGGGGBBBBB
GFX_RGB_888 = 24
0xRRGGBB
GFX_xRGB_8888 = 32
0xXXRRGGBB (X=unused)
Trait Implementations§
source§impl Clone for gfx_con_pixel_fmt_t
impl Clone for gfx_con_pixel_fmt_t
source§fn clone(&self) -> gfx_con_pixel_fmt_t
fn clone(&self) -> gfx_con_pixel_fmt_t
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for gfx_con_pixel_fmt_t
impl Debug for gfx_con_pixel_fmt_t
source§impl Hash for gfx_con_pixel_fmt_t
impl Hash for gfx_con_pixel_fmt_t
source§impl Ord for gfx_con_pixel_fmt_t
impl Ord for gfx_con_pixel_fmt_t
source§fn cmp(&self, other: &gfx_con_pixel_fmt_t) -> Ordering
fn cmp(&self, other: &gfx_con_pixel_fmt_t) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for gfx_con_pixel_fmt_t
impl PartialEq for gfx_con_pixel_fmt_t
source§impl PartialOrd for gfx_con_pixel_fmt_t
impl PartialOrd for gfx_con_pixel_fmt_t
impl Copy for gfx_con_pixel_fmt_t
impl Eq for gfx_con_pixel_fmt_t
impl StructuralPartialEq for gfx_con_pixel_fmt_t
Auto Trait Implementations§
impl Freeze for gfx_con_pixel_fmt_t
impl RefUnwindSafe for gfx_con_pixel_fmt_t
impl Send for gfx_con_pixel_fmt_t
impl Sync for gfx_con_pixel_fmt_t
impl Unpin for gfx_con_pixel_fmt_t
impl UnwindSafe for gfx_con_pixel_fmt_t
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)