sptk::CRect Class Reference
[GUI Classes]
General class to work with rectangles.
More...
#include <CRect.h>
List of all members.
|
Public Member Functions |
| | CRect (int x=0, int y=0, int w=0, int h=0) |
|
int | x () const |
| | returns rectangle X-coordinate
|
|
int | y () const |
| | returns rectangle Y-coordinate
|
|
int | w () const |
| | returns rectangle width
|
|
int | h () const |
| | returns rectangle height
|
| 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) |
Detailed Description
General class to work with rectangles.
Constructor & Destructor Documentation
| sptk::CRect::CRect |
( |
int |
x = 0, |
|
|
int |
y = 0, |
|
|
int |
w = 0, |
|
|
int |
h = 0 | |
|
) |
| | [inline] |
Default constructor
- Parameters:
-
| x | int, rectangle X-coordinate |
| y | int, rectangle Y-coordinate |
| w | int, rectangle width |
| h | int, rectangle height |
References h(), w(), x(), and y().
Member Function Documentation
| void sptk::CRect::expand |
( |
int |
dw, |
|
|
int |
dh | |
|
) |
| | [inline] |
expands rectangle width and height
- Parameters:
-
| dw | int, rectangle width change |
| dh | int, rectangle height change |
| void sptk::CRect::move |
( |
int |
x, |
|
|
int |
y | |
|
) |
| | [inline] |
sets rectangle X and Y coordinates
- Parameters:
-
| x | int, rectangle X-coordinate |
| y | int, rectangle Y-coordinate |
| void sptk::CRect::shift |
( |
int |
dx, |
|
|
int |
dy | |
|
) |
| | [inline] |
shifts rectangle X and Y coordinates
- Parameters:
-
| dx | int, rectangle X-coordinate shift |
| dy | int, rectangle Y-coordinate shift |
| void sptk::CRect::shrink |
( |
int |
dw, |
|
|
int |
dh | |
|
) |
| | [inline] |
shrinks rectangle width and height
- Parameters:
-
| dw | int, rectangle width change |
| dh | int, rectangle height change |
| void sptk::CRect::size |
( |
int |
w, |
|
|
int |
h | |
|
) |
| | [inline] |
sets rectangle's width and height
- Parameters:
-
| w | int, rectangle width |
| h | int, rectangle height |
The documentation for this class was generated from the following file: