home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / maths / plplot / plplot_2 / drivers / tk / plserver.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-19  |  2.2 KB  |  77 lines

  1. /* $Id: plserver.h,v 1.19 1994/07/19 22:31:45 mjl Exp $
  2.  * $Log: plserver.h,v $
  3.  * Revision 1.19  1994/07/19  22:31:45  mjl
  4.  * All device drivers: enabling macro renamed to PLD_<driver>, where <driver>
  5.  * is xwin, ps, etc.  See plDevs.h for more detail.  All internal header file
  6.  * inclusion changed to /not/ use a search path so that it will work better
  7.  * with makedepend.
  8.  *
  9.  * Revision 1.18  1994/06/30  18:47:06  mjl
  10.  * Restructured, to make Tk driver more independent of plserver (tk.c no
  11.  * longer includes this file).  Eventually it will be possible to link the
  12.  * Tk driver with Tcl-DP only, and not X or Tk, and the function of the
  13.  * header files must be well defined by then.
  14.  *
  15.  * Revision 1.17  1994/06/23  22:34:22  mjl
  16.  * Now includes pltcl.h for all Tcl API stuff.
  17.  *
  18.  * Revision 1.16  1994/06/16  19:07:08  mjl
  19.  * Include-guarded.  Now includes file tclMatrix.h, to pick up the new matrix
  20.  * command support.  Prototype for plframe() moved here from plplot.h since
  21.  * it shouldn't be necessary for the user to explicitly refer to it any more
  22.  * (in lieu of using Pltk_Init()).
  23.  */
  24.  
  25. /* 
  26.  * plserver.h
  27.  * Maurice LeBrun
  28.  * 6-May-93
  29.  *
  30.  * Declarations for plserver and associated files.  
  31.  */
  32.  
  33. #ifndef __PLSERVER_H__
  34. #define __PLSERVER_H__
  35.  
  36. #include "plplotP.h"
  37. #include "pltcl.h"
  38. #include "plplotTK.h"
  39. #include "plDevs.h"
  40.  
  41. /* State info for the rendering code */
  42.  
  43. typedef struct {
  44.     char  *client;            /* Name of client main window */
  45.     PDFstrm *pdfs;            /* PDF stream descriptor */
  46.     PLiodev *iodev;            /* I/O info */
  47.     int   nbytes;            /* data bytes waiting to be read */
  48.     int   at_bop, at_eop;        /* bop/eop condition flags */
  49.  
  50.     short xmin, xmax, ymin, ymax;    /* Data minima and maxima */
  51.     PLFLT xold, yold;            /* Endpoints of last line plotted */
  52. } PLRDev;
  53.  
  54. /* External function prototypes. */
  55. /* Note that tcl command functions are added during Pltk_Init and don't */
  56. /* need to be called directly by the user */
  57.  
  58. /* From plframe.c */
  59.  
  60. int
  61. plFrameCmd(ClientData clientData, Tcl_Interp *interp,
  62.        int argc, char **argv);
  63.  
  64. /* from plr.c */
  65.  
  66. /* Set default state parameters before anyone else has a chance to. */
  67.  
  68. void
  69. plr_start(PLRDev *plr);
  70.  
  71. /* Read & process commands until "nbyte_max" bytes have been read. */
  72.  
  73. int
  74. plr_process(PLRDev *plr);
  75.  
  76. #endif    /* __PLSERVER_H__ */
  77.