Rect functions
[Math]
Data Structures | |
struct | RECT32 |
Rectangle struct. More... | |
Functions | |
INLINE RECT * | rc_set (RECT *rc, int l, int t, int r, int b) |
Initialize a rectangle. | |
INLINE RECT * | rc_set2 (RECT *rc, int x, int y, int w, int h) |
Initialize a rectangle, with sizes inside of max boundaries. | |
INLINE int | rc_width (const RECT *rc) |
Get rectangle width. | |
INLINE int | rc_height (const RECT *rc) |
Get rectangle height. | |
INLINE RECT * | rc_set_pos (RECT *rc, int x, int y) |
Move rectangle to (x, y) position. | |
INLINE RECT * | rc_set_size (RECT *rc, int w, int h) |
Reside rectangle. | |
INLINE RECT * | rc_move (RECT *rc, int dx, int dy) |
Move rectangle by (dx, dy). | |
INLINE RECT * | rc_inflate (RECT *rc, int dw, int dh) |
Increase size by dw horizontally and dh vertically. | |
INLINE RECT * | rc_inflate2 (RECT *rc, const RECT *dr) |
Increase sizes on all sides by values of rectangle dr. | |
RECT * | rc_normalize (RECT *rc) |
Detailed Description
Function Documentation
INLINE RECT * rc_set | ( | RECT * | rc, | |
int | l, | |||
int | t, | |||
int | r, | |||
int | b | |||
) |
Initialize a rectangle.
- Parameters:
-
l Left side. t Top side. r Right side. b Bottom side.
INLINE RECT * rc_set2 | ( | RECT * | rc, | |
int | x, | |||
int | y, | |||
int | w, | |||
int | h | |||
) |
Initialize a rectangle, with sizes inside of max boundaries.
- Parameters:
-
x Left side. y Top side. w Width. h Height.
Generated on Mon Aug 25 17:03:57 2008 for libtonc by 1.5.3