home *** CD-ROM | disk | FTP | other *** search
- // CRect.h: CRectangle header file
-
- class CRectangle
- {
- private:
- int Left;
- int Top;
- int Right;
- int Bottom;
-
- public:
- CRectangle ()
- {
- Left = Top = Right = Bottom = 0;
- }
- CRectangle (int L, int T, int R, int B)
- {
- SetCoord (L, T, R, B);
- }
- void Draw (void);
- void GetCoord (int *L, int *T, int *R, int *B)
- {
- *L = Left;
- *T = Top;
- *R = Right;
- *B = Bottom;
- }
- void SetCoord (int L, int T, int R, int B);
- };
-