Enum rich_sdl2_rust::color::pixel::order::PackedPixelOrder
source · pub enum PackedPixelOrder {
Xrgb,
Rgbx,
Argb,
Rgba,
Xbgr,
Bgrx,
Abgr,
Bgra,
}
Expand description
A pixel order in a packed pixel format.
Variants§
Xrgb
An order of 3 components is right aligned RGB.
Rgbx
An order of 3 components is left aligned RGB.
Argb
An order of 4 components is ARGB.
Rgba
An order of 4 components is RGBA.
Xbgr
An order of 3 components is right aligned BGR.
Bgrx
An order of 3 components is left aligned BGR.
Abgr
An order of 4 components is ABGR.
Bgra
An order of 4 components is BGRA.
Trait Implementations§
source§impl Clone for PackedPixelOrder
impl Clone for PackedPixelOrder
source§fn clone(&self) -> PackedPixelOrder
fn clone(&self) -> PackedPixelOrder
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 PackedPixelOrder
impl Debug for PackedPixelOrder
source§impl From<u32> for PackedPixelOrder
impl From<u32> for PackedPixelOrder
source§impl Hash for PackedPixelOrder
impl Hash for PackedPixelOrder
source§impl PartialEq for PackedPixelOrder
impl PartialEq for PackedPixelOrder
source§fn eq(&self, other: &PackedPixelOrder) -> bool
fn eq(&self, other: &PackedPixelOrder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PackedPixelOrder
impl Eq for PackedPixelOrder
impl StructuralPartialEq for PackedPixelOrder
Auto Trait Implementations§
impl RefUnwindSafe for PackedPixelOrder
impl Send for PackedPixelOrder
impl Sync for PackedPixelOrder
impl Unpin for PackedPixelOrder
impl UnwindSafe for PackedPixelOrder
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