home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / PROG / PASCAL / METAWIND.ZIP / FUNCS.DOC < prev    next >
Encoding:
Text File  |  1989-02-15  |  9.7 KB  |  259 lines

  1.     System Initialization
  2. QueryGrafix - Determine graphics hardware configuration.
  3. InitGrafix - Initialize the MetaWINDOW graphics system.
  4. ScreenRect - Return the screen limits rectangle.
  5. ScreenSize - Return the maximum screen coordinates.
  6. SetDisplay - Set the visible graphics page.
  7. SetBitmap - Set the writeable graphics page
  8. RasterOp - Set the pen & text rasterOp transfer modes
  9.  
  10.     Point and Line Drawing Routines
  11. MoveTo - Move to (X,Y).
  12. LineTo - Draw line to (X,Y).
  13. MoveRel - Move relative (DX,DY).
  14. LineRel - Draw line relative (DX,DY).
  15. PolyLine - Draw connected multi-line sequence.
  16. SetPixel - Set pixel with the current pen color.
  17. GetPixel - Return color of pixel at (X,Y).
  18.  
  19.     Rectangle Drawing Routines
  20. FrameRect - Draw rectangle outline.
  21. PaintRect - Fill rectangle interior.
  22. EraseRect - Erase rectangle interior.
  23. InvertRect - Invert rectangle interior.
  24. FillRect - Fill rectangle with specified pattern.
  25. ScrollRect - Scroll rectangle contents.
  26.  
  27.     Rounded-Corner Rectangle Drawing Routines
  28. FrameRoundRect - Draw rounded-rectangle outline.
  29. PaintRoundRect - Fill rounded-rectangle interior.
  30. EraseRoundRect - Erase rounded-rectangle interior.
  31. InvertRoundRect - Invert rounded-rectangle interior.
  32. FillRoundRect - Fill roundRect with specified pattern.
  33.  
  34.     Circle/Ellipse/Oval Drawing Routines
  35. FrameOval - Draw oval outline.
  36. PaintOval - Fill oval interior.
  37. EraseOval - Erase oval interior.
  38. InvertOval - Invert oval interior.
  39. FillOval - Fill oval with specified pattern.
  40.  
  41.     Arc and Wedge Drawing Routines
  42. FrameArc - Draw arc outline.
  43. PaintArc - Fill arc interior.
  44. EraseArc - Erase arc interior.
  45. InvertArc - Invert arc interior.
  46. FillArc - Fill arc with specified pattern.
  47.  
  48.     Polygon Drawing Routines
  49. FramePoly - Draw polygon outline.
  50. PaintPoly - Fill polygon interior(s).
  51. ErasePoly - Erase polygon interior(s).
  52. InvertPoly - Invert polygon interior(s).
  53. FillPoly - Fill polygon(s) with specified pattern.
  54.  
  55.     Text Drawing Procedures
  56. DrawChar - Draw character.
  57. DrawString - Draw string.
  58. DrawText - Draw text substring.
  59. WriteGr - Draw string.
  60. TextLimits - Return justification spacing.
  61. CharWidth - Return character width.
  62. StringWidth - Return string width.
  63. TextWidth - Return text substring width.
  64. LengthGr - Return centered string half-length.
  65.  
  66.     Font Attribute Functions
  67. SystemFont - Load system font.
  68. LoadFont - Load custom user font.
  69. SetFont - Make font the "current" drawing font.
  70. TextFace - Set font facing (bold, italic, underline,...).
  71. TextMode - Set text rasterOp transfer mode.
  72. TextUnder - Set text underline distance.
  73. TextScore - Set text underline scoring.
  74. TextPath - Set text path angle.
  75. TextAlign - Set text horizontal/vertical alignment.
  76. TextExtra - Set character justification spacing.
  77. TextSpace - Set space justification spacing.
  78. TextAngle - Set text rotation angle.
  79. TextSize - Set text size.
  80. TextSlant - Set text slant angle.
  81.  
  82.     Image Drawing Routines
  83. ImageSize - Calculate image buffer requirements.
  84. ReadImage - Read bitmap image into buffer.
  85. WriteImage - Write image buffer to bitmap.
  86. XlateImage - Translate bit image format.
  87.  
  88.     Marker Drawing Routines
  89. MarkerType - Set marker style.
  90. MarkerSize - Set marker size.
  91. MarkerAngle - Set marker angle.
  92. PolyMarker - Draw marker(s).
  93.  
  94.     Graphic Inquiries
  95. QueryPosn - Return current (X,Y) position.
  96. QueryX - Return current X position.
  97. QueryY - Return current Y position.
  98. QueryRes - Return pixel resolution (X & Y pixels/inch).
  99. QueryError - Return MetaWINDOW error status.
  100.  
  101.     Pen Attribute Functions
  102. PenColor - Set pen color.
  103. PenSize - Set pen diameters (circular width & height).
  104. PenMode - Set pen rasterOp transfer mode.
  105. PenPattern - Set pen pattern.
  106. PenCap - Set line end-cap style (flat/square/round).
  107. PenJoin - Set connected line join style (round/bevel/miter).
  108. MiterLimit - Set mitered-join limit angle.
  109. PenDash - Set dashed line style.
  110. PenOffset - Set centered dash offset.
  111. PenNormal - Reset to default pen attributes.
  112. HidePen - Disable drawing operations.
  113. ShowPen - Enable drawing operations.
  114. GetPenState - Save current pen attributes.
  115. SetPenState - Restore pen attributes.
  116.  
  117.     Background Style
  118. BackPattern - Set background pattern.
  119. BackColor - Set background color.
  120.  
  121.     Custom Styles and Patterns
  122. DefinePattern - Define custom user pattern.
  123. AlignPattern - Set pattern alignment.
  124.  
  125.     Color Graphics
  126. QueryColors - Return maximum display colors.
  127. SetPalette - Select color palette.
  128. LoadPalette - Load color palette.
  129. BorderColor - Set border color.
  130.  
  131.     Operations with Bitmaps
  132. InitBitmap -  Initialize a custom display or virtual bitmap.
  133. CopyBits -  BitBlt transfer bit images.
  134. ZoomBits -  ZoomBlt transfer bit images.
  135. CursorBitmap -  Set cursor tracking bitmap.
  136. GblGetPixel -  Return pixel color (global X,Y).
  137. GblSetPixel -  Set pixel (global X,Y) with current pen color.
  138.  
  139.     Operations with Ports & Windows
  140. InitPort -  Initialize a new port (window).
  141. GetPort -  Return pointer to the "current" port.
  142. SetPort -  Make specified port the "current" port.
  143. PortSize -  Set the port size.
  144. MovePortTo -  Set the port location.
  145. SetOrigin -  Set the local port coordinate origin.
  146. PortOrigin -  Set the origin orientation (upperleft/lowerleft).
  147. PortBitmap -  Set the bitmap for the current port.
  148. VirtualRect -  Set the port's virtual coordinate limits.
  149. SetLocal -  Set port to local coordinates.
  150. SetVirtual -  Set port to virtual coordinates.
  151. ClipRect -  Set the port clipping rectangle.
  152.  
  153.     Calculations with Points
  154. SetPt -  Copy X,Y to a point variable.
  155. DupPt -  Copy a point variable to another point variable.
  156. AddPt -  Add two point variables.
  157. SubPt -  Subtract two point variables.
  158. EqualPt -  Return true if two points are equal.
  159. ScalePt -  Scale a point variable.
  160. MapPt -  Translate and scale a point variable.
  161. OvalPt -  Return the point on oval at a specified angle.
  162. PtToAngle -  Return angle from oval center to a point.
  163.  
  164.     Calculations with Rectangles
  165. SetRect -  Copy coordinates to a rectangle variable.
  166. DupRect -  Copy a rect variable to another rect variable.
  167. Pt2Rect -  Copy diagonal points to a rectangle variable.
  168. CenterRect -  Calculate a centered rectangle variable.
  169. OffsetRect -  Offset a rectangle variable.
  170. InsetRect -  Inset or outset a rectangle variable.
  171. InceptRect -  Return intersect rect of two rectangles.
  172. UnionRect -  Return union rect of two rectangles.
  173. EqualRect -  Return true if two rectangles are equal.
  174. ShiftRect -  Return voided rect(s) of a shifted rect move.
  175. MapRect -  Translate and scale a rectangle variable.
  176.  
  177.     Calculations with Polygons
  178. OffsetPoly -  Offset polygon coordinates.
  179. MapPoly -  Translate and scale polygon coordinates.
  180.  
  181.     Coordinate Transformations
  182. Gbl2LclPt -  Transform point, global to local.
  183. Gbl2VirPt -  Transform point, global to virtual.
  184. Lcl2GblPt -  Transform point, local to global.
  185. Lcl2VirPt -  Transform point, local to virtual.
  186. Vir2GblPt -  Transform point, virtual to global.
  187. Vir2LclPt -  Transform point, virtual to local.
  188. Gbl2LclRect -  Transform rectangle, global to local.
  189. Gbl2VirRect -  Transform rectangle, global to virtual.
  190. Lcl2GblRect -  Transform rectangle, local to global.
  191. Lcl2VirRect -  Transform rectangle, local to virtual.
  192. Vir2GblRect -  Transform rectangle, virtual to global.
  193. Vir2LclRect -  Transform rectangle, virtual to local.
  194.  
  195.     Point "In" Object Operations
  196. XYInRect -  Return true if (X,Y) is inside rectangle.
  197. PtInRect -  Return true if point is inside rectangle.
  198. PtInOval -  Return true if point is inside oval.
  199. PtInArc -  Return true if point is inside arc.
  200. PtInRoundRect -  Return true if point is inside roundRect.
  201. PtInPoly -  Return true if point is inside polygon.
  202.  
  203.     Point "On" Object Operations
  204. PtOnLine -  Return true if point is on line.
  205. PtOnRect -  Determine if point is outside, on or inside of rect.
  206. PtOnOval -  Determine if point is outside, on or inside of oval.
  207. PtOnArc -  Determine if point is outside, on or inside of arc.
  208. PtOnRoundRect -  Determine if point is out, on or inside roundRect.
  209.  
  210.     Mouse Tracking
  211. QueryComm -  Locate graphics input devices.
  212. InitMouse -  Initialize mouse tracking.
  213. ReadMouse -  Read mouse position and buttons.
  214. LimitMouse -  Set mouse tracking limits.
  215. ScaleMouse -  Set mouse tracking scaling.
  216. StopMouse -  Terminate mouse tracking.
  217.  
  218.     Mouse/Timer Interrupt Processing
  219. UserMouse -  Enable user defined mouse interrupt service routine.
  220. UserTimer -  Enable user defined timer interrupt service routine.
  221. StopTimer -  Disable timer processing.
  222.  
  223.     Cursor Tracking Procedures
  224. ShowCursor -  Display screen cursor.
  225. HideCursor -  Remove screen cursor.
  226. MoveCursor -  Move cursor to X,Y.
  227. CursorStyle -  Set the cursor appearance.
  228. TrackCursor -  Enable asynchronous (auto) cursor tracking.
  229. ProtectRect -  Define cursor protected area.
  230. ProtectOff -  Disable cursor protected areas.
  231. QueryCursor -  Return cursor position and buttons.
  232. CursorMap -  Define mouse button/cursor style mapping.
  233. DefineCursor -  Define custom cursor style.
  234.  
  235.     Event Queue Processing Procedures
  236. EventQueue -  Enable event queue processing.
  237. StopEvent -  Terminate event queue processing.
  238. KeyEvent -  Retrieve next queued event.
  239. PeekEvent -  Examine queued events.
  240. StoreEvent -  Store a program generated event.
  241.  
  242.     File I/O Procedures
  243. FileQuery -  Retrieve file directory info.
  244. FileLoad -  Load a (font) file into memory.
  245. FileStore -  Write a file from memory.
  246. FileAttr -  Set file attributes.
  247. FileDelete -  Delete a file.
  248. FileRename -  Rename a file.
  249.  
  250.     System Utilities
  251. GetCmdLine -  Return the command line string.
  252. PushGrafix -  Push the graphics state.
  253. PopGrafix -  Pop the graphics state.
  254. ClearText -  Clear the text page.
  255. PortField -  Return specified port field value.
  256. BMapField -  Return specified bitmap field value.
  257. FontField -  Return specified font field value.
  258. ClrInt -  Disable interrupts.
  259.