1 #ifndef WMGENERAL_H_INCLUDED
2 #define WMGENERAL_H_INCLUDED
3 
4   /***********/
5  /* Defines */
6 /***********/
7 
8 #define MAX_MOUSE_REGION (8)
9 
10   /************/
11  /* Typedefs */
12 /************/
13 
14 typedef struct _rckeys rckeys;
15 
16 struct _rckeys {
17 	const char	*label;
18 	char		**var;
19 };
20 
21 typedef struct {
22 	Pixmap			pixmap;
23 	Pixmap			mask;
24 	XpmAttributes	attributes;
25 } XpmIcon;
26 
27   /*******************/
28  /* Global variable */
29 /*******************/
30 
31 extern Display		*display;
32 
33   /***********************/
34  /* Function Prototypes */
35 /***********************/
36 
37 void AddMouseRegion(int index, int left, int top, int right, int bottom);
38 int CheckMouseRegion(int x, int y);
39 
40 void openXwindow(int argc, char *argv[], char **, char *, int, int);
41 void RedrawWindow(void);
42 void RedrawWindowXY(int x, int y);
43 
44 void copyXPMArea(int, int, int, int, int, int);
45 void copyXBMArea(int, int, int, int, int, int);
46 void setMaskXY(int, int);
47 
48 void parse_rcfile(const char *, rckeys *);
49 
50 #endif
51