Usermode/libc #6 Fix string.h functions, add some more unit tests
[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         void Resize(int NewW, int NewH);
19         
20         bool HasIntersection(const CRect& other) const;
21         CRect Intersection(const CRect& other) const;
22         
23         CRect RelativeIntersection(const CRect& area);
24         
25         int     m_x;
26         int     m_y;
27         int     m_w;
28         int     m_h;
29         int     m_x2;
30         int     m_y2;
31 };
32
33 };      // namespace AxWin
34
35 #endif
36

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