GRCONST.LST 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511
  1. Listing:
  2. 1 (******************************************************************************)
  3. 2 (* GRCONST.DEF - MetaWINDOW 'Constant' and 'Type' Definitions *)
  4. 3 (* *)
  5. 4 (* Transcribed from GRCONST.H by Metagraphics Software Corporation *)
  6. 5 (* *)
  7. 6 (* PSW 06/28/91 08:30am *)
  8. 7 (******************************************************************************)
  9. 8 (*# module(implementation=>off, init_code=>off) *)
  10. 9
  11. 10 DEFINITION MODULE GrConst;
  12. 11 (*
  13. 12 * Graphix
  14. 13 * Release 3.7
  15. 14 * (c) Copyright 1986-1992 PMI
  16. 15 * Green Bay, Wisconsin
  17. 16 * (414) 468-6040
  18. 17 * All rights reserved
  19. 18 *
  20. 19 *)
  21. 20
  22. 21 (**************************** Constant Definitions ****************************)
  23. 22
  24. 23 CONST
  25. 24 MS_DOS = 1; (* Operating System: Defaults to DOS *)
  26. 25
  27. 26 MW_Ver3 = TRUE; (* Generational compatibility constants. *)
  28. 27 MW_Ver4 = FALSE;
  29. 28
  30. 29 (*** PENMODE & TEXTMODE RasterOp's ***)
  31. 30
  32. 31 zREPz = 0;
  33. 32 zORz = 1;
  34. 33 zXORz = 2;
  35. 34 zNANDz = 3;
  36. 35 zNREPz = 4;
  37. 36 zNORz = 5;
  38. 37 zNXORz = 6;
  39. 38 zANDz = 7;
  40. 39
  41. 40 (*** Graphics Adaptor Definitions ***)
  42. 41 ATI800x600 = 533; (* ATI VGAWonder *)
  43. 42 ATI640x480X = 534; (* 640x480 256-color *)
  44. 43 ATI1024x768F = 535; (* 1024x768 16-color *)
  45. 44 ATT = 128; (* AT&T Std. Color & DEB Adaptors *)
  46. 45 ATT640x400 = 128; (* 640x400 monochrome *)
  47. 46 DEB640x200 = 129; (* 640x200 16-color *)
  48. 47 DEB640x400 = 130; (* 640x400 16-color *)
  49. 48 CGA = 6; (* IBM Color Graphics Adaptor (CGA) *)
  50. 49 CGA320x200 = 4; (* 320x200 4-color *)
  51. 50 CGA640x200 = 6; (* 640x200 2-color *)
  52. 51 COR = 34; (* Cornerstone *)
  53. 52 COR1600x1280V = 34; (* Vista 1600 1600x1280 mono *)
  54. 53 COR1600x1280VA = 37; (* Vista 1600 1600x1280 no em, 2 mon *)
  55. 54 COR1600x1280DP = 35; (* DualPage 1600x1280 mono *)
  56. 55 COR1600x1280DPA = 36; (* DualPage 1600x1280, no JP1 *)
  57. 56 COR1600x1280MCA = 39; (* DualPage 1600x1280 Micro Channel *)
  58. 57 SP768x1008 = 42; (* SinglePage 768x1008 mono *)
  59. 58 SP768x1008A = 43; (* SinglePage 768x1008 no JP1 *)
  60. 59 COR1280x960 = 44; (* PC 1280 1280x960, mono *)
  61. 60 COR1280x960A = 45; (* PC 1280 1280x960, mono *)
  62. 61 COR1280x1024 = 46; (* PC 1280 1280x1024, mono *)
  63. 62 COR1280x1024A = 47; (* PC 1280 1280x1024, mono *)
  64. 63 CT640x480X = 537; (* Chips and Tech. 256 color *)
  65. 64 CT1024x768 = 538; (* 1024x768, 16 color *)
  66. 65 EGA = 512; (* IBM Enhanced Graphics Adaptor *)
  67. 66 EGAMono = 512; (* 640x350 monochrome *)
  68. 67 EGA320x200 = 544; (* 320x200 16-color *)
  69. 68 EGA640x200 = 528; (* 640x200 16-color *)
  70. 69 EGA640x350 = 560; (* 640x350 16-color (128k EGA) *)
  71. 70 MGA640x350 = 561; (* 640x350 2-color *)
  72. 71 EGA640x480 = 562; (* 640x480 16-color (VGA) *)
  73. 72 MGA640x480 = 563; (* 640x480 2-color (MCGA) *)
  74. 73 VGA320x200 = 564; (* 320x200 256-color (PS2 VGA) *)
  75. 74 EGA640x350S = 565; (* 640x350 16-color (no bios-EGA) *)
  76. 75 VGA640x350S = 566; (* 640x350 16-color (no bios-VGA) *)
  77. 76 VGA640x480S = 567; (* 640x480 16-color (no bios-VGA) *)
  78. 77 EGA640x350MP = 131; (* IBM EGA, in multi planar setting *)
  79. 78 JRT320x200 = 569; (* 320x200 16-color IBM PCjr & Tandy 1000 *)
  80. 79 EVA = 516; (* Tseng Labs EVA/480 *)
  81. 80 EVA640x480 = 516; (* 640x480 16-color *)
  82. 81 EVR = 1024; (* Everex Graphics Edge Adaptor *)
  83. 82 EVR640x200 = 1024; (* 640x200 16-color *)
  84. 83 EVR640x400 = 1025; (* 640x400 4-color *)
  85. 84 EVX800x600 = 532; (* Everex EVGA EV-673 Adaptor *)
  86. 85 EXPL320x200 = 140; (* HeadStart Explorer 320x200 16-color *)
  87. 86 FKY1120x750 = 2200; (* Fujitsu FMR 70 16 color *)
  88. 87 FKY640x400 = 2201; (* Fujitsu FMR 60 16 color *)
  89. 88 FKY1120x750m = 2202; (* Fujitsu FMR 70 monochrome *)
  90. 89 GEN = 529; (* Genoa SuperEGA HiRes *)
  91. 90 GEN640x480 = 529; (* 640x480 16-color *)
  92. 91 GEN800x600 = 518; (* 800x600 16-color *)
  93. 92 GEN1024x768 = 519; (* Genoa SuperVGA HiRes-10 16-color *)
  94. 93 GEN640x350X = 530; (* 640x350 256-color *)
  95. 94 GEN640x480X = 531; (* 640x480 256-color *)
  96. 95 GEN800x600V = 539; (* 800x600 16-color *)
  97. 96 (* Genoa SuperVGA (6100/6300/6400) *)
  98. 97 (* GEN640x350S = 582; * 640x350 256-color *)
  99. 98 GEN640x480S = 583; (* 640x480 256-color *)
  100. 99 GEN1024x768S = 584; (* 1024x768 16-color *)
  101. 100 HER = 8; (* Hercules/AST Monochrome Adaptor *)
  102. 101 HER720x348 = 8; (* 720x348 monochrome *)
  103. 102 MDS = 2; (* MDS Genius Graphics Display *)
  104. 103 MDS736x1008 = 2; (* 736x1008 monochrome *)
  105. 104 NNR512x512 = 4096; (* Number Nine 512x485 256-color *)
  106. 105 NNR1024x768 = 4097; (* 2048x4 @ 1024x768x16 *)
  107. 106 NSI = 514; (* NSI Logic Smart EGA/Plus *)
  108. 107 NSI800x600 = 514; (* 800x600 16-color *)
  109. 108 OAK800x600 = 585; (* OAK OTI-067 chip set *)
  110. 109 OAK1024x768 = 586; (* 1024x768 16 color *)
  111. 110 OAK640x480X = 587; (* 640x480 256 color *)
  112. 111 OCD800x600 = 571; (* Orchid Designer VGA 800x600x16 *)
  113. 112 OCD1024x768 = 572; (* 1024x768 16 color *)
  114. 113 OCD640x350X = 573; (* 640x350 256 color *)
  115. 114 OCD640x480X = 574; (* 640x480 256 color *)
  116. 115 PAR = 517; (* Paradise AutoSwitch EGA/480 *)
  117. 116 PAR640x480 = 517; (* 640x480 16-color *)
  118. 117 PAR800x600 = 579; (* Paradise 800x600 16-color *)
  119. 118 PAR1024x768 = 580; (* 1024x768 16-color *)
  120. 119 PAR640x480x = 581; (* 640x480 256-color *)
  121. 120 SIG = 32; (* Sigma Design *)
  122. 121 SIG640x400 = 32; (* 640x400 16-color, Color-400 *)
  123. 122 SIG1664x1200 = 33; (* LaserView 1664x1200 monochome *)
  124. 123 SIG1664x1200A = 38; (* 1664x1200 @0A000 *)
  125. 124 SIG1664x1200MCA = 41; (* 1664x1200 Micro channel *)
  126. 125 STB = 256; (* STB GraphicsPlus-II Adaptor *)
  127. 126 STB640x352 = 256; (* 640x352 monochrome *)
  128. 127 STB320x200 = 257; (* 320x200 16-color *)
  129. 128 STB640x200 = 258; (* 640x200 4-color *)
  130. 129 STB640x400 = 384; (* 640x400 monochrome *)
  131. 130 STB800x600 = 571; (* STB VGA Extra/EM 800x600x16 *)
  132. 131 STB1024x768 = 572; (* 1024x768 16 color *)
  133. 132 STB640x350X = 573; (* 640x350 256 color *)
  134. 133 STB640x480X = 574; (* 640x480 256 color *)
  135. 134 TEC = 16; (* Tecmar Graphics-Master Adaptor *)
  136. 135 TEC720x352 = 16; (* 720x352 monochrome *)
  137. 136 TEC720x704 = 17; (* 720x704 monochrome *)
  138. 137 TEC320x200 = 18; (* 320x200 16-color *)
  139. 138 TEC640x200 = 19; (* 640x200 16-color *)
  140. 139 TEC640x400 = 20; (* 640x400 16-color *)
  141. 140 TEC640x350X = 575; (* Tecmar VGA/AD, 640x350 256-color *)
  142. 141 TEC640x480X = 576; (* 640x480 256-color *)
  143. 142 TEC800x600 = 577; (* 800x600 16-color *)
  144. 143 TEC1024x768 = 578; (* 1024x768 16-color *)
  145. 144 TOS = 16384; (* Toshiba 3100 *)
  146. 145 TOS640x400 = 16384; (* 640x400 monochrome *)
  147. 146 TRI800x600 = 588; (* Trident Impact SuperVGA, 16 color *)
  148. 147 TRI1024x768 = 589; (* 1024x768x16 color *)
  149. 148 TRI640x480x = 590; (* 640x480x256 color *)
  150. 149 TRI800x600x = 591; (* 800x600x256 color *)
  151. 150 TRI1024x768x = 592; (* 1024x768x256 color *)
  152. 151 TARG512x482 = 8192; (* TrueVision Targa M8 512x482 256-color *)
  153. 152 (* Tseng Labs 4000 chip set *)
  154. 153 (* TS41024x768 = 540 This chip does not work in 128k flat mode *)
  155. 154 TS4640x350x = 541; (* 640x350x256 *)
  156. 155 TS4640x480x = 542; (* 640x480x256 *)
  157. 156 TS4800x600x = 543; (* 800x600x256 *)
  158. 157 TS41024x768x = 545; (* 1024x768x256 *)
  159. 158 TTS = 2048; (* IBM 3270 PC *)
  160. 159 TTS720x350 = 2048; (* 720x350 monochrome *)
  161. 160 TTS360x350 = 2049; (* 360x350 4-color *)
  162. 161 VESA800x600 = 526; (* V.E.S.A. std 800x600 16-color *)
  163. 162 VGA = 520; (* Video-7 VEGA Deluxe *)
  164. 163 VGA640x480 = 520; (* 640x480 16-color *)
  165. 164 VGA752x410 = 521; (* 752x410 16-color *)
  166. 165 VGA720x540 = 522; (* V7 VGA 720x540 16-color *)
  167. 166 VGA800x600 = 523; (* 800x600 16-color (VGA) *)
  168. 167 VGA640x480X = 525; (* V7 640x480 256-color *)
  169. 168 VGA1024x768x2 = 527; (* 1024x768 2-color *)
  170. 169 VGA1024x768 = 536; (* VGA 1024 i 1024x768 16-color *)
  171. 170 WYS = 64; (* Wyse WY-700 Graphics Display *)
  172. 171 WYS1280x800 = 64; (* 1280x800 monochrome *)
  173. 172 WYS1280x400 = 65; (* 1280x400 monochrome *)
  174. 173 WYS640x400 = 66; (* 640x400 monochrome *)
  175. 174 MEC1120x750 = 610; (* NEC PC 98XA monochrome *)
  176. 175 MEC640x400 = 611; (* NEC PC 98VM monochrome *)
  177. 176 NEC1120x750 = 626; (* NEC PC 98XA 16-color *)
  178. 177 NEC640x400 = 627; (* NEC PC 98VM 16-color *)
  179. 178
  180. 179 (* Defines for National Design Genesis-1024/1280 *)
  181. 180 NDI640x480x4D = 4140H; (* 640x480 16-color, digitl *)
  182. 181 NDI640x480x4A = 4141H; (* 640x480 16-color, analog *)
  183. 182 NDI1024x768x4J = 4148H; (* 1024x768 16-color, JVC *)
  184. 183 NDI1024x768x4M = 4149H; (* 1024x768 16-color, Mitsu. *)
  185. 184 NDI1280x1024x4J = 414AH; (* 1280x1024 16-color, JVC *)
  186. 185 NDI960x720x4N = 414BH; (* 960x720 16-color, NEC XL *)
  187. 186
  188. 187 (* Defines for RenaissanceGRX Rendition-II *)
  189. 188 GRX640x480x4A = 4240H; (* 640x480 16-color, analog *)
  190. 189 GRX800x600x4A = 4242H; (* 800x600 16-color, analog *)
  191. 190 GRX1024x768x4A = 4246H; (* 1024x768 16-color, analog *)
  192. 191 GRX640x480x8A = 4248H; (* 640x480 256-color, analog *)
  193. 192 GRX800x600x8A = 424AH; (* 800x600 256-color, analog *)
  194. 193 GRX1024x768x8A = 424CH; (* 1024x768 256-color, analog *)
  195. 194
  196. 195 (* Defines for Hewlett-Packard HP82328 IGC *)
  197. 196 HP1024x768x4 = 664AH; (* 1024x768 16-color *)
  198. 197
  199. 198 (* Defines for IBM 8514A (and compatibles) *)
  200. 199 EFF640x480x4 = 7000H; (* 640x480 16-color *)
  201. 200 EFF640x480x8 = 7001H; (* 640x480 256-color *)
  202. 201 EFF1024x768x4I = 7040H; (* 1024x768 16-color, intlacd *)
  203. 202 EFF1024x768x4N = 7041H; (* 1024x768 16-color, non-inl *)
  204. 203 EFF1024x768x8I = 7042H; (* 1024x768 256-color, intlacd *)
  205. 204 EFF1024x768x8N = 7043H; (* 1024x768 256-color, non-inl *)
  206. 205 EFF1280x1024x4I = 7080H; (* 1280x1024 16-color, intlacd *)
  207. 206 EFF1280x1024x4N = 7081H; (* 1280x1024 16-color, non-inl *)
  208. 207 EFF1280x1024x8I = 7082H; (* 1280x1024 256-color, intlacd *)
  209. 208 EFF1280x1024x8N = 7083H; (* 1280x1024 256-color, non-inl *)
  210. 209
  211. 210 CUST_LIN = CGA640x200; (* User defined linear memory *)
  212. ***** ^ not supported yet
  213. 211 CUST_BS = SIG640x400; (* User defined Bank select *)
  214. ***** ^ not supported yet
  215. 212 CUST_EGA = EGA640x350; (* User defined EGA Superset *)
  216. ***** ^ not supported yet
  217. 213
  218. 214 (*** HardCopy Constant definitions. ***)
  219. 215 HC_ROT = 01H; (* When set, rotate pic 90 CCW *)
  220. 216 HC_XL = 08H; (* When set, disables default background xlate *)
  221. 217 HC_ASC = 10H; (* When set, emits ascii length, instead of hex *)
  222. 218 (* Typically used for HP LaserJet printers *)
  223. 219
  224. 220 (*** Mouse Definitions ***)
  225. 221 COM1 = 1; (* Mouse Systems mouse, COM1 *)
  226. 222 COM2 = 2; (* Mouse Systems mouse, COM2 *)
  227. 223 (* MsMouse = 16; Microsoft Bus Mouse - obselete *)
  228. 224 MsCOM1 = 17; (* Microsoft Serial Mouse, COM1 *)
  229. 225 MsCOM2 = 18; (* Microsoft Serial Mouse, COM2 *)
  230. 226 MsDriver = 32; (* Microsoft Mouse driver *)
  231. 227 FKYMsDriver = 128; (* FKY Microsoft Mouse driver, uses int 99*)
  232. 228 swRight = 1;
  233. 229 swMiddle = 2; (* (not on 2 button mice) *)
  234. 230 swLeft = 4;
  235. 231 swAll = 7;
  236. 232
  237. 233 Black = 0; (* all bits OFF *)
  238. 234 White = -1; (* all bits ON *)
  239. 235 TextPg0 = 0;
  240. 236 GrafPg0 = 256;
  241. 237 GrafPg1 = 257;
  242. 238 ScrnXmin = 0;
  243. 239 ScrnYmin = 0;
  244. 240
  245. 241 cNormal = 0; (* TEXTFACE *)
  246. 242 cBold = 1;
  247. 243 cItalic = 2;
  248. 244 cUnderline = 4;
  249. 245 cStrikeout = 8;
  250. 246 cMirrorX = 32;
  251. 247 cMirrorY = 64;
  252. 248 cProportional = 128;
  253. 249
  254. 250 alignLeft = 0; (* TEXTALIGN - Horizontal *)
  255. 251 alignCenter = 1;
  256. 252 alignRight = 2;
  257. 253
  258. 254 alignBaseline = 0; (* TEXTALIGN - Vertical *)
  259. 255 alignBottom = 1;
  260. 256 alignMiddle = 2;
  261. 257 alignTop = 3;
  262. 258
  263. 259 pathRight = 0; (* TEXTPATH definitions *)
  264. 260 pathUp = 900;
  265. 261 pathLeft = 1800;
  266. 262 pathDown = 2700;
  267. 263
  268. 264 capFlat = 0; (* PENCAP definitions *)
  269. 265 capRound = 1;
  270. 266 capSquare = 2;
  271. 267
  272. 268 joinRound = 0; (* PENJOIN definitions *)
  273. 269 joinBevel = 1;
  274. 270 joinMiter = 2;
  275. 271
  276. 272
  277. 273 (*** TYPE Definitions. ***)
  278. 274
  279. 275 TYPE
  280. 276
  281. 277 image = BYTE;
  282. ***** ^ undeclared identifier
  283. 278
  284. 279 point = RECORD (* "Point" structure type *)
  285. 280 X, (* X coordinate *)
  286. 281 Y: INTEGER (* Y coordinates *)
  287. 282 END;
  288. ***** ^ not supported yet
  289. 283
  290. 284 adsPoint = POINTER TO point;
  291. ***** ^ not supported yet
  292. 285
  293. 286 rect = RECORD (* "Rectangle" structure type *)
  294. 287 Xmin, (* minimum X *)
  295. 288 Ymin, (* minimum Y *)
  296. 289 Xmax, (* maximum X *)
  297. 290 Ymax: INTEGER (* maximum Y *)
  298. 291 END;
  299. ***** ^ not supported yet
  300. 292
  301. 293 polyHead = RECORD (* Polygon "header" structure *)
  302. 294 polyBgn, (* beginning index *)
  303. 295 polyEnd: CARDINAL; (* ending index *)
  304. 296 polyRect: rect; (* boundry limits *)
  305. 297 END;
  306. ***** ^ not supported yet
  307. 298
  308. 299 adsPolyHead = POINTER TO polyHead;
  309. ***** ^ not supported yet
  310. 300
  311. 301 (*%T MW_Ver3 *)
  312. 302 event = RECORD (* Event record structure *)
  313. 303 ASCII: CHAR; (* ASCII character code *)
  314. 304 ScanCode: BYTE; (* Keyboard scan code *)
  315. ***** ^ undeclared identifier
  316. 305 State: CARDINAL; (* Keyboard & mouse switches *)
  317. 306 CursorX, (* Cursor X position *)
  318. 307 CursorY, (* Cursor Y position *)
  319. 308 Time: INTEGER; (* System time of event *)
  320. 309 evntData: LONGINT; (* User defined 32 bit item *)
  321. 310 END;
  322. ***** ^ not supported yet
  323. 311 (*%E MW_Ver3 *)
  324. 312
  325. 313 (*%T MW_Ver4 *)
  326. 314 event = RECORD (* Event record structure *)
  327. ***** ^ duplicate identifier
  328. 315 evntASCII: CHAR; (* ASCII character code *)
  329. 316 evntScanCode: BYTE; (* Keyboard scan code *)
  330. ***** ^ undeclared identifier
  331. 317 evntState: CARDINAL; (* Keyboard & mouse switches *)
  332. 318 evntCursorX, (* Cursor X position *)
  333. 319 evntCursorY, (* Cursor Y position *)
  334. 320 evntTime: INTEGER; (* System time of event *)
  335. 321 evntData: LONGINT; (* User defined 32 bit item *)
  336. 322 END;
  337. ***** ^ not supported yet
  338. 323 (*%E MW_Ver4 *)
  339. 324
  340. 325 cursor = RECORD (* Cursor Image definition *)
  341. 326 curWidth, (* must be 16 *)
  342. 327 curHeight, (* must be 16 *)
  343. 328 curAlign, (* must be 0 *)
  344. 329 curRowBytes: CARDINAL; (* must be 2 *)
  345. 330 curBits, (* must be 1 *)
  346. 331 curPlanes: SHORTCARD; (* must be 1 *)
  347. 332 curData: ARRAY [0..31] OF BYTE; (* cursor data bytes *)
  348. ***** ^ not supported yet
  349. ***** ^ undeclared identifier
  350. 333 END;
  351. ***** ^ not supported yet
  352. 334
  353. 335 patRcd = RECORD (* Pattern Image definition *)
  354. 336 patWidth, (* must be 8 *)
  355. 337 patHeight, (* must be 8 *)
  356. 338 patAlign, (* must be zero *)
  357. 339 patRowBytes: CARDINAL; (* must be equal to patBits *)
  358. 340 patBits, (* value of 1,2,4 or 8 *)
  359. 341 patPlanes: SHORTCARD; (* value of 1 thru 32 *)
  360. 342 patData: ARRAY[0..31] OF BYTE;(* pattern data bytes *)
  361. ***** ^ not supported yet
  362. ***** ^ undeclared identifier
  363. 343 END;
  364. ***** ^ not supported yet
  365. 344
  366. 345 penState = RECORD (* Pen State record structure *)
  367. 346 psBkColor, (* Background color *)
  368. 347 psPnColor: LONGINT; (* Pen color *)
  369. 348 psPnLoc, (* Pen location *)
  370. 349 psPnSize: point; (* Pen size *)
  371. 350 psPnMode, (* Pen mode (rasterOp) *)
  372. 351 psPnPat, (* Pen pattern index *)
  373. 352 psPnCap, (* Pen end-cap style *)
  374. 353 psPnJoin, (* Line join style *)
  375. 354 psPnDash, (* Line dash style *)
  376. 355 psPnOffset, (* Dash starting offset *)
  377. 356 psPnLevel: CARDINAL; (* Pen visibility level *)
  378. 357 END;
  379. ***** ^ not supported yet
  380. 358
  381. 359 dirRec = RECORD (* FILEQUERY - directory record *)
  382. 360 reserved: ARRAY[0..20] OF BYTE; (* (DOS reserved) *)
  383. ***** ^ not supported yet
  384. ***** ^ undeclared identifier
  385. 361 fileAttr: BYTE; (* File attribute *)
  386. ***** ^ undeclared identifier
  387. 362 fileTime: CARDINAL; (* File create time *)
  388. 363 fileDate: CARDINAL; (* File create date *)
  389. 364 fileSize: LONGCARD; (* File size (bytes) *)
  390. ***** ^ undeclared identifier
  391. 365 fileName: ARRAY[0..13] OF CHAR; (* "FILENAME.EXT\0" *)
  392. ***** ^ not supported yet
  393. ***** ^ not supported yet
  394. 366 END;
  395. ***** ^ not supported yet
  396. 367
  397. 368 imageHeader = RECORD (* Image Header record structure *)
  398. 369 imWidth, (* Pixel width (X) *)
  399. 370 imHeight, (* Pixel height (Y) *)
  400. 371 imAlign, (* Image alignment *)
  401. 372 imRowBytes:CARDINAL; (* Bytes per row *)
  402. 373 imBits, (* Bits per pixel *)
  403. 374 imPlanes: SHORTCARD; (* Planes per pixel *)
  404. 375 (* char imData[]; *) (* (image data, variable length) *)
  405. 376 END;
  406. ***** ^ not supported yet
  407. 377
  408. 378 adsImage = POINTER TO imageHeader;
  409. ***** ^ not supported yet
  410. 379
  411. 380 dashRcd = RECORD (* DEFINEDASH data record *)
  412. 381 nCnts, (* number of active entries, 1-8 *)
  413. 382 cnt1, (* distance ON, 1 *)
  414. 383 cnt2, (* distance OFF, 2 *)
  415. 384 cnt3, (* distance ON, 3 *)
  416. 385 cnt4, (* distance OFF, 4 *)
  417. 386 cnt5, (* distance ON, 5 *)
  418. 387 cnt6, (* distance OFF, 6 *)
  419. 388 cnt7, (* distance ON, 7 *)
  420. 389 cnt8: CARDINAL; (* distance OFF, 8 *)
  421. 390 END;
  422. ***** ^ not supported yet
  423. 391
  424. 392 (* Write/ReadPalette *)
  425. 393 palData = RECORD
  426. 394 palRed,
  427. 395 palGreen,
  428. 396 palBlue: WORD;
  429. ***** ^ undeclared identifier
  430. 397 END;
  431. ***** ^ not supported yet
  432. 398
  433. 399 (* HardCopy Types *)
  434. 400
  435. 401 (* The following allow objects of type HCInfoRec to be initialised using *)
  436. 402 (* TopSpeed Modula-2 agregate initialisation (see HARDCOPY.MOD) *)
  437. 403 init = ARRAY [0..1FH] OF BYTE; (* The printer init code(s). *)
  438. ***** ^ not supported yet
  439. ***** ^ undeclared identifier
  440. 404 reset = ARRAY [0..0FH] OF BYTE; (* Printer clean up code(s) *)
  441. ***** ^ not supported yet
  442. ***** ^ undeclared identifier
  443. 405 header = ARRAY [0..07H] OF BYTE; (* Sent before every line *)
  444. ***** ^ not supported yet
  445. ***** ^ undeclared identifier
  446. 406 pstam = ARRAY [0..07H] OF BYTE; (* Sent after length spec *)
  447. ***** ^ not supported yet
  448. ***** ^ undeclared identifier
  449. 407 trailer = ARRAY [0..0FH] OF BYTE; (* Sent after every line *)
  450. ***** ^ not supported yet
  451. ***** ^ undeclared identifier
  452. 408 hcSIG = ARRAY [0..01H] OF BYTE; (* Set to 'HC' for validity check *)
  453. ***** ^ not supported yet
  454. ***** ^ undeclared identifier
  455. 409 xlaTable = ARRAY [0..0FH] OF BYTE; (* Color translation table *)
  456. ***** ^ not supported yet
  457. ***** ^ undeclared identifier
  458. 410
  459. 411 HCInfoRec = RECORD
  460. 412 pins, (* Number of elements in print swath. *)
  461. 413 (* Use 1 for Laser printers *)
  462. 414 inlen: INTEGER; (* Number of bytes in following string *)
  463. 415 init: init; (* The printer init code(s). *)
  464. 416 rslen: INTEGER; (* Number of bytes in following string *)
  465. 417 reset: reset; (* Printer clean up code(s) *)
  466. 418 hdlen: INTEGER; (* Number of bytes in following string *)
  467. 419 header: header; (* Sent before every line *)
  468. 420 pstlen: INTEGER; (* Number of bytes in following string *)
  469. 421 pstam: pstam; (* Sent after length spec *)
  470. 422 trlen: INTEGER; (* Number of bytes in following string *)
  471. 423 trailer: trailer; (* Sent after every line *)
  472. 424 hcMode: INTEGER; (* Operational mode bits *)
  473. 425 prtPort: INTEGER; (* System printer port, 0-3 or 80-83 *)
  474. 426 hcSIG: hcSIG; (* Set to 'HC' for validity check *)
  475. 427 xlatMask: INTEGER; (* Max color number in xlaTable *)
  476. 428 xlaTable: xlaTable; (* Color translation table *)
  477. 429 END;
  478. ***** ^ not supported yet
  479. 430
  480. 431 mapArray = ARRAY [0..7] OF INTEGER; (* CursorMap data record *)
  481. ***** ^ not supported yet
  482. ***** ^ not supported yet
  483. 432
  484. 433 (* Sample User Definable Types: *)
  485. 434
  486. 435 CCBtype = RECORD (*User Definable Clock_Communication_Block*)
  487. 436 Timer: CARDINAL;
  488. 437 tX,
  489. 438 tY,
  490. 439 tSw: INTEGER;
  491. 440 END;
  492. ***** ^ not supported yet
  493. 441
  494. 442 MCBtype = RECORD (*User Definable Mouse_Communication_Block*)
  495. 443 mX,
  496. 444 mY,
  497. 445 mSw: INTEGER;
  498. 446 END;
  499. ***** ^ not supported yet
  500. 447
  501. 448 colrTable = ARRAY [0..15] OF LONGINT;
  502. ***** ^ not supported yet
  503. ***** ^ not supported yet
  504. 449
  505. 450 END GrConst.
  506. ***** ^ not supported yet
  507. 55 errors