home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / dirs / gadgeted_438.lzh / GadgetED / Source / defs.h < prev    next >
C/C++ Source or Header  |  1991-01-17  |  3KB  |  117 lines

  1. /*----------------------------------------------------------------------*
  2.   defs.h version 2.0 -  © Copyright 1990 Jaba Development
  3.  
  4.   Author : Jan van den Baard
  5.   Purpose: headerfile for making a pre-copiled symbol file (Aztec)
  6.  *----------------------------------------------------------------------*/
  7. #include <exec/types.h>
  8. #include <exec/memory.h>
  9. #include <intuition/intuition.h>
  10. #include <intuition/intuitionbase.h>
  11. #include <libraries/dos.h>
  12. #include <libraries/dosextens.h>
  13. #include <workbench/workbench.h>
  14. #include <workbench/startup.h>
  15. #include <workbench/icon.h>
  16. #include <functions.h>
  17. #include <tool.h>               /* tool.library V7++ !!! */
  18.  
  19. #define AND     &&
  20. #define OR      ||
  21.  
  22. #define Alloc(c,s)    AllocItem(c,(ULONG)s,MEMF_PUBLIC|MEMF_CLEAR)
  23.  
  24. struct BitMapHeader
  25.         {
  26.          UWORD  w,h;
  27.          WORD   x,y;
  28.          UBYTE  nPlanes;
  29.          UBYTE  masking;
  30.          UBYTE  compression;
  31.          UBYTE  pad1;
  32.          UWORD  transparentColor;
  33.          UBYTE  xAspect, yAspect;
  34.          WORD   pageWidth, pageHeight;
  35.         };
  36.  
  37. struct FORMChunk
  38.         {
  39.          ULONG  fc_Type;
  40.          ULONG  fc_Length;
  41.          ULONG  fc_SubType;
  42.         };
  43.  
  44. struct IFFChunk
  45.         {
  46.          ULONG  ic_Type;
  47.          ULONG  ic_Length;
  48.         };
  49.  
  50. #define bpr(w)  (((w+15)>>4)<<1)
  51.  
  52. #define RENDER  0
  53. #define SELECT  1
  54. #define STDPRP  2
  55.  
  56. #define TXT_ADD     0
  57. #define TXT_MOVE    1
  58. #define TXT_MODIFY  2
  59. #define TXT_DELETE  3
  60.  
  61. #define TITLE ((UBYTE *)"GadgetEd V2.0 © Jaba Development")
  62.  
  63. #define TYPE   ((ULONG)'EGAD')
  64.  
  65. struct ge_prefs
  66.  {
  67.   BOOL      skip_zero_planes;
  68.   BOOL      auto_size;
  69.   BOOL      image_copy;
  70.  };
  71.  
  72. struct BinHeader
  73.  {
  74.   ULONG           FileType;
  75.   ULONG           NumGads;
  76.   ULONG           ScrDepth;
  77.   BOOL            ReqGads;
  78.   BOOL            WBScreen;
  79.   ULONG           NumTexts;
  80.   USHORT          Colors[32];
  81.  };
  82.  
  83. #define GADGETOFF       0x0001
  84. #define BORDERONLY      0x0002
  85. #define NOSIGNAL        0x0004
  86.  
  87. #define MAXLABEL        32
  88.  
  89. struct MyGadget
  90.  {
  91.   struct MyGadget   *Succ;
  92.   struct MyGadget   *Pred;
  93.   struct Gadget      Gadget;
  94.   USHORT             SpecialFlags;
  95.   UBYTE              GadgetLabel[MAXLABEL];
  96.  };
  97.  
  98. struct GadgetList
  99.  {
  100.   struct MyGadget   *Head;
  101.   struct MyGadget   *Tail;
  102.   struct MyGadget   *TailPred;
  103.  };
  104.  
  105. #define ESC         0x45
  106. #define F1          0x50
  107. #define F2          0x51
  108. #define F3          0x52
  109. #define F4          0x53
  110. #define F5          0x54
  111. #define F6          0x55
  112. #define F7          0x56
  113. #define F8          0x57
  114. #define F9          0x58
  115. #define F10         0x59
  116. #define HELP        0x5F
  117.