Enum sdl2_sys::SDL_PixelType
source · #[repr(u32)]pub enum SDL_PixelType {
SDL_PIXELTYPE_UNKNOWN = 0,
SDL_PIXELTYPE_INDEX1 = 1,
SDL_PIXELTYPE_INDEX4 = 2,
SDL_PIXELTYPE_INDEX8 = 3,
SDL_PIXELTYPE_PACKED8 = 4,
SDL_PIXELTYPE_PACKED16 = 5,
SDL_PIXELTYPE_PACKED32 = 6,
SDL_PIXELTYPE_ARRAYU8 = 7,
SDL_PIXELTYPE_ARRAYU16 = 8,
SDL_PIXELTYPE_ARRAYU32 = 9,
SDL_PIXELTYPE_ARRAYF16 = 10,
SDL_PIXELTYPE_ARRAYF32 = 11,
}
Expand description
Pixel type.
Variants§
SDL_PIXELTYPE_UNKNOWN = 0
SDL_PIXELTYPE_INDEX1 = 1
SDL_PIXELTYPE_INDEX4 = 2
SDL_PIXELTYPE_INDEX8 = 3
SDL_PIXELTYPE_PACKED8 = 4
SDL_PIXELTYPE_PACKED16 = 5
SDL_PIXELTYPE_PACKED32 = 6
SDL_PIXELTYPE_ARRAYU8 = 7
SDL_PIXELTYPE_ARRAYU16 = 8
SDL_PIXELTYPE_ARRAYU32 = 9
SDL_PIXELTYPE_ARRAYF16 = 10
SDL_PIXELTYPE_ARRAYF32 = 11
Trait Implementations§
source§impl Clone for SDL_PixelType
impl Clone for SDL_PixelType
source§fn clone(&self) -> SDL_PixelType
fn clone(&self) -> SDL_PixelType
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_PixelType
impl Hash for SDL_PixelType
source§impl PartialEq for SDL_PixelType
impl PartialEq for SDL_PixelType
source§fn eq(&self, other: &SDL_PixelType) -> bool
fn eq(&self, other: &SDL_PixelType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SDL_PixelType
impl Eq for SDL_PixelType
impl StructuralPartialEq for SDL_PixelType
Auto Trait Implementations§
impl Freeze for SDL_PixelType
impl RefUnwindSafe for SDL_PixelType
impl Send for SDL_PixelType
impl Sync for SDL_PixelType
impl Unpin for SDL_PixelType
impl UnwindSafe for SDL_PixelType
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