wmgeneral: Add proper copyright headers; fix changelog formatting.
[dockapps.git] / wmfsm / wmgeneral / wmgeneral.h
blobc3454c560d6b482b5f87d0e408863a9173eb2000
1 /*
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
23 02110-1301, USA.
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 */
34 /***********/
35 /* Defines */
36 /***********/
38 #define MAX_MOUSE_REGION (16)
40 /************/
41 /* Typedefs */
42 /************/
44 struct _rckeys {
45 const char *label;
46 char **var;
49 typedef struct _rckeys rckeys;
51 struct _rckeys2 {
52 const char *family;
53 const char *label;
54 char **var;
57 typedef struct _rckeys2 rckeys2;
59 typedef struct {
60 Pixmap pixmap;
61 Pixmap mask;
62 XpmAttributes attributes;
63 } XpmIcon;
65 /*******************/
66 /* Global variable */
67 /*******************/
69 Display *display;
71 /***********************/
72 /* Function Prototypes */
73 /***********************/
75 void AddMouseRegion(int 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 *);
89 #endif