#[repr(C)]pub struct SDL_PixelFormatDetails {Show 16 fields
pub format: SDL_PixelFormat,
pub bits_per_pixel: Uint8,
pub bytes_per_pixel: Uint8,
pub padding: [Uint8; 2],
pub Rmask: Uint32,
pub Gmask: Uint32,
pub Bmask: Uint32,
pub Amask: Uint32,
pub Rbits: Uint8,
pub Gbits: Uint8,
pub Bbits: Uint8,
pub Abits: Uint8,
pub Rshift: Uint8,
pub Gshift: Uint8,
pub Bshift: Uint8,
pub Ashift: Uint8,
}Expand description
Fields§
§format: SDL_PixelFormat§bits_per_pixel: Uint8§bytes_per_pixel: Uint8§padding: [Uint8; 2]👎Deprecated: padding fields are exempt from semver; init with
§..Default::default()Rmask: Uint32§Gmask: Uint32§Bmask: Uint32§Amask: Uint32§Rbits: Uint8§Gbits: Uint8§Bbits: Uint8§Abits: Uint8§Rshift: Uint8§Gshift: Uint8§Bshift: Uint8§Ashift: Uint8Trait Implementations§
Source§impl Clone for SDL_PixelFormatDetails
impl Clone for SDL_PixelFormatDetails
Source§fn clone(&self) -> SDL_PixelFormatDetails
fn clone(&self) -> SDL_PixelFormatDetails
Returns a duplicate 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 SDL_PixelFormatDetails
impl Debug for SDL_PixelFormatDetails
Source§impl Default for SDL_PixelFormatDetails
impl Default for SDL_PixelFormatDetails
Source§fn default() -> SDL_PixelFormatDetails
fn default() -> SDL_PixelFormatDetails
Returns the “default value” for a type. Read more
Source§impl Hash for SDL_PixelFormatDetails
impl Hash for SDL_PixelFormatDetails
Source§impl PartialEq for SDL_PixelFormatDetails
impl PartialEq for SDL_PixelFormatDetails
impl Copy for SDL_PixelFormatDetails
impl Eq for SDL_PixelFormatDetails
impl StructuralPartialEq for SDL_PixelFormatDetails
Auto Trait Implementations§
impl Freeze for SDL_PixelFormatDetails
impl RefUnwindSafe for SDL_PixelFormatDetails
impl Send for SDL_PixelFormatDetails
impl Sync for SDL_PixelFormatDetails
impl Unpin for SDL_PixelFormatDetails
impl UnwindSafe for SDL_PixelFormatDetails
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