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

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