PLplot: pltkd.h Source File

PLplot 5.15.0

pltkd.h
Go to the documentation of this file.
1 // Holds system header includes, prototypes of TK driver
2 // utility functions, and definition of the state structure.
3 //
4 // This file is set up so that the determined user can get access
5 // to the tk driver data without too much hassle. The only drawback
6 // is that plplotP.h must be included to get all of the necessary
7 // system header files and configuration settings.
8 //
9
10 #ifndef __PLTKD_H__
11 #define __PLTKD_H__
12
13 #include "plplotP.h"
14 #include "pltk.h"
15 #include "pdf.h"
16
17 #include <tk.h>
18 #ifdef PLD_dp
19 #include <dp.h>
20 #endif
21
22 // typedef the type pid_t - a dummy for the moment - for MS Windows
23 // platforms other than those (e.g., MinGW) that typedef it already.
24 #if defined ( _WIN32 ) && !defined ( __MINGW32__ )
25 typedef unsigned int pid_t;
26 #endif
27
28 // One of these holds the TK driver state information
29
30 typedef struct
31 {
32 Tk_Window w; // Main window
33 Tcl_Interp *interp; // Interpreter
34 PLINT xold, yold; // Coordinates of last point plotted
35 unsigned width, height; // Current window dimensions
36 int exit_eventloop; // Break out of event loop
37 int pass_thru; // Skip normal error termination
38 char *cmdbuf; // Command buffer
39 size_t cmdbuf_len; // and its length
40 PLiodev *iodev; // I/O device info
41 const char *updatecmd; // Name of update command
42 pid_t child_pid; // PID for child process
43 int instr; // Instruction timer
44 int max_instr; // Limit before issuing an update
45 int locate_mode; // Set while in locate mode
46 PLGraphicsIn gin; // Graphics input structure
47 } TkDev;
48
49 #endif // __PLTKD_H__
plplotP.h
PLiodev
Definition: pdf.h:61
TkDev::exit_eventloop
int exit_eventloop
Definition: pltkd.h:36
TkDev::yold
PLINT yold
Definition: pltkd.h:34
PlPlotter::height
int height
Definition: plplotter.c:121
TkDev::max_instr
int max_instr
Definition: pltkd.h:44
pdf.h
TkDev::width
unsigned width
Definition: pltkd.h:35
TkDev::gin
PLGraphicsIn gin
Definition: pltkd.h:46
PLINT
int PLINT
Definition: plplot.h:181
TkDev::locate_mode
int locate_mode
Definition: pltkd.h:45
TkDev::child_pid
pid_t child_pid
Definition: pltkd.h:42
TkDev::updatecmd
const char * updatecmd
Definition: pltkd.h:41
TkDev::pass_thru
int pass_thru
Definition: pltkd.h:37
TkDev::interp
Tcl_Interp * interp
Definition: pltkd.h:33
TkDev::cmdbuf_len
size_t cmdbuf_len
Definition: pltkd.h:39
pltk.h
TkDev::iodev
PLiodev * iodev
Definition: pltkd.h:40
TkDev::w
Tk_Window w
Definition: pltkd.h:32
TkDev::cmdbuf
char * cmdbuf
Definition: pltkd.h:38
TkDev
Definition: pltkd.h:30
TkDev::instr
int instr
Definition: pltkd.h:43
PLGraphicsIn
Definition: plplot.h:433