PLplot
5.9.9
Main Page
Namespaces
Classes
Files
File List
File Members
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__
bindings
tk
pltkd.h
Generated on Sat Sep 14 2013 05:04:16 for PLplot by
1.8.4