Class to contain X/Y coordinates of a point in a window, on the screen, etc. More...
#include <mgui/base.h>
Public Member Functions | |
| POINT (INT16 x, INT16 y) | |
| POINT (const POINT &rhs) | |
| POINT () | |
| INT16 | GetX () const |
| INT16 | GetY () const |
| POINT & | operator= (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 |
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.
| MGUI::POINT::POINT | ( | ) | [inline] |
Default construction, initializes to arbitrary point.
| MGUI::POINT::POINT | ( | const POINT & | rhs | ) | [inline] |
| INT16 MGUI::POINT::GetX | ( | ) | const [inline] |
Get X value.
| INT16 MGUI::POINT::GetY | ( | ) | const [inline] |
Get Y value.
| void MGUI::POINT::SetX | ( | INT16 | x | ) | [inline] |
Set X value.
| void MGUI::POINT::SetY | ( | INT16 | y | ) | [inline] |
Set Y value.
Point X coordinate.
Point Y coordinate.
1.6.1