ADTF_DISPLAY_TOOLBOX  3.8.0 (ADTF 3.14.3)
cPoint

Point class. More...

Inheritance diagram for cPoint:
[legend]

Public Member Functions

 cPoint ()
 The Default Constructor, sets x = 0 and y = 0.
 
 cPoint (const IPoint *pPoint)
 constructor from IPoint More...
 
 cPoint (tInt arg_x, tInt arg_y)
 The Constructor, sets the coordinates to the given values. More...
 
tVoid Release ()
 Releases this point. More...
 
tVoid Set (tInt arg_x, tInt arg_y)
 Sets the coordinates to the given values. More...
 
tVoid Offset (tInt offset_x, tInt offset_y)
 Recalculate the given values with the internal coordinates. More...
 
tInt GetX () const
 Returns the x value. More...
 
tVoid SetX (tInt xValue)
 Sets the x value. More...
 
tInt GetY () const
 Return the y value. More...
 
tVoid SetY (tInt yValue)
 Sets the y value. More...
 
 operator IPoint * ()
 instance of IPoint More...
 
- Public Member Functions inherited from IPoint
virtual ~IPoint ()
 virtual destructor to ensure proper cleanup.
 

Public Attributes

tInt x
 the X Position of the Point
 
tInt y
 the Y Position of the Point
 

Detailed Description

Point class.

Definition at line 29 of file point.h.

Constructor & Destructor Documentation

◆ cPoint() [1/2]

cPoint ( const IPoint pPoint)

constructor from IPoint

Parameters
[in]pPointPoint

◆ cPoint() [2/2]

cPoint ( tInt  arg_x,
tInt  arg_y 
)

The Constructor, sets the coordinates to the given values.

Parameters
arg_x[in] Sets the x member.
arg_y[in] Sets the y member.

Member Function Documentation

◆ GetX()

tInt GetX ( ) const
virtual

Returns the x value.

Returns
x value

Implements IPoint.

◆ GetY()

tInt GetY ( ) const
virtual

Return the y value.

Returns
y value

Implements IPoint.

◆ Offset()

tVoid Offset ( tInt  offset_x,
tInt  offset_y 
)

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

◆ operator IPoint *()

operator IPoint * ( )
inlineexplicit

instance of IPoint

Returns
object

Definition at line 117 of file point.h.

◆ Release()

tVoid Release ( )
virtual

Releases this point.

Returns
void

Implements IPoint.

◆ Set()

tVoid Set ( tInt  arg_x,
tInt  arg_y 
)

Sets the coordinates to the given values.

Parameters
arg_x[in] Sets the x member.
arg_y[in] Sets the y member.
Returns
void

◆ SetX()

tVoid SetX ( tInt  xValue)
virtual

Sets the x value.

Parameters
xValue[in] x value to set
Returns
void

Implements IPoint.

◆ SetY()

tVoid SetY ( tInt  yValue)
virtual

Sets the y value.

Parameters
yValue[in] y value to set
Returns
void

Implements IPoint.