#[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 (integer).
Fields§
§x: c_int
§y: c_int
§w: c_int
§h: c_int
Trait Implementations§
source§impl Ord for SDL_Rect
impl Ord for SDL_Rect
source§impl PartialEq<SDL_Rect> for SDL_Rect
impl PartialEq<SDL_Rect> for SDL_Rect
source§impl PartialOrd<SDL_Rect> for SDL_Rect
impl PartialOrd<SDL_Rect> for SDL_Rect
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more