Point class.
More...
#include <point.h>
|
| | cPoint () |
| | The Default Constructor, sets x = 0 and y = 0.
|
| |
| | cPoint (const IPoint *pPoint) |
| | constructor from IPoint
|
| |
| | cPoint (tInt arg_x, tInt arg_y) |
| | The Constructor, sets the coordinates to the given values.
|
| |
| tVoid | Release () |
| | Releases this point.
|
| |
| tVoid | Set (tInt arg_x, tInt arg_y) |
| | Sets the coordinates to the given values.
|
| |
| tVoid | Offset (tInt offset_x, tInt offset_y) |
| | Recalculate the given values with the internal coordinates.
|
| |
| tInt | GetX () const |
| | Returns the x value.
|
| |
| tVoid | SetX (tInt xValue) |
| | Sets the x value.
|
| |
| tInt | GetY () const |
| | Return the y value.
|
| |
| tVoid | SetY (tInt yValue) |
| | Sets the y value.
|
| |
| | operator IPoint * () |
| | instance of IPoint
|
| |
| virtual | ~IPoint () |
| | virtual destructor to ensure proper cleanup.
|
| |
|
| tInt | x |
| | the X Position of the Point
|
| |
| tInt | y |
| | the Y Position of the Point
|
| |
Point class.
Definition at line 28 of file point.h.
◆ cPoint() [1/3]
The Default Constructor, sets x = 0 and y = 0.
Definition at line 40 of file point.h.
◆ cPoint() [2/3]
◆ cPoint() [3/3]
| cPoint |
( |
tInt | arg_x, |
|
|
tInt | arg_y ) |
|
inline |
The Constructor, sets the coordinates to the given values.
- Parameters
-
| arg_x | [in] Sets the x member. |
| arg_y | [in] Sets the y member. |
Definition at line 63 of file point.h.
◆ GetX()
Returns the x value.
- Returns
- x value
Implements IPoint.
Definition at line 109 of file point.h.
◆ GetY()
Return the y value.
- Returns
- y value
Implements IPoint.
Definition at line 130 of file point.h.
◆ Offset()
| tVoid Offset |
( |
tInt | offset_x, |
|
|
tInt | offset_y ) |
|
inline |
Recalculate the given values with the internal coordinates.
- Parameters
-
| offset_x | [in] Offset for the x member. |
| offset_y | [in] Offset for the y member. |
- Returns
- void
Definition at line 98 of file point.h.
◆ operator IPoint *()
◆ Release()
Releases this point.
- Returns
- void
Implements IPoint.
Definition at line 73 of file point.h.
◆ Set()
| tVoid Set |
( |
tInt | arg_x, |
|
|
tInt | arg_y ) |
|
inline |
Sets the coordinates to the given values.
- Parameters
-
| arg_x | [in] Sets the x member. |
| arg_y | [in] Sets the y member. |
- Returns
- void
Definition at line 85 of file point.h.
◆ SetX()
| tVoid SetX |
( |
tInt | xValue | ) |
|
|
inlinevirtual |
Sets the x value.
- Parameters
-
| xValue | [in] x value to set |
- Returns
- void
Implements IPoint.
Definition at line 120 of file point.h.
◆ SetY()
| tVoid SetY |
( |
tInt | yValue | ) |
|
|
inlinevirtual |
Sets the y value.
- Parameters
-
| yValue | [in] y value to set |
- Returns
- void
Implements IPoint.
Definition at line 141 of file point.h.
the X Position of the Point
Definition at line 32 of file point.h.
the Y Position of the Point
Definition at line 34 of file point.h.