#include <mgui/toolrect.h>
Inheritance diagram for MGUI::TOOL_RECTANGLE:

Public Member Functions | |
| double | GetAngle () const |
| DPOINT2D | GetCenter () const |
| const DPOINT2D & | GetCorner (int corner) const |
| void | GetCorners (DPOINT2D rcorners[4]) const |
| const DPOINT2D * | GetCorners () const |
| const DRECT2D & | GetExtents () const |
| const DPOINT2D & | GetSize () const |
| TOOL_RECTANGLE & | operator= (const DRECT2D &rhs) |
| void | SetAspect (double aspect) |
| TOOL_RECTANGLE (TOOLCANVAS *canvas) | |
| virtual | ~TOOL_RECTANGLE () |
Definition at line 32 of file toolrect.h.
|
|
Constructor.
|
|
|
Destructor.
|
|
|
Get rotation angle.
Definition at line 50 of file toolrect.h. |
|
|
Get center of rectangle in tool coordinates.
Definition at line 54 of file toolrect.h. |
|
|
Get coordinates of specified corner.
Definition at line 58 of file toolrect.h. |
|
|
Copy corner coordinates into specified array.
Definition at line 68 of file toolrect.h. |
|
|
Get coordinates of all rectangle corners.
Definition at line 64 of file toolrect.h. |
|
|
Get extents of tool.
Definition at line 73 of file toolrect.h. |
|
|
Get current rectangle size.
Definition at line 78 of file toolrect.h. |
|
|
Assigment from DRECT2D.
|
|
|
Set aspect ratio for rectangle. Setting the aspect ratio to a value <= 0 removes the aspect constraint.
|
1.3.8-20040913