MGUI::POINT Class Reference

Class to contain X/Y coordinates of a point in a window, on the screen, etc. More...

#include <mgui/base.h>

List of all members.

Public Member Functions

 POINT (INT16 x, INT16 y)
 POINT (const POINT &rhs)
 POINT ()
INT16 GetX () const
INT16 GetY () const
POINToperator= (const POINT &rhs)
void Set (INT16 x, INT16 y)
void SetX (INT16 x)
void SetY (INT16 y)

Public Attributes

INT16 m_x
INT16 m_y

Detailed Description

Class to contain X/Y coordinates of a point in a window, on the screen, etc.

Often instances of this class are passed by value since the total size is 4 bytes which actually results in smaller and more efficient code in the called function due to direct access on stack rather than through pointer/reference indirection.


Constructor & Destructor Documentation

MGUI::POINT::POINT (  )  [inline]

Default construction, initializes to arbitrary point.

MGUI::POINT::POINT ( const POINT rhs  )  [inline]
MGUI::POINT::POINT ( INT16  x,
INT16  y 
) [inline]

Construct from X, Y values.


Member Function Documentation

INT16 MGUI::POINT::GetX (  )  const [inline]

Get X value.

INT16 MGUI::POINT::GetY (  )  const [inline]

Get Y value.

POINT& MGUI::POINT::operator= ( const POINT rhs  )  [inline]
void MGUI::POINT::Set ( INT16  x,
INT16  y 
) [inline]

Set X, Y values.

void MGUI::POINT::SetX ( INT16  x  )  [inline]

Set X value.

void MGUI::POINT::SetY ( INT16  y  )  [inline]

Set Y value.


Member Data Documentation

Point X coordinate.

Point Y coordinate.


The documentation for this class was generated from the following file:

Generated on Sun Oct 7 21:36:13 2012 for TNTsdk 2012 by  doxygen 1.6.1