home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / pOSxA.lzx / pOSxA / workbench / workbench.h < prev   
Encoding:
C/C++ Source or Header  |  1997-03-12  |  2.1 KB  |  106 lines

  1. #ifndef WORKBENCH_WORKBENCH_H
  2. #define WORKBENCH_WORKBENCH_H
  3.  
  4. #ifndef EXEC_TYPES_H
  5. #include <exec/types.h>
  6. #endif
  7. #ifndef    EXEC_NODES_H
  8. #include <exec/nodes.h>
  9. #endif
  10. #ifndef    EXEC_LISTS_H
  11. #include <exec/lists.h>
  12. #endif
  13. #ifndef EXEC_TASKS_H
  14. #include <exec/tasks.h>
  15. #endif
  16. #ifndef INTUITION_INTUITION_H
  17. #include <intuition/intuition.h>
  18. #endif
  19.  
  20. #ifdef __IGNORE_NOT_SUPPORTED__
  21.  
  22. #define    WBDISK        1
  23. #define    WBDRAWER    2
  24. #define    WBTOOL        3
  25. #define    WBPROJECT    4
  26. #define    WBGARBAGE    5
  27. #define    WBDEVICE    6
  28. #define    WBKICK        7
  29. #define WBAPPICON    8
  30.  
  31. struct OldDrawerData {
  32.     struct NewWindow    dd_NewWindow;
  33.     LONG        dd_CurrentX;
  34.     LONG        dd_CurrentY;
  35. };
  36. #define OLDDRAWERDATAFILESIZE    (sizeof(struct OldDrawerData))
  37.  
  38. struct DrawerData {
  39.     struct NewWindow    dd_NewWindow;
  40.     LONG        dd_CurrentX;
  41.     LONG        dd_CurrentY;
  42.     ULONG        dd_Flags;
  43.     UWORD        dd_ViewModes;
  44. };
  45. #define DRAWERDATAFILESIZE    (sizeof(struct DrawerData))
  46.  
  47. struct DiskObject {
  48.     UWORD        do_Magic;
  49.     UWORD        do_Version;
  50.     struct Gadget    do_Gadget;
  51.     UBYTE        do_Type;
  52.     char *        do_DefaultTool;
  53.     char **        do_ToolTypes;
  54.     LONG        do_CurrentX;
  55.     LONG        do_CurrentY;
  56.     struct DrawerData *    do_DrawerData;
  57.     char *        do_ToolWindow;
  58.     LONG        do_StackSize;
  59.  
  60. };
  61.  
  62. #define WB_DISKMAGIC    0xe310
  63. #define WB_DISKVERSION    1
  64. #define WB_DISKREVISION    1
  65. #define WB_DISKREVISIONMASK    255
  66.  
  67. struct FreeList {
  68.     WORD        fl_NumFree;
  69.     struct List        fl_MemList;
  70. };
  71.  
  72. #define GFLG_GADGBACKFILL 0x0001
  73. #define GADGBACKFILL      0x0001
  74. #define NO_ICON_POSITION    (0x80000000)
  75. #define WORKBENCH_NAME        "workbench.library"
  76. #define    AM_VERSION    1
  77.  
  78. struct AppMessage {
  79.     struct Message am_Message;
  80.     UWORD am_Type;
  81.     ULONG am_UserData;
  82.     ULONG am_ID;
  83.     LONG am_NumArgs;
  84.     struct WBArg *am_ArgList;
  85.     UWORD am_Version;
  86.     UWORD am_Class;
  87.     WORD am_MouseX;
  88.     WORD am_MouseY;
  89.     ULONG am_Seconds;
  90.     ULONG am_Micros;
  91.     ULONG am_Reserved[8];
  92. };
  93.  
  94. #define AMTYPE_APPWINDOW   7
  95. #define AMTYPE_APPICON       8
  96. #define AMTYPE_APPMENUITEM 9
  97.  
  98.  
  99. struct AppWindow    { void *aw_PRIVATE;  };
  100. struct AppIcon        { void *ai_PRIVATE;  };
  101. struct AppMenuItem    { void *ami_PRIVATE; };
  102.  
  103. #endif /** __IGNORE_NOT_SUPPORTED__ **/
  104.  
  105. #endif    /* !WORKBENCH_WORKBENCH_H */
  106.