wmshutdown: Destroy dialog window before shutting down. This is especially useful...
[dockapps.git] / wmmoonclock / src / xutils.h
blobf9fc53863ea91fc995cc5d7ac658bbc0aa8c6732
1 #ifndef WMGENERAL_H_INCLUDED
2 #define WMGENERAL_H_INCLUDED
4 #include <X11/X.h>
5 #include <X11/Xlib.h>
6 #include <X11/xpm.h>
8 /*
9 * Typedefs
11 typedef struct {
12 Pixmap pixmap;
13 Pixmap mask;
14 XpmAttributes attributes;
15 } XpmIcon;
21 * Global variable
23 Display *display;
24 Window Root;
25 Window iconwin, win;
26 int screen;
27 int DisplayDepth;
34 * Function Prototypes
36 void AddMouseRegion(int, int, int, int, int);
37 int CheckMouseRegion(int, int);
38 void openXwindow(int, char **, char **, char *, int, int, char *, char *, char *);
39 void initXwindow(int, char **);
40 void RedrawWindow(void);
41 void RedrawWindowXY(int, int);
42 void copyXPMArea(int, int, int, int, int, int);
43 void copyXBMArea(int, int, int, int, int, int);
44 void setMaskXY(int, int);
45 unsigned long getColor(char *, float);
46 void RedrawWindow(void);
49 #endif