#[repr(C)]pub struct SDL_PixelFormat {Show 17 fields
pub palette: *mut SDL_Palette,
pub BitsPerPixel: uint8_t,
pub BytesPerPixel: uint8_t,
pub Rloss: uint8_t,
pub Gloss: uint8_t,
pub Bloss: uint8_t,
pub Aloss: uint8_t,
pub Rshift: uint8_t,
pub Gshift: uint8_t,
pub Bshift: uint8_t,
pub Ashift: uint8_t,
pub Rmask: uint32_t,
pub Gmask: uint32_t,
pub Bmask: uint32_t,
pub Amask: uint32_t,
pub colorkey: uint32_t,
pub alpha: uint8_t,
}
Fields§
§palette: *mut SDL_Palette
§BitsPerPixel: uint8_t
§BytesPerPixel: uint8_t
§Rloss: uint8_t
§Gloss: uint8_t
§Bloss: uint8_t
§Aloss: uint8_t
§Rshift: uint8_t
§Gshift: uint8_t
§Bshift: uint8_t
§Ashift: uint8_t
§Rmask: uint32_t
§Gmask: uint32_t
§Bmask: uint32_t
§Amask: uint32_t
§colorkey: uint32_t
§alpha: uint8_t
Trait Implementations§
Source§impl Clone for SDL_PixelFormat
impl Clone for SDL_PixelFormat
Source§fn clone(&self) -> SDL_PixelFormat
fn clone(&self) -> SDL_PixelFormat
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 moreimpl Copy for SDL_PixelFormat
Auto Trait Implementations§
impl Freeze for SDL_PixelFormat
impl RefUnwindSafe for SDL_PixelFormat
impl !Send for SDL_PixelFormat
impl !Sync for SDL_PixelFormat
impl Unpin for SDL_PixelFormat
impl UnwindSafe for SDL_PixelFormat
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