2014-11-20 22:38:54 +00:00
|
|
|
#ifndef WMGENERAL_H_INCLUDED
|
|
|
|
#define WMGENERAL_H_INCLUDED
|
|
|
|
|
|
|
|
/***********/
|
|
|
|
/* Defines */
|
|
|
|
/***********/
|
|
|
|
|
|
|
|
#define MAX_MOUSE_REGION (16)
|
|
|
|
|
|
|
|
/************/
|
|
|
|
/* Typedefs */
|
|
|
|
/************/
|
|
|
|
|
|
|
|
typedef struct _rckeys rckeys;
|
|
|
|
|
|
|
|
struct _rckeys {
|
|
|
|
const char *label;
|
|
|
|
char **var;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct _rckeys2 rckeys2;
|
|
|
|
|
|
|
|
struct _rckeys2 {
|
|
|
|
const char *family;
|
|
|
|
const char *label;
|
|
|
|
char **var;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
Pixmap pixmap;
|
|
|
|
Pixmap mask;
|
|
|
|
XpmAttributes attributes;
|
|
|
|
} XpmIcon;
|
|
|
|
|
|
|
|
/*******************/
|
|
|
|
/* Global variable */
|
|
|
|
/*******************/
|
|
|
|
|
|
|
|
Display *display;
|
|
|
|
|
|
|
|
/***********************/
|
|
|
|
/* Function Prototypes */
|
|
|
|
/***********************/
|
|
|
|
|
|
|
|
void AddMouseRegion(int index, int left, int top, int right, int bottom);
|
|
|
|
int CheckMouseRegion(int x, int y);
|
|
|
|
|
2015-05-20 03:30:47 +00:00
|
|
|
void openXwindow(int argc, char *argv[], char **, char *, int, int);
|
2014-11-20 22:38:54 +00:00
|
|
|
void RedrawWindow(void);
|
|
|
|
void RedrawWindowXY(int x, int y);
|
|
|
|
|
|
|
|
void createXBMfromXPM(char *, char **, int, int);
|
|
|
|
void copyXPMArea(int, int, int, int, int, int);
|
|
|
|
void copyXBMArea(int, int, int, int, int, int);
|
|
|
|
void setMaskXY(int, int);
|
|
|
|
|
|
|
|
void parse_rcfile(const char *, rckeys *);
|
|
|
|
|
|
|
|
#endif
|