File: pltkd.h

package info (click to toggle)
plplot 5.15.0%2Bdfsg2-21
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 31,500 kB
  • sloc: ansic: 79,703; xml: 28,583; cpp: 20,033; ada: 19,456; tcl: 12,081; f90: 11,431; ml: 7,276; java: 6,863; python: 6,792; sh: 3,274; perl: 829; makefile: 75; lisp: 75; sed: 34; fortran: 6
file content (49 lines) | stat: -rw-r--r-- 1,863 bytes parent folder | download | duplicates (8)
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
//      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__