ADTF_DISPLAY_TOOLBOX  3.8.0 (ADTF 3.14.3)
point.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 #include <adtf_base.h>
11 
12 
13 namespace adtf
14 {
15 
16 namespace disptb
17 {
18 
19 namespace graphicslib
20 {
21 
22 namespace dengar
23 {
29 class cPoint : public IPoint
30 {
31 public:
33  tInt x;
35  tInt y;
36 
37 public:
41  cPoint();
42 
48  cPoint(const IPoint* pPoint);
49 
56  cPoint(tInt arg_x, tInt arg_y);
57 
62  tVoid Release();
63 
71  tVoid Set(tInt arg_x, tInt arg_y);
72 
80  tVoid Offset(tInt offset_x, tInt offset_y);
81 
87  tInt GetX() const;
88 
95  tVoid SetX(tInt xValue);
96 
102  tInt GetY() const;
103 
110  tVoid SetY(tInt yValue);
111 
117  explicit operator IPoint*()
118  {
119  return static_cast<IPoint*>(this);
120  }
121 };
122 
123 }
124 
125 using dengar::cPoint;
126 }
127 
128 }
129 
130 }
tVoid Release()
Releases this point.
tVoid SetY(tInt yValue)
Sets the y value.
tVoid SetX(tInt xValue)
Sets the x value.
tInt x
the X Position of the Point
Definition: point.h:33
cPoint(const IPoint *pPoint)
constructor from IPoint
tVoid Offset(tInt offset_x, tInt offset_y)
Recalculate the given values with the internal coordinates.
tInt y
the Y Position of the Point
Definition: point.h:35
cPoint(tInt arg_x, tInt arg_y)
The Constructor, sets the coordinates to the given values.
tInt GetX() const
Returns the x value.
tVoid Set(tInt arg_x, tInt arg_y)
Sets the coordinates to the given values.
cPoint()
The Default Constructor, sets x = 0 and y = 0.
tInt GetY() const
Return the y value.
Main namespace.
Copyright © Audi Electronics Venture GmbH.