#[repr(C)]pub struct SDL_Rect {
pub x: c_int,
pub y: c_int,
pub w: c_int,
pub h: c_int,
}Expand description
A rectangle, with the origin at the upper left (using integers).
Available Since: This struct is available since SDL 3.2.0.
See Also: SDL_RectEmpty See Also: SDL_RectsEqual See Also: SDL_HasRectIntersection See Also: SDL_GetRectIntersection See Also: SDL_GetRectAndLineIntersection See Also: SDL_GetRectUnion See Also: SDL_GetRectEnclosingPoints
Fields§
§x: c_int§y: c_int§w: c_int§h: c_intTrait Implementations§
impl Copy for SDL_Rect
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 UnsafeUnpin 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