home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume6 / yahp2ps / part02 / mchinery.h < prev    next >
C/C++ Source or Header  |  1989-02-03  |  3KB  |  135 lines

  1. /*
  2.         HPGL to PostScript converter
  3.    Copyright (C) 1988 (and following) Federico Heinz
  4.  
  5. yahp2ps is distributed in the hope that it will be useful, but WITHOUT ANY
  6. WARRANTY.  No author or distributor accepts responsibility to anyone
  7. for the consequences of using it or for whether it serves any
  8. particular purpose or works at all, unless he says so in writing.
  9. Refer to the Free Software Foundation's General Public License for full details.
  10.  
  11. Everyone is granted permission to copy, modify and redistribute yahp2ps,
  12. but only under the conditions described in the GNU General Public
  13. License.  A copy of this license is supposed to have been given to you
  14. along with yahp2ps so you can know your rights and responsibilities.  It
  15. should be in a file named COPYING.  Among other things, the copyright
  16. notice and this notice must be preserved on all copies.
  17.  
  18. In other words, go ahead and share yahp2ps, but don't try to stop
  19. anyone else from sharing it farther.  Help stamp out software hoarding!
  20.  
  21. yahp2ps is TOTALLY unrelated to GNU or the Free Software Foundation,
  22. it is only released under the same conditions.
  23.  
  24.     For bug reports, wishes, etc. send e-mail to
  25.  
  26.     ...!mcvax!unido!tub!actisb!federico  (from Europe)
  27.     ...!uunet!pyramid!actisb!federico    (from anywhere else)
  28.  
  29.     For Physical mail:
  30.  
  31.     Federico Heinz
  32.     Beusselstr. 21
  33.     1000 Berlin 21
  34.  
  35.     Tel. (+49 30) 396 77 92
  36.  
  37. */
  38. /**************************************************************************
  39.  
  40.     Definition of the plotter's "hardware" functions.
  41.  
  42. **************************************************************************/
  43.  
  44.  
  45. /* Draws a dot at the curent position */
  46.  
  47. extern void drawDot();
  48.  
  49.  
  50. /* Draws a line to the indicated point in User Space */
  51.  
  52. extern void drawLine();
  53.  
  54.  
  55.  
  56. /* Positions the physical pen to the indicated point (User Space) */
  57.  
  58. extern void setCurrentPoint();
  59.  
  60.  
  61. /* Draws an arc at maximum resolution */
  62.  
  63. extern void doHRArc();
  64.  
  65.  
  66. /* Draw a horizontal tick */
  67.  
  68. extern void doYTick();
  69.  
  70.  
  71. /* Draw a vertical tick */
  72.  
  73. extern void doXTick();
  74.  
  75.  
  76. /* Set a new plotting window */
  77.  
  78. extern void setClip();
  79.  
  80.  
  81. /* Set the plotting window again */
  82.  
  83. extern void correctClip();
  84.  
  85.  
  86. /* Do the real ink-dropping if needed */
  87.  
  88. extern void stroke();
  89.  
  90.  
  91. /* Set the pen's width */
  92.  
  93. extern void setPenWidth();
  94.  
  95.  
  96.  
  97. /* Set the pen's color */
  98.  
  99. extern void setPenColor();
  100.  
  101.  
  102.  
  103. /* Set the line pattern */
  104.  
  105. extern void setPattern();
  106.  
  107.  
  108.  
  109. /* Shade a rectangle */
  110.  
  111. extern void doShadeRectangle();
  112.  
  113.  
  114.  
  115. /* Shade a wedge */
  116.  
  117. extern void doShadeWedge();
  118.  
  119.  
  120.  
  121. /* Do the machinery's startup work */
  122.  
  123. extern void initializeMachinery();
  124.  
  125.  
  126.  
  127. /* Do anything that might be pending */
  128.  
  129. extern void shutdownMachinery();
  130.  
  131.  
  132. /* Prelude file name */
  133.  
  134. extern char *PreludeFile;
  135.