home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / Libraries / Aidan's Class Libraries / Source / Headers / CLRectShape.h < prev    next >
Encoding:
Text File  |  1997-07-20  |  904 b   |  52 lines  |  [TEXT/CWIE]

  1. //Copyright (c) 1997 Aidan Cully
  2. //All rights reserved
  3.  
  4. #ifndef __RECTSHAPE_H
  5. #define __RECTSHAPE_H
  6.  
  7. #include "CLShape.h"
  8. #include "CLStyle.h"
  9. #include "CLTypes.h"
  10.  
  11. class TRectShape:
  12.     public TShape
  13. {
  14. protected:
  15.     Rect mBounds;
  16. public:
  17.     TRectShape( Rect );
  18.     TRectShape( short, short, short, short );
  19. };
  20.  
  21. class TFillRectShape:
  22.     public TRectShape
  23. {
  24. protected:
  25.     TStyle *mStyle;
  26. public:
  27.     TFillRectShape( Rect, TStyle* );
  28.     TFillRectShape( short, short, short, short, TStyle* );
  29.     virtual void RenderOn( TDrawSlate* );
  30. };
  31.  
  32. class TFrameRectShape:
  33.     public TRectShape
  34. {
  35. protected:
  36.     TStyle *mStyle;
  37. public:
  38.     TFrameRectShape( Rect, TStyle* );
  39.     TFrameRectShape( short, short, short, short, TStyle* );
  40.     virtual void RenderOn( TDrawSlate* );
  41. };
  42.  
  43. class TEraseRectShape:
  44.     public TRectShape
  45. {
  46. public:
  47.     TEraseRectShape( Rect );
  48.     TEraseRectShape( short, short, short, short );
  49.     virtual void RenderOn( TDrawSlate* );
  50. };
  51.  
  52. #endif