aboutsummaryrefslogtreecommitdiff
path: root/Src/Wasabi/bfc/wasabi_std_rect.h
blob: d99d319a86c528421fa254bbc47fe94111ad0a59 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef NULLSOFT_BFC_STD_RECT_H
#define NULLSOFT_BFC_STD_RECT_H

#include <bfc/platform/platform.h>
namespace Wasabi
{
	namespace Std
	{
		bool rectIntersect(const RECT& a, const RECT& b, RECT* intersection = NULL);
		bool pointInRect(const RECT& r, const POINT& p);
		void setRect(RECT* r, int left, int top, int right, int bottom);
		RECT makeRect(int left, int top, int right, int bottom);
		POINT makePoint(int x, int y);
		void setPoint(POINT* p, int x, int y);
		void offsetRect(RECT* r, int x, int y);
		bool rectEqual(const RECT& a, const RECT& b);
		bool rectEqual(const RECT* a, const RECT* b);
		void scaleRect(RECT* r, double scale);

	}
}
#endif