#include <CRect.h>
Public Member Functions | |
CRect (int x=0, int y=0, int w=0, int h=0) | |
int | x () const |
int | y () const |
int | w () const |
int | h () const |
void | move (int x, int y) |
void | size (int w, int h) |
void | shift (int dx, int dy) |
void | shrink (int dw, int dh) |
void | expand (int dw, int dh) |
General class to work with rectangles
|
inline |
Default constructor
x | int, rectangle X-coordinate |
y | int, rectangle Y-coordinate |
w | int, rectangle width |
h | int, rectangle height |
|
inline |
expands rectangle width and height
dw | int, rectangle width change |
dh | int, rectangle height change |
|
inline |
returns rectangle height
Referenced by size().
|
inline |
|
inline |
shifts rectangle X and Y coordinates
dx | int, rectangle X-coordinate shift |
dy | int, rectangle Y-coordinate shift |
|
inline |
shrinks rectangle width and height
dw | int, rectangle width change |
dh | int, rectangle height change |
|
inline |
|
inline |
returns rectangle width
Referenced by size().
|
inline |
returns rectangle X-coordinate
Referenced by move().
|
inline |
returns rectangle Y-coordinate
Referenced by move().