home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / OTL-MC7.DMS / in.adf / classes.lha / Classes / Layouter / DecorGadgets.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-31  |  2.9 KB  |  84 lines

  1. #ifndef CPP_LAYOUTER_DECORGADGETS_H
  2. #define CPP_LAYOUTER_DECORGADGETS_H
  3.  
  4. // Layouter für diverse BOOPSI Gadgets
  5. //
  6. // Autor: Jochen Becher
  7. //
  8. // Historie:
  9. // Version 1.0 am 8. März 94
  10.  
  11. #ifndef CPP_BOOPSI_DECORGADGETS_H
  12. #include <classes/boopsi/decorgadgets.h>
  13. #endif
  14.  
  15. #ifndef CPP_BOOPSI_IMAGECLASS_H
  16. #include <classes/boopsi/imageclass.h>
  17. #endif
  18.  
  19. #ifndef CPP_LAYOUTER_LAYOUTER_H
  20. #include <classes/layouter/layouter.h>
  21. #endif
  22.  
  23. class LBBevelboxC : public BBevelboxC, public GroupLayoutC {
  24. public:
  25.     LBBevelboxC(WindowC &w, STRPTR Label = NULL, BoopsiImageC * = NULL,
  26.         WORD Width = LAYOUT_AUTOSIZE, WORD Height = LAYOUT_AUTOSIZE,
  27.         struct TagItem *tags = NULL);
  28.     LBBevelboxC(WindowC &w, STRPTR Label, BoopsiImageC *,
  29.         WORD Width, WORD Height, Tag tag1type, ...);
  30.     BOOL layoutWidth();
  31.     BOOL layoutHeight();
  32.     VOID setTop(WORD t) { BBevelboxC::setTop(t); };
  33.     VOID setLeft(WORD l) { BBevelboxC::setLeft(l); };
  34.     VOID setWidth(WORD w);
  35.     VOID setHeight(WORD h);
  36.     WORD top() const { return BBevelboxC::top(); };
  37.     WORD left() const { return BBevelboxC::left(); };
  38.     WORD width() const { return BBevelboxC::width(); };
  39.     WORD height() const { return BBevelboxC::height(); };
  40.     BOOL autoWidth() const { return aWidth; };
  41.     BOOL autoHeight() const { return aHeight; };
  42.     WORD topBorder() const { return BBevelboxC::topBorder(); };
  43.     WORD leftBorder() const { return BBevelboxC::leftBorder(); };
  44.     WORD rightBorder() const { return BBevelboxC::rightBorder(); };
  45.     WORD bottomBorder() const { return BBevelboxC::bottomBorder(); };
  46.     WORD innerTopBorder() const { return 4 + getAttr(BBA_InnerTopBorder); };
  47.     WORD innerBottomBorder() const { return 4 + getAttr(BBA_InnerBottomBorder); };
  48.     WORD innerLeftBorder() const { return 8 + getAttr(BBA_InnerLeftBorder); };
  49.     WORD innerRightBorder() const { return 8 + getAttr(BBA_InnerRightBorder); };
  50. private:
  51.     BOOL aWidth;
  52.     BOOL aHeight;
  53. };
  54.  
  55. class LBBevellineC : public BBevellineC, public LayoutC {
  56. public:
  57.     LBBevellineC(WindowC &w, STRPTR Label = NULL,
  58.         WORD Width = LAYOUT_AUTOSIZE, WORD Height = LAYOUT_AUTOSIZE,
  59.         struct TagItem *tags = NULL);
  60.     LBBevellineC(WindowC &w, STRPTR Label,
  61.         WORD Width, WORD Height, Tag tag1type, ...);
  62.     BOOL layoutWidth();
  63.     BOOL layoutHeight();
  64.     VOID setTop(WORD t) { BBevellineC::setTop(t); };
  65.     VOID setLeft(WORD l) { BBevellineC::setLeft(l); };
  66.     VOID setWidth(WORD w);
  67.     VOID setHeight(WORD h);
  68.     WORD top() const { return BBevellineC::top(); };
  69.     WORD left() const { return BBevellineC::left(); };
  70.     WORD width() const { return BBevellineC::width(); };
  71.     WORD height() const { return BBevellineC::height(); };
  72.     BOOL autoWidth() const { return aWidth; };
  73.     BOOL autoHeight() const { return aHeight; };
  74.     WORD topBorder() const { return BBevellineC::topBorder(); };
  75.     WORD leftBorder() const { return BBevellineC::leftBorder(); };
  76.     WORD rightBorder() const { return BBevellineC::rightBorder(); };
  77.     WORD bottomBorder() const { return BBevellineC::bottomBorder(); };
  78. private:
  79.     BOOL aWidth;
  80.     BOOL aHeight;
  81. };
  82.  
  83. #endif
  84.