home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / BC_DICE2.DMS / in.adf / INCLUDE / libraries / asl.h next >
Encoding:
C/C++ Source or Header  |  1995-01-10  |  3.3 KB  |  186 lines

  1. #ifndef LIBRARIES_ASL_H
  2. #define LIBRARIES_ASL_H 1
  3.  
  4. /*
  5. ** $Filename: libraries/asl.h $
  6. ** $Release: 2.04 Includes, V37.4 $
  7. ** $Revision: 36.5 $
  8. ** $Date: 91/11/08 $
  9. **
  10. ** ASL library name and useful definitions.
  11. **
  12. ** (C) Copyright 1989,1990 Charlie Heath
  13. ** (C) Copyright 1989-1991 Commodore-Amiga, Inc.
  14. ** All Rights Reserved
  15. */
  16.  
  17. #ifndef EXEC_TYPES_H
  18. #include <exec/types.h>
  19. #endif
  20.  
  21. #ifndef EXEC_LISTS_H
  22. #include <exec/lists.h>
  23. #endif
  24.  
  25. #ifndef EXEC_LIBRARIES_H
  26. #include <exec/libraries.h>
  27. #endif
  28.  
  29. #ifndef UTILITY_HOOKS_H
  30. #include <utility/hooks.h>
  31. #endif
  32.  
  33. #ifndef UTILITY_TAGITEM_H
  34. #include <utility/tagitem.h>
  35. #endif
  36.  
  37. #ifndef WBArg
  38. #include <workbench/startup.h>
  39. #endif
  40.  
  41. #ifndef GRAPHICS_TEXT_H
  42. #include <graphics/text.h>
  43. #endif
  44.  
  45.  
  46.  
  47. #define AslName "asl.library"
  48.  
  49.  
  50. struct FileRequester {
  51.  APTR rf_Reserved1;
  52.  BYTE *rf_File; 
  53.  BYTE *rf_Dir; 
  54.  CPTR rf_Reserved2;
  55.  UBYTE rf_Reserved3;
  56.  UBYTE rf_Reserved4;
  57.  APTR rf_Reserved5;
  58.  WORD rf_LeftEdge,rf_TopEdge; 
  59.  WORD rf_Width,rf_Height; 
  60.  WORD rf_Reserved6;
  61.  LONG rf_NumArgs; 
  62.  struct WBArg *rf_ArgList;
  63.  APTR rf_UserData; 
  64.  APTR rf_Reserved7;
  65.  APTR rf_Reserved8;
  66.  BYTE *rf_Pat; 
  67.  }; 
  68.  
  69.  
  70.  
  71.  
  72. #define FILB_DOWILDFUNC 7L 
  73.  
  74. #define FILB_DOMSGFUNC 6L 
  75.  
  76.  
  77.  
  78. #define FILB_SAVE 5L 
  79. #define FILB_NEWIDCMP 4L 
  80. #define FILB_MULTISELECT 3L 
  81.  
  82. #define FILB_PATGAD 0L 
  83.  
  84.  
  85. #define FILF_DOWILDFUNC (1L << FILB_DOWILDFUNC)
  86. #define FILF_DOMSGFUNC (1L << FILB_DOMSGFUNC)
  87.  
  88. #define FILF_SAVE (1L << FILB_SAVE)
  89. #define FILF_NEWIDCMP (1L << FILB_NEWIDCMP)
  90. #define FILF_MULTISELECT (1L << FILB_MULTISELECT)
  91. #define FILF_PATGAD (1L << FILB_PATGAD)
  92.  
  93.  
  94.  
  95. #define FIL1B_NOFILES 0L 
  96. #define FIL1B_MATCHDIRS 1L 
  97.  
  98. #define FIL1F_NOFILES (1L << FIL1B_NOFILES)
  99. #define FIL1F_MATCHDIRS (1L << FIL1B_MATCHDIRS)
  100.  
  101.  
  102.  
  103. struct FontRequester {
  104.  APTR fo_Reserved1[2];
  105.  struct TextAttr fo_Attr; 
  106.  UBYTE fo_FrontPen; 
  107.  UBYTE fo_BackPen;
  108.  UBYTE fo_DrawMode;
  109.  APTR fo_UserData;
  110.  };
  111.  
  112.  
  113.  
  114.  
  115.  
  116. #define FONB_FRONTCOLOR 0 
  117. #define FONB_BACKCOLOR 1 
  118. #define FONB_STYLES 2 
  119. #define FONB_DRAWMODE 3 
  120. #define FONB_FIXEDWIDTH 4 
  121. #define FONB_NEWIDCMP 5 
  122. #define FONB_DOMSGFUNC 6 
  123.  
  124.  
  125.  
  126. #define FONB_DOWILDFUNC 7 
  127.  
  128.  
  129. #define FONF_FRONTCOLOR (1L << FONB_FRONTCOLOR)
  130. #define FONF_BACKCOLOR (1L << FONB_BACKCOLOR)
  131. #define FONF_STYLES (1L << FONB_STYLES)
  132. #define FONF_DRAWMODE (1L << FONB_DRAWMODE)
  133. #define FONF_FIXEDWIDTH (1L << FONB_FIXEDWIDTH)
  134. #define FONF_NEWIDCMP (1L << FONB_NEWIDCMP)
  135. #define FONF_DOMSGFUNC (1L << FONB_DOMSGFUNC)
  136. #define FONF_DOWILDFUNC (1L << FONB_DOWILDFUNC)
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143. #define ASL_FileRequest 0
  144. #define ASL_FontRequest 1
  145.  
  146.  
  147.  
  148.  
  149.  
  150. #define ASL_Dummy (TAG_USER + 0x80000)
  151.  
  152. #define ASL_Hail ASL_Dummy+1 
  153. #define ASL_Window ASL_Dummy+2 
  154. #define ASL_LeftEdge ASL_Dummy+3 
  155. #define ASL_TopEdge ASL_Dummy+4 
  156. #define ASL_Width ASL_Dummy+5
  157. #define ASL_Height ASL_Dummy+6
  158. #define ASL_HookFunc ASL_Dummy+7 
  159.  
  160.  
  161. #define ASL_File ASL_Dummy+8 
  162. #define ASL_Dir ASL_Dummy+9 
  163.  
  164.  
  165. #define ASL_FontName ASL_Dummy+10 
  166. #define ASL_FontHeight ASL_Dummy+11 
  167. #define ASL_FontStyles ASL_Dummy+12 
  168. #define ASL_FontFlags ASL_Dummy+13 
  169. #define ASL_FrontPen ASL_Dummy+14 
  170. #define ASL_BackPen ASL_Dummy+15 
  171. #define ASL_MinHeight ASL_Dummy+16 
  172. #define ASL_MaxHeight ASL_Dummy+17 
  173.  
  174. #define ASL_OKText ASL_Dummy+18 
  175. #define ASL_CancelText ASL_Dummy+19 
  176. #define ASL_FuncFlags ASL_Dummy+20 
  177.  
  178. #define ASL_ModeList ASL_Dummy+21 
  179. #define ASL_ExtFlags1 ASL_Dummy+22 
  180.  
  181. #define ASL_Pattern ASL_FontName 
  182.  
  183.  
  184.  
  185. #endif
  186.