| 1234567891011121314151617181920212223242526272829303132333435 |
- #ifndef _rectangle_h_
- #define _rectangle_h_
- #include "point.h"
-
- class Rect
- {
- public:
-
- Rect( int x1 = 0, int y1 = 0, int x2 = 0, int y2 = 0 );
- Rect( const Point& p1, const Point& p2 );
- Rect( const Rect& other );
- virtual ~Rect();
- Point TopLeft();
- Point BottomRight();
- Point CenterPoint();
-
- int Width();
- int Height();
- void SetRectEmpty();
- bool IsRectNull();
- int left;
- int top;
- int right;
- int bottom;
-
- };
- #endif
|