Linuxpops  3.01.04
Spectral Anaysis Package for Single Dish Data
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
xgr.h
Go to the documentation of this file.
1 #include "colors.h"
2 
3 #ifdef DEFINE_COLORS
4 
5 char *colorsTxt[] = { "white", "black", "gray40", "gray50",
6  "gray75", "red", "yellow", "green",
7  "magenta", "blue", "maroon", "orange",
8  "cyan", "coral", "purple", "salmon",
9  "brown", "orchid", "lavender", "steel blue",
10  "tan", "sienna", "pink", "cyan4"
11 };
12 
13 #else
14 
15 extern char *colorsTxt[];
16 
17 #endif
18 
19 #define XGR_MAIN_WIN 1
20 #define XGR_OTF_WIN 2
21 #define XGR_SPEC_WIN 3
22 #define XGR_STAT_WIN 4
23 
24 #define XGR_SET_PIXMAP 1
25 #define XGR_SET_WIN 2
26 
27 #define XGR_NO_PIXMAP 0
28 #define XGR_USE_PIXMAP 1
29 
30 #define XGR_PLOT_DEGREES 1
31 #define XGR_PLOT_SEX 2
32 
33 #define XGR_MAX_FONTS 15
34 
35 struct XGR_HEAD {
36  struct XGR_HEAD *next;
37  struct XGR_HEAD *prev;
38 };
39 
40 
41 
42 struct WINDOW_HEAD {
43  struct WINDOW_HEAD *next;
44  struct WINDOW_HEAD *prev;
45 };
46 
47 
48 struct WINDOW {
49  struct WINDOW_HEAD windows;/* MUST ALWAYS be FIRST struct element !!! */
50  char frameTitle[80];
51  Window act;
52  Window win;
53  int usPixmap;
54  Pixmap pixmap;
55  Pixmap icon;
56  GC gc;
57  int canw,
58  canh;
61  int pixmapX,
62  pixmapY;
63  int plotxb, plotxe,
64  plotyb, plotye;
65  int invalid;
66  int first;
67  int mapped;
68  int (*repaint_proc)();
69  int (*resize_proc)();
70  int (*event_proc)();
71 };
72 
73 
74 
75 struct XGR_ {
76  struct XGR_HEAD list; /* MUST ALWAYS be FIRST struct element !!!!!! */
77  char prgName[80];
78  char serverName[80];
79  Display *dpy;
80  int xfd;
81  int scr_num;
82  int depth;
83  Colormap def_cmap;
84  char **fontNames;
85  int fontW, fontH;
86  unsigned long colors[MAX_COLORS];
87  unsigned long grayScale[MAX_GRAY_SCALE];
88  int numFonts;
89  XImage *userXimage;
90  XFontStruct *font_info;
91  XFontStruct *fontInfo[XGR_MAX_FONTS];
93 
95  struct WINDOW *cur;
96 
97  struct WINDOW *plotwin;
98  struct WINDOW *otfwin;
99  struct WINDOW *specwin;
100  struct WINDOW *statwin;
101 };
struct WINDOW_HEAD * prev
Definition: xgr.h:44
struct WINDOW_HEAD windows
Definition: xgr.h:94
unsigned long colors[MAX_COLORS]
Definition: xgr.h:86
int plotyb
Definition: xgr.h:63
int first
Definition: xgr.h:66
Window act
Definition: xgr.h:51
Pixmap icon
Definition: xgr.h:55
char serverName[80]
Definition: xgr.h:78
XFontStruct * fontInfo[XGR_MAX_FONTS]
Definition: xgr.h:91
int plotye
Definition: xgr.h:63
struct WINDOW_HEAD windows
Definition: xgr.h:49
int plotxe
Definition: xgr.h:63
struct WINDOW * specwin
Definition: xgr.h:99
int fontH
Definition: xgr.h:85
struct XGR_HEAD * next
Definition: xgr.h:36
struct XGR_HEAD * prev
Definition: xgr.h:37
XFontStruct * font_info
Definition: xgr.h:90
int mapped
Definition: xgr.h:67
int xfd
Definition: xgr.h:80
int fontW
Definition: xgr.h:85
struct WINDOW * otfwin
Definition: xgr.h:98
char ** fontNames
Definition: xgr.h:84
#define XGR_MAX_FONTS
Definition: xgr.h:33
int usPixmap
Definition: xgr.h:53
Display * dpy
Definition: xgr.h:79
int(* resize_proc)()
Definition: xgr.h:69
int(* repaint_proc)()
Definition: xgr.h:68
char prgName[80]
Definition: xgr.h:77
char * colorsTxt[]
int depth
Definition: xgr.h:82
Definition: xgr.h:35
unsigned long grayScale[MAX_GRAY_SCALE]
Definition: xgr.h:87
int plotxb
Definition: xgr.h:63
int invalidServerFonts
Definition: xgr.h:92
Colormap def_cmap
Definition: xgr.h:83
int pixmapY
Definition: xgr.h:61
int numFonts
Definition: xgr.h:88
Definition: xgr.h:48
struct WINDOW * cur
Definition: xgr.h:95
Definition: xgr.h:75
struct XGR_HEAD list
Definition: xgr.h:76
Window win
Definition: xgr.h:52
char frameTitle[80]
Definition: xgr.h:50
Pixmap pixmap
Definition: xgr.h:54
struct WINDOW_HEAD * next
Definition: xgr.h:43
#define MAX_GRAY_SCALE
Definition: colors.h:31
int foreground
Definition: xgr.h:59
int background
Definition: xgr.h:60
GC gc
Definition: xgr.h:56
int pixmapX
Definition: xgr.h:61
struct WINDOW * statwin
Definition: xgr.h:100
int canw
Definition: xgr.h:57
int(* event_proc)()
Definition: xgr.h:70
int invalid
Definition: xgr.h:65
#define MAX_COLORS
Definition: colors.h:15
XImage * userXimage
Definition: xgr.h:89
struct WINDOW * plotwin
Definition: xgr.h:97
int scr_num
Definition: xgr.h:81
int canh
Definition: xgr.h:57