File: pltkd.h

package info (click to toggle)
plplot 5.10.0%2Bdfsg2-0.4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 25,792 kB
  • ctags: 13,517
  • sloc: ansic: 83,001; xml: 27,081; ada: 18,878; cpp: 15,966; tcl: 11,651; python: 7,075; f90: 7,058; ml: 6,974; java: 6,665; perl: 5,029; sh: 2,208; makefile: 210; lisp: 75; sed: 25; fortran: 7
file content (51 lines) | stat: -rw-r--r-- 1,921 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// $Id: pltkd.h 12933 2014-01-12 02:53:54Z airwin $
//
//      Holds system header includes, prototypes of TK driver
//      utility functions, and definition of the state structure.
//
//      This file is set up so that the determined user can get access
//      to the tk driver data without too much hassle.  The only drawback
//      is that plplotP.h must be included to get all of the necessary
//      system header files and configuration settings.
//

#ifndef __PLTKD_H__
#define __PLTKD_H__

#include "plplotP.h"
#include "pltk.h"
#include "pdf.h"

#include <tk.h>
#ifdef PLD_dp
#include <dp.h>
#endif

// typedef the type pid_t - a dummy for the moment - for MS Windows
// platforms other than those (e.g., MinGW) that typedef it already.
#if defined ( __WIN32__ ) && !defined ( __MINGW32__ )
typedef unsigned int   pid_t;
#endif

// One of these holds the TK driver state information

typedef struct
{
    Tk_Window    w;                     // Main window
    Tcl_Interp   *interp;               // Interpreter
    PLINT        xold, yold;            // Coordinates of last point plotted
    unsigned     width, height;         // Current window dimensions
    int          exit_eventloop;        // Break out of event loop
    int          pass_thru;             // Skip normal error termination
    char         *cmdbuf;               // Command buffer
    size_t       cmdbuf_len;            // and its length
    PLiodev      *iodev;                // I/O device info
    const char   *updatecmd;            // Name of update command
    pid_t        child_pid;             // PID for child process
    int          instr;                 // Instruction timer
    int          max_instr;             // Limit before issuing an update
    int          locate_mode;           // Set while in locate mode
    PLGraphicsIn gin;                   // Graphics input structure
} TkDev;

#endif  // __PLTKD_H__