wmclockmon: update change-log
[dockapps.git] / wmmp3 / wmgeneral.h
blob1fab449dc97748247da2dfa83be457e4da5ff6f3
1 #ifndef WMGENERAL_H_INCLUDED
2 #define WMGENERAL_H_INCLUDED
4 #include <X11/Xlib.h>
5 #include <X11/xpm.h>
6 #include <X11/extensions/shape.h>
9 /***********/
10 /* Defines */
11 /***********/
13 #define MAX_MOUSE_REGION (16)
15 /************/
16 /* Typedefs */
17 /************/
19 typedef struct _rckeys rckeys;
21 struct _rckeys {
22 const char *label;
23 char **var;
26 typedef struct _rckeys2 rckeys2;
28 struct _rckeys2 {
29 const char *family;
30 const char *label;
31 char **var;
34 typedef struct {
35 Pixmap pixmap;
36 Pixmap mask;
37 XpmAttributes attributes;
38 } XpmIcon;
40 /*******************/
41 /* Global variable */
42 /*******************/
44 Display *display;
45 Window Root, iconwin, win;
46 XpmIcon wmgen;
47 XpmIcon wmfont;
49 /***********************/
50 /* Function Prototypes */
51 /***********************/
53 void AddMouseRegion(unsigned index, int left, int top, int right, int bottom);
54 int CheckMouseRegion(int x, int y);
56 void openXwindow(int argc, char *argv[], char **, char *, int, int);
57 void RedrawWindow(void);
58 void RedrawWindowXY(int x, int y);
60 void createXBMfromXPM(char *, char **, int, int);
61 void copyXPMArea(int, int, int, int, int, int);
62 void copyXBMArea(int, int, int, int, int, int);
63 void setMaskXY(int, int);
65 void parse_rcfile(const char *, rckeys *);
67 void font_init();
68 void draw_char(char c, int x, int y);
69 void draw_string(char *s, int x, int y);
71 #endif