Struct sdl2_sys::rect::SDL_Rect
[−]
[src]
#[repr(C)]pub struct SDL_Rect { pub x: c_int, pub y: c_int, pub w: c_int, pub h: c_int, }
A structure that defines a rectangle, with the origin at the upper left.
Fields
x: c_int
y: c_int
w: c_int
h: c_int
Trait Implementations
impl Copy for SDL_Rect
[src]
impl Clone for SDL_Rect
[src]
fn clone(&self) -> SDL_Rect
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for SDL_Rect
[src]
impl PartialEq for SDL_Rect
[src]
fn eq(&self, __arg_0: &SDL_Rect) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SDL_Rect) -> bool
[src]
This method tests for !=
.