-
Notifications
You must be signed in to change notification settings - Fork 0
/
xwin.h
65 lines (62 loc) · 2.61 KB
/
xwin.h
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
* Copyright (c) 1991, 1997
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms are permitted
* provided that the above copyright notice and this paragraph are
* duplicated in all such forms and that any documentation,
* advertising materials, and other materials related to such
* distribution and use acknowledge that the software was developed
* by the University of California, Lawrence Berkeley Laboratory,
* Berkeley, CA. The name of the University may not be used to
* endorse or promote products derived from this software without
* specific prior written permission.
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* This code is derived from the original X10 xgraph written by
* David Harrison University of California, Berkeley 1986, 1987
*
* Heavily hacked by Van Jacobson and Steven McCanne, UCB/LBL: added mouse
* functions to id points and compute slopes and distances. added keystroke
* commands to toggle most of the visual attributes of a window (grid, line,
* markers, etc.).
*/
typedef struct local_win {
struct local_win *next;
Window win;
int width, height; /* Current size of window */
double loX, loY, hiX, hiY; /* Local bounding box of window */
int XOrgX, XOrgY; /* Origin of bounding box on screen */
int XOppX, XOppY; /* Other point defining bounding box */
double UsrOrgX, UsrOrgY; /* bounding box origin in user space */
double UsrOppX, UsrOppY; /* Other point of bounding box */
double XUnitsPerPixel; /* X Axis scale factor */
double YUnitsPerPixel; /* Y Axis scale factor */
int XPrecisionOffset; /* Extra precision for X axis offset */
int YPrecisionOffset; /* Extra precision for X axis offset */
int help; /* Flag indicating Help window */
struct plotflags flags;
Pixmap cache; /* off-screen redraw cache */
XRectangle clip;
XSizeHints sizehints;
unsigned long hide; /* bit =1 if assoc. dataset hidden */
struct plotflags dflags[32];
} LocalWin;
extern XFontStruct *axisFont; /* Font for axis labels */
extern XFontStruct *infoFont; /* Font for info popup labels */
extern XFontStruct *titleFont; /* Font for graph and help window titles */
extern int depth;
extern Display *display;
extern int zeroPixel;
extern int normPixel;
extern int text2Color;
extern int text3Color;
extern int bgPixel;
extern int bwFlag;
extern char *markcolor;
extern int precision;
extern char selection[];
extern Time selectionSetTime;
extern Time selectionClearTime;