2 wmgeneral was taken from wmppp.
4 It has a lot of routines which most of the wm* programs use.
6 ------------------------------------------------------------
8 Copyright (C) 1998 Martijn Pieterse (pieterse@xs4all.nl)
10 This program is free software; you can redistribute it and/or
11 modify it under the terms of the GNU General Public License
12 as published by the Free Software Foundation; either version 2
13 of the License, or (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
27 #ifndef WMGENERAL_H_INCLUDED
28 #define WMGENERAL_H_INCLUDED
30 #include <X11/X.h> /* for Pixmap */
31 #include <X11/Xlib.h> /* for Display */
32 #include <X11/xpm.h> /* for XpmAttributes */
38 #define MAX_MOUSE_REGION (16)
49 typedef struct _rckeys rckeys
;
57 typedef struct _rckeys2 rckeys2
;
62 XpmAttributes attributes
;
69 extern Display
*display
;
71 /***********************/
72 /* Function Prototypes */
73 /***********************/
75 void AddMouseRegion(unsigned index
, int left
, int top
, int right
, int bottom
);
76 int CheckMouseRegion(int x
, int y
);
78 void openXwindow(int argc
, char *argv
[], char **, char *, int, int);
79 void RedrawWindow(void);
80 void RedrawWindowXY(int x
, int y
);
82 void createXBMfromXPM(char *, char **, int, int);
83 void copyXPMArea(int, int, int, int, int, int);
84 void copyXBMArea(int, int, int, int, int, int);
85 void setMaskXY(int, int);
87 void parse_rcfile(const char *, rckeys
*);