2016-12-02 01:38:39 +00:00
|
|
|
#ifndef WMGENERAL_H_INCLUDED
|
|
|
|
#define WMGENERAL_H_INCLUDED
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
2016-12-23 23:28:17 +00:00
|
|
|
* Typedefs
|
2016-12-02 01:38:39 +00:00
|
|
|
*/
|
|
|
|
typedef struct {
|
|
|
|
Pixmap pixmap;
|
|
|
|
Pixmap mask;
|
|
|
|
XpmAttributes attributes;
|
|
|
|
} XpmIcon;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Global variable
|
|
|
|
*/
|
|
|
|
Display *display;
|
|
|
|
Window Root;
|
|
|
|
Window iconwin, win;
|
2016-12-23 23:28:17 +00:00
|
|
|
int screen;
|
2016-12-02 01:38:39 +00:00
|
|
|
int DisplayDepth;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Function Prototypes
|
|
|
|
*/
|
|
|
|
void AddMouseRegion(int, int, int, int, int);
|
|
|
|
int CheckMouseRegion(int, int);
|
|
|
|
void openXwindow(int, char **, char **, char *, int, int);
|
|
|
|
void initXwindow(int, char **);
|
|
|
|
void RedrawWindow(void);
|
|
|
|
void RedrawWindowXY(int, int);
|
|
|
|
void copyXPMArea(int, int, int, int, int, int);
|
|
|
|
void copyXBMArea(int, int, int, int, int, int);
|
|
|
|
void setMaskXY(int, int);
|
|
|
|
unsigned long getColor(char *, float, int *, int *, int *);
|
|
|
|
unsigned long getBlendedColor(char *, float, int, int, int);
|
|
|
|
void RedrawWindow(void);
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|