module lib.sdl2.rect

Code Map

module lib.sdl2.rect;


struct SDL_Point
{
public:
	x: i32;
	y: i32;
}

struct SDL_Rect
{
public:
	x: i32;
	y: i32;
	w: i32;
	h: i32;
}

fn SDL_RectEmpty(r: SDL_Rect*) bool { }
fn SDL_RectEquals(a: SDL_Rect*, b: SDL_Rect*) bool { }
fn SDL_HasIntersection(const(const(SDL_Rect)*), const(const(SDL_Rect)*)) bool;
fn SDL_IntersectRect(const(const(SDL_Rect)*), const(const(SDL_Rect)*), SDL_Rect*) bool;
fn SDL_UnionRect(const(const(SDL_Rect)*), const(const(SDL_Rect)*), SDL_Rect*) bool;
fn SDL_EnclosePoints(const(const(SDL_Point)*), i32, const(const(SDL_Rect)*), SDL_Rect*) bool;
fn SDL_IntersectRectAndLine(const(const(SDL_Rect)*), i32*, i32*, i32*, i32*) bool;