home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / libs / sphigs / sph_dos.lha / dos / srgp / srgp_sph.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-11-26  |  10.8 KB  |  245 lines

  1. /** PUBLIC CONSTANTS AND TYPES COMMON TO BOTH PACKAGES
  2. **/
  3.  
  4. /* implementation-specific constants */
  5. #define PATTERN_SPEC_SIZE    16
  6. #define MAX_PATTERN_INDEX      150
  7. #define MAX_CURSOR_INDEX    25
  8. #define MAX_FONT_INDEX          50
  9. #define MAX_CANVAS_COUNT       100
  10. #define MAX_STRING_SIZE        80
  11. #define MAX_POINTLIST_SIZE     100
  12.  
  13.  
  14. /*!*/
  15. /* EXTRA DATA TYPES */
  16. /*
  17. typedef unsigned char boolean;
  18. */
  19.  
  20. #define TRUE  1
  21. #define FALSE 0
  22.  
  23.  
  24.  
  25. /*!*/
  26. /* ATTRIBUTES */
  27.  
  28. /* fill style or pen style */
  29. #define SOLID                       0    /*FillSolid in X.h*/
  30. #define PIXMAP_PATTERN             1    /*FillTiled*/
  31. #define BITMAP_PATTERN_TRANSPARENT         2    /*FillStippled*/
  32. #define BITMAP_PATTERN_OPAQUE        3    /*FillOpaqueStippled*/
  33.  
  34. /* line style */
  35. /*    If you change any of these numbers, see attribute.c!!! */
  36. #define NUMBER_OF_LINE_STYLES        4
  37. #define CONTINUOUS            0
  38. #define DASHED                2
  39. #define DOTTED                4
  40. #define DOT_DASHED            7
  41.  
  42.  
  43. /* marker style */
  44. #define NUMBER_OF_MARKER_STYLES        3
  45. #define MARKER_CIRCLE            0
  46. #define MARKER_SQUARE            1
  47. #define MARKER_X            2
  48.  
  49.  
  50. /*!*/
  51. /* INPUT RELATED STUFF */
  52.  
  53. /* input device */
  54. #define NO_DEVICE        0
  55. #define TIMEOUT            NO_DEVICE
  56. #define KEYBOARD        1
  57. #define LOCATOR            2
  58.  
  59. /* input mode */
  60. #define INACTIVE        1
  61. #define SAMPLE            2
  62. #define EVENT            3
  63.  
  64. /* locator measure */
  65. #define LEFT_BUTTON   0
  66. #define MIDDLE_BUTTON 1
  67. #define RIGHT_BUTTON  2
  68. #define    LEFT_BUTTON_MASK   1
  69. #define    MIDDLE_BUTTON_MASK 2
  70. #define    RIGHT_BUTTON_MASK  4
  71. #define SHIFT   0
  72. #define CONTROL 1
  73. #define META    2
  74.  
  75.  
  76. /* keyboard processing mode */
  77. #define EDIT            1
  78. #define RAW            2
  79.  
  80. /* locator/pointer echo type */
  81. #define NO_ECHO            0
  82. #define CURSOR            1
  83. #define RUBBER_LINE        2
  84. #define RUBBER_RECT        3
  85.  
  86. /* button status */
  87. #define UP        0
  88. #define DOWN        1
  89.  
  90. /* time-out spec */
  91. #define INDEFINITE              -1
  92.  
  93.  
  94. /* conveniences */
  95. #define        NIL        0
  96.  
  97. /* explosions of geometric records */
  98. #define ExplodeRect(R)   R.bottom_left.x,R.bottom_left.y,R.top_right.x,R.top_right.y
  99. #define ExplodePt(P)     P.x,P.y
  100.  
  101.  
  102. /* Graphics Adaptor Definitions */
  103. #define ATI800x600   533   /* ATI VGAWonder                    */
  104. #define ATI640x480X  534   /*   640x480 256-color                    */
  105. #define ATI1024x768F 535   /*   1024x768 16-color                    */
  106. #define ATT          128   /* AT&T Std. Color & DEB Adaptors   */
  107. #define ATT640x400   128   /*   640x400 monochrome             */
  108. #define DEB640x200   129   /*   640x200 16-color               */
  109. #define DEB640x400   130   /*   640x400 16-color               */
  110. #define CGA          6     /* IBM Color Graphics Adaptor (CGA) */
  111. #define CGA320x200   4     /*   320x200 4-color                */
  112. #define CGA640x200   6     /*   640x200 2-color                */
  113. #define COR             34 /* Cornerstone                      */
  114. #define COR1600x1280V   34 /*   Vista 1600 1600x1280 mono      */
  115. #define COR1600x1280VA  37 /*   Vista 1600 1600x1280 no em, 2 mon */
  116. #define COR1600x1280DP  35 /*   DualPage   1600x1280 mono      */
  117. #define COR1600x1280DPA 36 /*   DualPage 1600x1280, no JP1     */
  118. #define COR1600x1280MCA 39 /* DualPage 1600x1280 Micro Channel */
  119. #define EGA          512   /* IBM Enhanced Graphics Adaptor    */
  120. #define EGAMono      512   /*   640x350 monochrome             */
  121. #define EGA320x200   544   /*   320x200 16-color               */
  122. #define EGA640x200   528   /*   640x200 16-color               */
  123. #define EGA640x350   560   /*   640x350 16-color (128k EGA)    */
  124. #define MGA640x350   561   /*   640x350 2-color                */
  125. #define EGA640x480   562   /*   640x480 16-color  (VGA)        */
  126. #define MGA640x480   563   /*   640x480 2-color   (MCGA)       */
  127. #define VGA320x200   564   /*   320x200 256-color (PS2 VGA)    */
  128. #define EGA640x350S  565   /*   640x350 16-color (no bios-EGA) */
  129. #define VGA640x350S  566   /*   640x350 16-color (no bios-VGA) */ 
  130. #define VGA640x480S  567   /*   640x480 16-color (no bios-VGA) */   
  131. #define EGA640x350MP 131   /* IBM EGA, in multi planar setting */    
  132. #define JRT320x200   569   /*   320x200 16-color IBM PCjr & Tandy 1000 EX */
  133. #define EVA          516   /* Tseng Labs EVA/480               */
  134. #define EVA640x480   516   /*   640x480 16-color               */
  135. #define EVR          1024  /* Everex Graphics Edge Adaptor     */
  136. #define EVR640x200   1024  /*   640x200 16-color               */
  137. #define EVR640x400   1025  /*   640x400 4-color                */
  138. #define EVX800x600   532   /* Everex EVGA EV-673 Adaptor       */
  139. #define FKY1120x750  2200  /* Fujitsu FMR 70 16 color          */    
  140. #define FKY640x400   2201  /* Fujitsu FMR 60 16 color          */
  141. #define FKY1120x750m 2202  /* Fujitsu FMR 70 monochrome        */    
  142. #define GEN          529   /* Genoa SuperEGA HiRes             */
  143. #define GEN640x480   529   /*   640x480 16-color               */
  144. #define GEN800x600   518   /*   800x600 16-color               */
  145. #define GEN1024x768  519   /* Genoa SuperVGA HiRes-10 16-color */ 
  146. #define GEN640x350X  530   /*   640x350 256-color              */  
  147. #define GEN640x480X  531   /*   640x480 256-color              */  
  148. #define HER          8     /* Hercules/AST Monochrome Adaptor  */
  149. #define HER720x348   8     /*   720x348 monochrome             */
  150. #define MDS          2     /* MDS Genius Graphics Display      */
  151. #define MDS736x1008  2     /*   736x1008 monochrome            */
  152. #define NNR512x512   4096  /* Number Nine 512x485 256-color    */
  153. #define NNR1024x768  4097  /*    2048x4 @ 1024x768x16          */
  154. #define NSI          514   /* NSI Logic Smart EGA/Plus         */
  155. #define NSI800x600   514   /*   800x600 16-color               */
  156. #define OCD800x600   571   /* Orchid Designer VGA 800x600x16   */ 
  157. #define OCD1024x768  572   /*   1024x768 16 color              */
  158. #define OCD640x350X  573   /*   640x350 256 color              */   
  159. #define OCD640x480X  574   /*   640x480 256 color              */   
  160. #define PAR          517   /* Paradise AutoSwitch EGA/480      */
  161. #define PAR640x480   517   /*   640x480 16-color               */
  162. #define PAR800x600   579   /* Paradise OEM 8/16 800x600 16-color */
  163. #define SIG          32    /* Sigma Design                     */
  164. #define SIG640x400   32    /*   640x400 16-color, Color-400    */
  165. #define SIG1664x1200 33    /*   LaserView 1664x1200 monochome  */
  166. #define SIG1664x1200A 38   /*   1664x1200 @0A000               */
  167. #define SIG1664x1200MCA 41 /*   1664x1200 Micro channel        */
  168. #define STB          256   /* STB GraphicsPlus-II Adaptor      */
  169. #define STB640x352   256   /*   640x352 monochrome             */
  170. #define STB320x200   257   /*   320x200 16-color               */
  171. #define STB640x200   258   /*   640x200 4-color                */
  172. #define STB640x400   384   /*   640x400 monochrome             */
  173. #define STB800x600   571   /* STB VGA Extra/EM 800x600x16      */       
  174. #define STB1024x768  572   /*   1024x768 16 color              */       
  175. #define STB640x350X  573   /*   640x350 256 color              */ 
  176. #define STB640x480X  574   /*   640x480 256 color              */ 
  177. #define TEC          16    /* Tecmar Graphics-Master Adaptor   */
  178. #define TEC720x352   16    /*   720x352 monochrome             */
  179. #define TEC720x704   17    /*   720x704 monochrome             */
  180. #define TEC320x200   18    /*   320x200 16-color               */
  181. #define TEC640x200   19    /*   640x200 16-color               */
  182. #define TEC640x400   20    /*   640x400 16-color               */
  183. #define TEC640x350X  575   /* Tecmar VGA/AD, 640x350 256-color */
  184. #define TEC640x480X  576   /*   640x480 256-color              */
  185. #define TEC800x600   577   /*   800x600 16-color               */
  186. #define TEC1024x768  578   /*   1024x768 16-color              */ 
  187. #define TOS          16384 /* Toshiba 3100                     */
  188. #define TOS640x400   16384 /*   640x400 monochrome             */
  189. #define TARG512x482  8192  /* TrueVision Targa M8 512x482 256-color */
  190. #define TTS          2048  /* IBM 3270 PC                      */
  191. #define TTS720x350   2048  /*   720x350 monochrome             */
  192. #define TTS360x350   2049  /*   360x350 4-color                */
  193. #define VESA800x600  526   /* V.E.S.A. std 800x600 16-color    */
  194. #define VGA          520   /* Video-7 VEGA Deluxe              */
  195. #define VGA640x480   520   /*   640x480 16-color               */
  196. #define VGA752x410   521   /*   752x410 16-color               */
  197. #define VGA720x540   522   /* V7 VGA  720x540 16-color         */
  198. #define VGA800x600   523   /*   800x600 16-color  (VGA)        */
  199. #define VGA640x480X  525   /* V7 640x480 256-color             */
  200. #define VGA1024x768x2 527  /*   1024x768 2-color               */
  201. #define VGA1024x768  536   /* VGA 1024 i 1024x768 16-color     */
  202. #define WYS          64    /* Wyse WY-700 Graphics Display     */
  203. #define WYS1280x800  64    /*   1280x800 monochrome            */
  204. #define WYS1280x400  65    /*   1280x400 monochrome            */
  205. #define WYS640x400   66    /*   640x400 monochrome             */
  206. #define MEC1120x750  610   /* NEC PC 98XA monochrome           */
  207. #define MEC640x400   611   /* NEC PC 98VM monochrome           */
  208. #define NEC1120x750  626   /* NEC PC 98XA 16-color             */
  209. #define NEC640x400   627   /* NEC PC 98VM 16-color             */
  210.  
  211. /* Defines for National Design Genesis-1024/1280 */
  212. #define NDI640x480x4D   0x4140   /* 640x480   16-color, digitl */
  213. #define NDI640x480x4A   0x4141   /* 640x480   16-color, analog */
  214. #define NDI1024x768x4J  0x4148   /* 1024x768  16-color, JVC    */
  215. #define NDI1024x768x4M  0x4149   /* 1024x768  16-color, Mitsu. */
  216. #define NDI1280x1024x4J 0x414A   /* 1280x1024 16-color, JVC    */
  217. #define NDI960x720x4N   0x414B   /* 960x720   16-color, NEC XL */
  218.  
  219. /* Defines for RenaissanceGRX Rendition-II       */
  220. #define GRX640x480x4A   0x4240   /* 640x480   16-color, analog */
  221. #define GRX800x600x4A   0x4242   /* 800x600   16-color, analog */
  222. #define GRX1024x768x4A  0x4246   /* 1024x768  16-color, analog */
  223. #define GRX640x480x8A   0x4248   /* 640x480  256-color, analog */
  224. #define GRX800x600x8A   0x424A   /* 800x600  256-color, analog */
  225. #define GRX1024x768x8A  0x424C   /* 1024x768 256-color, analog */
  226.  
  227. /* Defines for Hewlett-Packard HP82328 IGC       */
  228. #define HP1024x768x4    0x664A /* 1024x768  16-color         */
  229.  
  230. /* Defines for IBM 8514A (and compatibles)       */
  231. #define EFF640x480x4    0x7000 /*  640x480   16-color          */
  232. #define EFF640x480x8    0x7001 /*  640x480  256-color          */
  233. #define EFF1024x768x4I  0x7040 /* 1024x768   16-color, intlacd */
  234. #define EFF1024x768x4N  0x7041 /* 1024x768   16-color, non-inl */
  235. #define EFF1024x768x8I  0x7042 /* 1024x768  256-color, intlacd */
  236. #define EFF1024x768x8N  0x7043 /* 1024x768  256-color, non-inl */
  237. #define EFF1280x1024x4I 0x7080 /* 1280x1024  16-color, intlacd */
  238. #define EFF1280x1024x4N 0x7081 /* 1280x1024  16-color, non-inl */
  239. #define EFF1280x1024x8I 0x7082 /* 1280x1024 256-color, intlacd */
  240. #define EFF1280x1024x8N 0x7083 /* 1280x1024 256-color, non-inl */
  241.  
  242. #define CUST_LIN   CGA640x200  /* User defined linear memory */
  243. #define CUST_BS    SIG640x400  /* User defined Bank select   */
  244. #define CUST_EGA   EGA640x350  /* User defined EGA Superset  */
  245.