Usermode/libc - Fix strchr and strrchr behavior
[tpg/acess2.git] / Usermode / Applications / axwin4_src / Server / include / CRect.hpp
1 /*
2  */
3 #ifndef _CRECT_H_
4 #define _CRECT_H_
5
6 namespace AxWin {
7
8 class CRect
9 {
10 public:
11         CRect():
12                 CRect(0,0,0,0)
13         {
14         };
15         CRect(int X, int Y, unsigned int W, unsigned int H);
16         
17         void Translate(int DX, int DY) {
18                 m_x += DX;      m_x2 += DX;
19                 m_y += DY;      m_y2 += DY;
20         }
21         void Move(int NewX, int NewY);
22         void Resize(int NewW, int NewH);
23         
24         bool HasIntersection(const CRect& other) const;
25         CRect Intersection(const CRect& other) const;
26         
27         CRect RelativeIntersection(const CRect& area);
28         
29         int     m_x;
30         int     m_y;
31         int     m_w;
32         int     m_h;
33         int     m_x2;
34         int     m_y2;
35 };
36
37 };      // namespace AxWin
38
39 #endif
40

UCC git Repository :: git.ucc.asn.au