A rectangle structure in several (integer) flavors.
More...
#include <mathplot.h>
|
| wxRect | GetRect (void) const |
| | Create standard wxWidgets rectangle defined by this object's start and end points. More...
|
| |
| int | GetWidth () const |
| | Get the width of the rectangle defined by this object's left and right coordinates. More...
|
| |
| int | GetHeight () const |
| | Get the height of the rectangle defined by this object's top and bottom coordinates. More...
|
| |
|
|
union { |
|
struct { |
|
wxCoord startPx |
| |
|
wxCoord startPy |
| |
|
wxCoord endPx |
| |
|
wxCoord endPy |
| |
| } | |
| |
|
struct { |
|
wxCoord left |
| |
|
wxCoord top |
| |
|
wxCoord right |
| |
|
wxCoord bottom |
| |
| } | |
| |
|
struct { |
|
wxCoord x1 |
| |
|
wxCoord y1 |
| |
|
wxCoord x2 |
| |
|
wxCoord y2 |
| |
| } | |
| |
|
wxCoord tab [4] |
| | Alternate array-style access to the rectangle coordinates.
|
| |
| }; | |
| |
A rectangle structure in several (integer) flavors.
◆ GetHeight()
| int mpRect::GetHeight |
( |
| ) |
const |
|
inline |
Get the height of the rectangle defined by this object's top and bottom coordinates.
- Returns
- Height of the rectangle
◆ GetRect()
| wxRect mpRect::GetRect |
( |
void |
| ) |
const |
|
inline |
Create standard wxWidgets rectangle defined by this object's start and end points.
- Returns
- wxRect object
◆ GetWidth()
| int mpRect::GetWidth |
( |
| ) |
const |
|
inline |
Get the width of the rectangle defined by this object's left and right coordinates.
- Returns
- Width of the rectangle
The documentation for this struct was generated from the following file: