wmix: bump to 3.5.
[dockapps.git] / wmgrabimage / wmgeneral / wmgeneral.h
blobc7c19c35e392200264d63b21b104891bbc2606bc
1 #ifndef WMGENERAL_H_INCLUDED
2 #define WMGENERAL_H_INCLUDED
4 /***********/
5 /* Defines */
6 /***********/
8 #define MAX_MOUSE_REGION (8)
10 /************/
11 /* Typedefs */
12 /************/
14 typedef struct _rckeys rckeys;
16 struct _rckeys {
17 const char *label;
18 char **var;
21 typedef struct {
22 Pixmap pixmap;
23 Pixmap mask;
24 XpmAttributes attributes;
25 } XpmIcon;
27 /*******************/
28 /* Global variable */
29 /*******************/
31 Display *display;
32 Window Root;
33 GC NormalGC;
34 XpmIcon wmgen;
37 /***********************/
38 /* Function Prototypes */
39 /***********************/
41 void AddMouseRegion(int index, int left, int top, int right, int bottom);
42 int CheckMouseRegion(int x, int y);
44 void openXwindow(int argc, char *argv[], char **, char *, int, int);
45 void RedrawWindow(void);
46 void RedrawWindowXY(int x, int y);
48 void copyXPMArea(int, int, int, int, int, int);
49 void copyXBMArea(int, int, int, int, int, int);
50 void setMaskXY(int, int);
52 void parse_rcfile(const char *, rckeys *);
54 #endif