wmcore: set DESTDIR so binary installs correctly.
[dockapps.git] / buttonmaker / src / wmgeneral.h
blob902e80d81daf7c1b213c1ab9231817e17085ff93
1 /*
2 * wmgeneral.h
3 * Copyright (C) Renan Vedovato Traba 2012 <rvt10@inf.ufpr.br>
5 ButtonMaker is free software: you can redistribute it and/or modify it
6 under the terms of the GNU General Public License as published by the
7 Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
10 ButtonMaker is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 See the GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License along
16 with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef WMGENERAL_H_INCLUDED
20 #define WMGENERAL_H_INCLUDED
21 /* Defines */
22 #define MAX_MOUSE_REGION (8)
24 /* Typedefs */
25 typedef struct _rckeys rckeys;
27 struct _rckeys {
28 const char *label;
29 char **var;
32 typedef struct {
33 Pixmap pixmap;
34 Pixmap mask;
35 XpmAttributes attributes;
36 } XpmIcon;
38 /* Global variable */
39 Display *display;
40 Window Root;
41 GC NormalGC;
42 XpmIcon wmgen;
44 /* Function Prototypes */
45 void AddMouseRegion(int idx, int left, int top, int right, int bottom);
46 int CheckMouseRegion(int x, int y);
47 void openXwindow(int argc, char *argv[], char **, char *, int, int);
48 void RedrawWindow(void);
49 void RedrawWindowXY(int x, int y);
50 void copyXPMArea(int, int, int, int, int, int);
51 void copyXBMArea(int, int, int, int, int, int);
52 void setMaskXY(int, int);
53 void parse_rcfile(const char *, rckeys *);
55 #endif