#[repr(C)]pub struct SDL_Rect {
pub x: c_int,
pub y: c_int,
pub w: c_int,
pub h: c_int,
}
Expand description
\brief A rectangle, with the origin at the upper left.
\sa SDL_RectEmpty \sa SDL_RectEquals \sa SDL_HasIntersection \sa SDL_IntersectRect \sa SDL_UnionRect \sa SDL_EnclosePoints
Fields§
§x: c_int
§y: c_int
§w: c_int
§h: c_int
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SDL_Rect
impl RefUnwindSafe for SDL_Rect
impl Send for SDL_Rect
impl Sync for SDL_Rect
impl Unpin for SDL_Rect
impl UnwindSafe for SDL_Rect
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)