wxMathPlot
Public Member Functions | Public Attributes | List of all members
mpRect Struct Reference

A rectangle structure in several (integer) flavors. More...

#include <mathplot.h>

Public Member Functions

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...
 

Public Attributes

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.
 
}; 
 

Detailed Description

A rectangle structure in several (integer) flavors.

Member Function Documentation

◆ 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: