1 [+ autogen5 template +]
2 [+INCLUDE (string-append "licenses/" (get "License") ".tpl") \+]
3 [+INCLUDE (string-append "indent.tpl") \+]
4 /* [+INVOKE EMACS-MODELINE MODE="C" \+] */
5 [+INVOKE START-INDENT\+]
6 /*
7  * wmgeneral.h
8  * Copyright (C) [+(shell "date +%Y")+] [+Author+][+IF (get "Email")+] <[+Email+]>[+ENDIF+]
9  *
10 [+INVOKE LICENSE-DESCRIPTION PFX=" * " PROGRAM=(get "Name") OWNER=(get "Author") \+]
11  */
12 
13 #ifndef WMGENERAL_H_INCLUDED
14 #define WMGENERAL_H_INCLUDED
15 /* Defines */
16 #define MAX_MOUSE_REGION (8)
17 
18 /* Typedefs */
19 typedef struct _rckeys rckeys;
20 
21 struct _rckeys {
22 	const char	*label;
23 	char		**var;
24 };
25 
26 typedef struct {
27 	Pixmap		pixmap;
28 	Pixmap		mask;
29 	XpmAttributes	attributes;
30 } XpmIcon;
31 
32 /* Global variable */
33 Display	*display;
34 Window          Root;
35 GC              NormalGC;
36 XpmIcon         wmgen;
37 
38 /* Function Prototypes */
39 void AddMouseRegion(int idx, int left, int top, int right, int bottom);
40 int CheckMouseRegion(int x, int y);
41 void openXwindow(int argc, char *argv[], char **, char *, int, int);
42 void RedrawWindow(void);
43 void RedrawWindowXY(int x, int y);
44 void copyXPMArea(int, int, int, int, int, int);
45 void copyXBMArea(int, int, int, int, int, int);
46 void setMaskXY(int, int);
47 void parse_rcfile(const char *, rckeys *);
48 
49 #endif
50 [+INVOKE END-INDENT\+]
51