PLplot
5.10.0
|
00001 // Holds system header includes, prototypes of TK driver 00002 // utility functions, and definition of the state structure. 00003 // 00004 // This file is set up so that the determined user can get access 00005 // to the tk driver data without too much hassle. The only drawback 00006 // is that plplotP.h must be included to get all of the necessary 00007 // system header files and configuration settings. 00008 // 00009 00010 #ifndef __PLTKD_H__ 00011 #define __PLTKD_H__ 00012 00013 #include "plplotP.h" 00014 #include "pltk.h" 00015 #include "pdf.h" 00016 00017 #include <tk.h> 00018 #ifdef PLD_dp 00019 #include <dp.h> 00020 #endif 00021 00022 // typedef the type pid_t - a dummy for the moment - for MS Windows 00023 // platforms other than those (e.g., MinGW) that typedef it already. 00024 #if defined ( __WIN32__ ) && !defined ( __MINGW32__ ) 00025 typedef unsigned int pid_t; 00026 #endif 00027 00028 // One of these holds the TK driver state information 00029 00030 typedef struct 00031 { 00032 Tk_Window w; // Main window 00033 Tcl_Interp *interp; // Interpreter 00034 PLINT xold, yold; // Coordinates of last point plotted 00035 unsigned width, height; // Current window dimensions 00036 int exit_eventloop; // Break out of event loop 00037 int pass_thru; // Skip normal error termination 00038 char *cmdbuf; // Command buffer 00039 size_t cmdbuf_len; // and its length 00040 PLiodev *iodev; // I/O device info 00041 const char *updatecmd; // Name of update command 00042 pid_t child_pid; // PID for child process 00043 int instr; // Instruction timer 00044 int max_instr; // Limit before issuing an update 00045 int locate_mode; // Set while in locate mode 00046 PLGraphicsIn gin; // Graphics input structure 00047 } TkDev; 00048 00049 #endif // __PLTKD_H__