Usermode/AxWin4 - Slowly implementing
[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 Move(int NewX, int NewY);
18         
19         bool HasIntersection(const CRect& other) const;
20         CRect Intersection(const CRect& other) const;
21         
22         CRect RelativeIntersection(const CRect& area);
23         
24         int     m_x;
25         int     m_y;
26         int     m_w;
27         int     m_h;
28         int     m_x2;
29         int     m_y2;
30 };
31
32 };      // namespace AxWin
33
34 #endif
35

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