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

  1. //
  2. //  $VER: Area.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_AREA_H
  23. #define CPP_TWIMUI_AREA_H
  24.  
  25. #ifndef CPP_TWIMUI_NOTIFY_H
  26. #include <classes/twimui/notify.h>
  27. #endif
  28.  
  29. #ifndef CPP_TWIMUI_WINDOW_H
  30. #include <classes/twimui/window.h>
  31. #endif
  32.  
  33. class MUIArea : public MUINotify
  34.     {
  35.     protected:
  36.         MUIArea(const STRPTR cl) : MUINotify(cl) { };
  37.     public:
  38.         MUIArea(const struct TagItem *t) : MUINotify(MUIC_Area) { init(t); };
  39.         MUIArea(const Tag, ...);
  40.         MUIArea() : MUINotify(MUIC_Area) { };
  41.         MUIArea(MUIArea &p) : MUINotify(p) { };
  42.         virtual ~MUIArea();
  43.         MUIArea &operator= (MUIArea &p);
  44.         void Background(const LONG p) { set(MUIA_Background,(ULONG)p); };
  45.         LONG BottomEdge() const { return((LONG)get(MUIA_BottomEdge,0L)); };
  46.         void ContextMenu(const Object *p) { set(MUIA_ContextMenu,(ULONG)p); };
  47.         Object *ContextMenu() const { return((Object *)get(MUIA_ContextMenu)); };
  48.         Object *ContextMenuTr() const { return((Object *)get(MUIA_ContextMenuTrigger)); };
  49.         void ControlChar(const UBYTE p) { set(MUIA_ControlChar,(ULONG)p); };
  50.         UBYTE ControlChar() const { return((UBYTE)get(MUIA_ControlChar)); };
  51.         void CycleChain(const LONG p) { set(MUIA_CycleChain,(ULONG)p); };
  52.         LONG CycleChain() const { return((LONG)get(MUIA_CycleChain,0L)); };
  53.         void Disabled(const BOOL p) { set(MUIA_Disabled,(ULONG)p); };
  54.         BOOL Disabled() const { return((BOOL)get(MUIA_Disabled,FALSE)); };
  55.         void Draggable(const BOOL p) { set(MUIA_Draggable,(ULONG)p); };
  56.         BOOL Draggable() const { return((BOOL)get(MUIA_Draggable,FALSE)); };
  57.         void Dropable(const BOOL p) { set(MUIA_Dropable,(ULONG)p); };
  58.         BOOL Dropable() const { return((BOOL)get(MUIA_Dropable,FALSE)); };
  59.         struct TextFont *Font() const { return((struct TextFont *)get(MUIA_Font)); };
  60.         LONG Height() const { return((LONG)get(MUIA_Height,0L)); };
  61.         void HorizDisappear(const LONG p) { set(MUIA_HorizDisappear,(ULONG)p); };
  62.         LONG HorizDisappear() const { return((LONG)get(MUIA_HorizDisappear,0L)); };
  63.         LONG LeftEdge() const { return((LONG)get(MUIA_LeftEdge,0L)); };
  64.         void ObjectID(const ULONG p) { set(MUIA_ObjectID,p); };
  65.         ULONG ObjectID() const { return(get(MUIA_ObjectID,0L)); };
  66.         BOOL Pressed() const { return((BOOL)get(MUIA_Pressed,FALSE)); };
  67.         LONG RightEdge() const { return((LONG)get(MUIA_RightEdge,0L)); };
  68.         void Selected(const BOOL p) { set(MUIA_Selected,(ULONG)p); };
  69.         BOOL Selected() const { return((BOOL)get(MUIA_Selected,FALSE)); };
  70.         void ShortHelp(const STRPTR p) { set(MUIA_ShortHelp,(ULONG)p); };
  71.         STRPTR ShortHelp() const { return((STRPTR)get(MUIA_ShortHelp)); };
  72.         void ShowMe(const BOOL p) { set(MUIA_ShowMe,(ULONG)p); };
  73.         BOOL ShowMe() const { return((BOOL)get(MUIA_ShowMe,FALSE)); };
  74.         LONG Timer() const { return((LONG)get(MUIA_Timer,0L)); };
  75.         LONG TopEdge() const { return((LONG)get(MUIA_TopEdge,0L)); };
  76.         void VertDisappear(const LONG p) { set(MUIA_VertDisappear,(ULONG)p); };
  77.         LONG VertDisappear() const { return((LONG)get(MUIA_VertDisappear,0L)); };
  78.         LONG Width() const { return((LONG)get(MUIA_Width,0L)); };
  79.         struct Window *WindowP() const { return((struct Window *)get(MUIA_Window)); };
  80.         Object *WinObject() const { return((Object *)get(MUIA_WindowObject)); };
  81.         MUIWindow *WinClass() const;
  82.     };
  83.  
  84. #endif
  85.