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 / Prop.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-16  |  1.3 KB  |  50 lines

  1. //
  2. //  $VER: Prop.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_PROP_H
  23. #define CPP_TWIMUI_PROP_H
  24.  
  25. #ifndef CPP_TWIMUI_GADGET_H
  26. #include <classes/twimui/gadget.h>
  27. #endif
  28.  
  29. class MUIProp : public MUIGadget
  30.     {
  31.     public:
  32.         MUIProp(const struct TagItem *t) : MUIGadget(MUIC_Prop) { init(t); };
  33.         MUIProp(const Tag, ...);
  34.         MUIProp() : MUIGadget(MUIC_Prop) { };
  35.         MUIProp(MUIProp &p) : MUIGadget(p) { };
  36.         virtual ~MUIProp();
  37.         MUIProp &operator= (MUIProp &);
  38.         void Entries(const LONG p) { set(MUIA_Prop_Entries,(ULONG)p); };
  39.         LONG Entries() const { return((LONG)get(MUIA_Prop_Entries,0L)); };
  40.         void First(const LONG p) { set(MUIA_Prop_First,(ULONG)p); };
  41.         LONG First() const { return((LONG)get(MUIA_Prop_First,0L)); };
  42.         BOOL Horiz() const { return((BOOL)get(MUIA_Prop_Horiz,FALSE)); };
  43.         void PSlider(const BOOL p) { set(MUIA_Prop_Slider,(ULONG)p); };
  44.         BOOL PSlider() const { return((BOOL)get(MUIA_Prop_Slider,0L)); };
  45.         void Visible(const LONG p) { set(MUIA_Prop_Visible,(ULONG)p); };
  46.         LONG Visible() const { return((LONG)get(MUIA_Prop_Visible,0L)); };
  47.     };
  48.  
  49. #endif
  50.