wmail: updated change-log and bumped to 2.2.
[dockapps.git] / wmbiff / wmgeneral / wmgeneral.h
blob84969668e93c9337f9fad1c1fa838893cb85915d
1 #ifndef WMGENERAL_H_INCLUDED
2 #define WMGENERAL_H_INCLUDED
4 /***********/
5 /* Defines */
6 /***********/
8 #define MAX_MOUSE_REGION (40)
10 /************/
11 /* Typedefs */
12 /************/
14 typedef struct _rckeys rckeys;
16 struct _rckeys {
17 const char *label;
18 char **var;
21 typedef struct _rckeys2 rckeys2;
23 struct _rckeys2 {
24 const char *family;
25 const char *label;
26 char **var;
29 typedef struct {
30 Pixmap pixmap;
31 Pixmap mask;
32 XpmAttributes attributes;
33 } XpmIcon;
35 /*******************/
36 /* Global variable */
37 /*******************/
39 Display *display;
41 /***********************/
42 /* Function Prototypes */
43 /***********************/
45 void AddMouseRegion(unsigned int rgn_index, int left, int top, int right,
46 int bottom);
47 int CheckMouseRegion(int x, int y);
49 void openXwindow(int argc, const char *argv[], const char **,
50 const char **, char *, int, int, int);
51 void RedrawWindow(void);
52 void RedrawWindowXY(int x, int y);
54 void createXBMfromXPM(char *, const 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);
59 void parse_rcfile(const char *, rckeys *);
61 /* for wmbiff */
62 int loadFont(const char *fontname); /* -1 on fail, 0 success. */
63 void drawString(int dest_x, int dest_y, const char *string,
64 const char *colorname, const char *bgcolorname,
65 int right_justify);
66 void eraseRect(int x, int y, int x2, int y2, const char *bgcolorname);
67 /* end wmbiff */
69 #endif