home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / BC_DICE2.DMS / in.adf / INCLUDE / workbench / workbench.h < prev   
Encoding:
C/C++ Source or Header  |  1995-01-10  |  2.3 KB  |  136 lines

  1. #ifndef WORKBENCH_WORKBENCH_H
  2. #define WORKBENCH_WORKBENCH_H
  3. /*
  4. ** $Filename: workbench/workbench.h $
  5. ** $Release: 2.04 Includes, V37.4 $
  6. ** $Revision: 36.25 $
  7. ** $Date: 90/11/02 $
  8. **
  9. ** workbench.library general definitions
  10. **
  11. ** (C) Copyright 1985-1991 Commodore-Amiga, Inc.
  12. ** All Rights Reserved
  13. */
  14.  
  15. #ifndef EXEC_TYPES_H
  16. #include "exec/types.h"
  17. #endif
  18.  
  19. #ifndef EXEC_NODES_H
  20. #include "exec/nodes.h"
  21. #endif
  22.  
  23. #ifndef EXEC_LISTS_H
  24. #include "exec/lists.h"
  25. #endif
  26.  
  27. #ifndef EXEC_TASKS_H
  28. #include "exec/tasks.h"
  29. #endif
  30.  
  31. #ifndef INTUITION_INTUITION_H
  32. #include "intuition/intuition.h"
  33. #endif
  34.  
  35. #define WBDISK 1
  36. #define WBDRAWER 2
  37. #define WBTOOL 3
  38. #define WBPROJECT 4
  39. #define WBGARBAGE 5
  40. #define WBDEVICE 6
  41. #define WBKICK 7
  42. #define WBAPPICON 8
  43.  
  44. struct OldDrawerData { 
  45.  struct NewWindow dd_NewWindow; 
  46.  LONG dd_CurrentX; 
  47.  LONG dd_CurrentY; 
  48. };
  49.  
  50. #define OLDDRAWERDATAFILESIZE (sizeof(struct OldDrawerData))
  51.  
  52. struct DrawerData {
  53.  struct NewWindow dd_NewWindow; 
  54.  LONG dd_CurrentX; 
  55.  LONG dd_CurrentY; 
  56.  ULONG dd_Flags; 
  57.  UWORD dd_ViewModes; 
  58. };
  59.  
  60. #define DRAWERDATAFILESIZE (sizeof(struct DrawerData))
  61.  
  62. struct DiskObject {
  63.  UWORD do_Magic; 
  64.  UWORD do_Version; 
  65.  struct Gadget do_Gadget; 
  66.  UBYTE do_Type;
  67.  char * do_DefaultTool;
  68.  char ** do_ToolTypes;
  69.  LONG do_CurrentX;
  70.  LONG do_CurrentY;
  71.  struct DrawerData * do_DrawerData;
  72.  char * do_ToolWindow; 
  73.  LONG do_StackSize; 
  74.  
  75. };
  76.  
  77. #define WB_DISKMAGIC 0xe310 
  78. #define WB_DISKVERSION 1 
  79. #define WB_DISKREVISION 1 
  80.  
  81. #define WB_DISKREVISIONMASK 255
  82.  
  83. struct FreeList {
  84.  WORD fl_NumFree;
  85.  struct List fl_MemList;
  86. };
  87.  
  88.  
  89.  
  90. #define MTYPE_PSTD 1 
  91. #define MTYPE_TOOLEXIT 2 
  92. #define MTYPE_DISKCHANGE 3 
  93. #define MTYPE_TIMER 4 
  94. #define MTYPE_CLOSEDOWN 5 
  95. #define MTYPE_IOPROC 6 
  96. #define MTYPE_APPWINDOW 7 
  97. #define MTYPE_APPICON 8 
  98. #define MTYPE_APPMENUITEM 9 
  99. #define MTYPE_COPYEXIT 10 
  100. #define MTYPE_ICONPUT 11 
  101.  
  102.  
  103. #define GADGBACKFILL 0x0001
  104.  
  105.  
  106. #define NO_ICON_POSITION (0x80000000)
  107.  
  108.  
  109. #define WORKBENCH_NAME "workbench.library"
  110.  
  111.  
  112. #define AM_VERSION 1
  113.  
  114. struct AppMessage {
  115.  struct Message am_Message; 
  116.  UWORD am_Type; 
  117.  ULONG am_UserData; 
  118.  ULONG am_ID; 
  119.  LONG am_NumArgs; 
  120.  struct WBArg *am_ArgList; 
  121.  UWORD am_Version; 
  122.  UWORD am_Class; 
  123.  WORD am_MouseX; 
  124.  WORD am_MouseY; 
  125.  ULONG am_Seconds; 
  126.  ULONG am_Micros; 
  127.  ULONG am_Reserved[8]; 
  128. };
  129.  
  130.  
  131. struct AppWindow { void *aw_PRIVATE; };
  132. struct AppIcon { void *ai_PRIVATE; };
  133. struct AppMenuItem { void *ami_PRIVATE; };
  134.  
  135. #endif 
  136.