Enum sdl2_sys::SDL_PackedOrder
source · #[repr(u32)]pub enum SDL_PackedOrder {
SDL_PACKEDORDER_NONE = 0,
SDL_PACKEDORDER_XRGB = 1,
SDL_PACKEDORDER_RGBX = 2,
SDL_PACKEDORDER_ARGB = 3,
SDL_PACKEDORDER_RGBA = 4,
SDL_PACKEDORDER_XBGR = 5,
SDL_PACKEDORDER_BGRX = 6,
SDL_PACKEDORDER_ABGR = 7,
SDL_PACKEDORDER_BGRA = 8,
}
Expand description
Packed component order, high bit -> low bit.
Variants§
SDL_PACKEDORDER_NONE = 0
SDL_PACKEDORDER_XRGB = 1
SDL_PACKEDORDER_RGBX = 2
SDL_PACKEDORDER_ARGB = 3
SDL_PACKEDORDER_RGBA = 4
SDL_PACKEDORDER_XBGR = 5
SDL_PACKEDORDER_BGRX = 6
SDL_PACKEDORDER_ABGR = 7
SDL_PACKEDORDER_BGRA = 8
Trait Implementations§
source§impl Clone for SDL_PackedOrder
impl Clone for SDL_PackedOrder
source§fn clone(&self) -> SDL_PackedOrder
fn clone(&self) -> SDL_PackedOrder
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 Hash for SDL_PackedOrder
impl Hash for SDL_PackedOrder
source§impl PartialEq for SDL_PackedOrder
impl PartialEq for SDL_PackedOrder
source§fn eq(&self, other: &SDL_PackedOrder) -> bool
fn eq(&self, other: &SDL_PackedOrder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SDL_PackedOrder
impl Eq for SDL_PackedOrder
impl StructuralPartialEq for SDL_PackedOrder
Auto Trait Implementations§
impl Freeze for SDL_PackedOrder
impl RefUnwindSafe for SDL_PackedOrder
impl Send for SDL_PackedOrder
impl Sync for SDL_PackedOrder
impl Unpin for SDL_PackedOrder
impl UnwindSafe for SDL_PackedOrder
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