home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / BK-SC1_4.DMS / in.adf / MUIClass.Lha / Include / Classes / TWiMUI / Rectangle.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-16  |  1.6 KB  |  72 lines

  1. //
  2. //  $VER: Rectangle.h   1.0 (16 Jun 1996)
  3. //
  4. //    c 1996 Thomas Wilhelmi
  5. //
  6. //
  7. // Address : Taunusstrasse 14
  8. //           61138 Niederdorfelden
  9. //           Germany
  10. //
  11. //  E-Mail : willi@twi.rhein-main.de
  12. //
  13. //   Phone : +49 (0)6101 531060
  14. //   Fax   : +49 (0)6101 531061
  15. //
  16. //
  17. //  $HISTORY:
  18. //
  19. //  16 Jun 1996 :   1.0 : first public Release
  20. //
  21.  
  22. #ifndef CPP_TWIMUI_RECTANGLE_H
  23. #define CPP_TWIMUI_RECTANGLE_H
  24.  
  25. #ifndef CPP_TWIMUI_AREA_H
  26. #include <classes/twimui/area.h>
  27. #endif
  28.  
  29. class MUIRectangle : public MUIArea
  30.     {
  31.     public:
  32.         MUIRectangle(const struct TagItem *t) : MUIArea(MUIC_Rectangle) { init(t); };
  33.         MUIRectangle(const Tag, ...);
  34.         MUIRectangle() : MUIArea(MUIC_Rectangle) { };
  35.         MUIRectangle(MUIRectangle &p) : MUIArea(p) { };
  36.         virtual ~MUIRectangle();
  37.         MUIRectangle &operator= (MUIRectangle &);
  38.         STRPTR BarTitle() const { return((STRPTR)get(MUIA_Rectangle_BarTitle,NULL)); };
  39.         BOOL HBar() const { return((BOOL)get(MUIA_Rectangle_HBar,FALSE)); };
  40.         BOOL VBar() const { return((BOOL)get(MUIA_Rectangle_VBar,FALSE)); };
  41.     };
  42.  
  43. class MUIHBar : public MUIRectangle
  44.     {
  45.     public:
  46.         MUIHBar(const ULONG size)
  47.             :   MUIRectangle(
  48.                     MUIA_Rectangle_HBar, TRUE,
  49.                     MUIA_FixHeight     , size,
  50.                     TAG_DONE)
  51.             { };
  52.         MUIHBar(MUIHBar &p) : MUIRectangle(p) { };
  53.         virtual ~MUIHBar();
  54.         MUIHBar &operator= (MUIHBar &);
  55.     };
  56.  
  57. class MUIVBar : public MUIRectangle
  58.     {
  59.     public:
  60.         MUIVBar(const ULONG size)
  61.             :   MUIRectangle(
  62.                     MUIA_Rectangle_VBar, TRUE,
  63.                     MUIA_FixWidth      , size,
  64.                     TAG_DONE)
  65.             { };
  66.         MUIVBar(MUIVBar &p) : MUIRectangle(p) { };
  67.         virtual ~MUIVBar();
  68.         MUIVBar &operator= (MUIVBar &);
  69.     };
  70.  
  71. #endif
  72.