ADTF_DISPLAY_TOOLBOX  3.8.0 (ADTF 3.14.3)
rect.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 #include <adtf_base.h>
12 
13 namespace adtf
14 {
15 
16 namespace disptb
17 {
18 
19 namespace graphicslib
20 {
21 
22 namespace dengar
23 {
29 class cRect : public IRect
30 {
31 private:
33  cPoint m_oTopLeft;
34  cPoint m_oBottomRight;
36 
37 public:
38  tInt m_nLeft;
39  tInt m_nTop;
40  tInt m_nRight;
41  tInt m_nBottom;
42 
43 public:
47  cRect();
48 
54  cRect(const IRect* pRect);
55 
64  cRect(tInt l, tInt t, tInt r, tInt b);
65 
70  tVoid Release();
71 
81  tVoid Set(tInt l, tInt t, tInt r, tInt b);
82 
88  tInt GetWidth() const;
89 
95  tInt GetHeight() const;
96 
102  const cPoint* GetTopLeft() const;
103 
109  const cPoint* GetBottomRight() const;
110 
116  tInt GetLeft() const;
117 
124  tVoid SetLeft(tInt nLeft);
125 
131  tInt GetTop() const;
132 
139  tVoid SetTop(tInt nTop);
140 
146  tInt GetRight() const;
147 
154  tVoid SetRight(tInt nRight);
155 
161  tInt GetBottom() const;
162 
169  tVoid SetBottom(tInt nBottom);
170 
176  explicit operator IRect*()
177  {
178  return static_cast<IRect*>(this);
179  }
180 };
181 
182 }
183 
184 using dengar::cRect;
185 }
186 
187 }
188 
189 }
tInt m_nRight
right border of the rect
Definition: rect.h:40
cRect(tInt l, tInt t, tInt r, tInt b)
constructor with parameter
const cPoint * GetTopLeft() const
returns the top left point of the rectangle
tInt m_nTop
top border of the rect
Definition: rect.h:39
const cPoint * GetBottomRight() const
returns the bottom right point of the rectangle
tInt m_nLeft
left border of the rect
Definition: rect.h:38
tInt GetWidth() const
returns the width of the rectangle
tInt m_nBottom
bottom border of the rect
Definition: rect.h:41
cRect(const IRect *pRect)
constructor from IRect
tInt GetHeight() const
returns the height of the rectangle
tVoid Set(tInt l, tInt t, tInt r, tInt b)
sets the rect
Main namespace.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.