#[repr(C)]pub struct SDL_Surface {Show 14 fields
pub flags: uint32_t,
pub format: *mut SDL_PixelFormat,
pub w: c_int,
pub h: c_int,
pub pitch: uint16_t,
pub pixels: *mut c_void,
pub offset: c_int,
pub hwdata: *mut c_void,
pub clip_rect: SDL_Rect,
pub unused1: uint32_t,
pub locked: uint32_t,
pub map: *mut c_void,
pub format_version: c_uint,
pub refcount: c_int,
}Fields§
§flags: uint32_t§format: *mut SDL_PixelFormat§w: c_int§h: c_int§pitch: uint16_t§pixels: *mut c_void§offset: c_int§hwdata: *mut c_void§clip_rect: SDL_Rect§unused1: uint32_t§locked: uint32_t§map: *mut c_void§format_version: c_uint§refcount: c_intTrait Implementations§
Source§impl Clone for SDL_Surface
impl Clone for SDL_Surface
Source§fn clone(&self) -> SDL_Surface
fn clone(&self) -> SDL_Surface
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_Surface
Auto Trait Implementations§
impl Freeze for SDL_Surface
impl RefUnwindSafe for SDL_Surface
impl !Send for SDL_Surface
impl !Sync for SDL_Surface
impl Unpin for SDL_Surface
impl UnwindSafe for SDL_Surface
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