PLplot  5.9.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
pltkd.h
Go to the documentation of this file.
1 // $Id: pltkd.h 11975 2011-10-19 11:05:10Z andrewross $
2 //
3 // Holds system header includes, prototypes of TK driver
4 // utility functions, and definition of the state structure.
5 //
6 // This file is set up so that the determined user can get access
7 // to the tk driver data without too much hassle. The only drawback
8 // is that plplotP.h must be included to get all of the necessary
9 // system header files and configuration settings.
10 //
11 
12 #ifndef __PLTKD_H__
13 #define __PLTKD_H__
14 
15 #include "plplotP.h"
16 #include "pltk.h"
17 #include "pdf.h"
18 
19 #include <tk.h>
20 #ifdef PLD_dp
21 #include <dp.h>
22 #endif
23 
24 // One of these holds the TK driver state information
25 
26 typedef struct
27 {
28  Tk_Window w; // Main window
29  Tcl_Interp *interp; // Interpreter
30  PLINT xold, yold; // Coordinates of last point plotted
31  unsigned width, height; // Current window dimensions
32  int exit_eventloop; // Break out of event loop
33  int pass_thru; // Skip normal error termination
34  char *cmdbuf; // Command buffer
35  size_t cmdbuf_len; // and its length
36  PLiodev *iodev; // I/O device info
37  const char *updatecmd; // Name of update command
38  pid_t child_pid; // PID for child process
39  int instr; // Instruction timer
40  int max_instr; // Limit before issuing an update
41  int locate_mode; // Set while in locate mode
42  PLGraphicsIn gin; // Graphics input structure
43 } TkDev;
44 
45 #endif // __PLTKD_H__
Definition: pdf.h:63
int exit_eventloop
Definition: pltkd.h:32
PLINT yold
Definition: pltkd.h:30
int height
Definition: plplotter.c:122
int max_instr
Definition: pltkd.h:40
unsigned width
Definition: pltkd.h:31
PLGraphicsIn gin
Definition: pltkd.h:42
int PLINT
Definition: plplot.h:175
int locate_mode
Definition: pltkd.h:41
pid_t child_pid
Definition: pltkd.h:38
const char * updatecmd
Definition: pltkd.h:37
int pass_thru
Definition: pltkd.h:33
Tcl_Interp * interp
Definition: pltkd.h:29
size_t cmdbuf_len
Definition: pltkd.h:35
PLiodev * iodev
Definition: pltkd.h:36
Tk_Window w
Definition: pltkd.h:28
char * cmdbuf
Definition: pltkd.h:34
Definition: pltkd.h:26
int instr
Definition: pltkd.h:39