1 #ifndef WMGENERAL_H_INCLUDED
2 #define WMGENERAL_H_INCLUDED
3 
4   /***********/
5  /* Defines */
6 /***********/
7 
8 #define MAX_MOUSE_REGION (16)
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 _rckeys2 rckeys2;
22 
23 struct _rckeys2 {
24 	const char	*family;
25 	const char	*label;
26 	char		**var;
27 };
28 
29 typedef struct {
30 	Pixmap			pixmap;
31 	Pixmap			mask;
32 	XpmAttributes	attributes;
33 } XpmIcon;
34 
35   /*******************/
36  /* Global variable */
37 /*******************/
38 
39 extern Display		*display;
40 extern Window          Root, iconwin, win;
41 extern XpmIcon		wmgen;
42 
43   /***********************/
44  /* Function Prototypes */
45 /***********************/
46 
47 void AddMouseRegion(int index, int left, int top, int right, int bottom);
48 int CheckMouseRegion(int x, int y);
49 
50 void openXwindow(int argc, char *argv[], char **, char *, int, int);
51 void RedrawWindow(void);
52 void RedrawWindowXY(int x, int y);
53 
54 void createXBMfromXPM(char *, char **, int, int);
55 void copyXPMArea(int, int, int, int, int, int);
56 void copyXBMArea(int, int, int, int, int, int);
57 void setMaskXY(int, int);
58 
59 void parse_rcfile(const char *, rckeys *);
60 
61 #endif
62