-
Notifications
You must be signed in to change notification settings - Fork 4
/
functions_internal.h
198 lines (168 loc) · 4.12 KB
/
functions_internal.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
/*
* Internal bits for function handling
*/
#ifndef _CTWM_FUNCTIONS_INTERNAL_H
#define _CTWM_FUNCTIONS_INTERNAL_H
/* Keep in sync with ExecuteFunction() in external functions.h */
#define EF_FULLPROTO \
int func, void * action, Window w, TwmWindow * tmp_win, \
XEvent * eventp, int context, bool pulldown
#define EF_ARGS \
/*int */func, /*void **/action, /*Window */w, /*TwmWindow **/tmp_win, \
/*XEvent **/eventp, /*int */context, /*bool */pulldown
typedef void (ExFunc)(EF_FULLPROTO);
#define DFHANDLER(func) void f_##func##_impl(EF_FULLPROTO)
/*
* Various handlers
*/
/* functions_icmgr_wsmgr.c */
DFHANDLER(upiconmgr);
DFHANDLER(downiconmgr);
DFHANDLER(lefticonmgr);
DFHANDLER(righticonmgr);
DFHANDLER(forwiconmgr);
DFHANDLER(backiconmgr);
DFHANDLER(forwmapiconmgr);
DFHANDLER(backmapiconmgr);
DFHANDLER(nexticonmgr);
DFHANDLER(previconmgr);
DFHANDLER(showiconmgr);
DFHANDLER(hideiconmgr);
DFHANDLER(sorticonmgr);
DFHANDLER(showworkspacemgr);
DFHANDLER(hideworkspacemgr);
DFHANDLER(toggleworkspacemgr);
DFHANDLER(togglestate);
DFHANDLER(setbuttonsstate);
DFHANDLER(setmapstate);
/* functions_win_moveresize.c */
DFHANDLER(move);
DFHANDLER(forcemove);
DFHANDLER(movepack);
DFHANDLER(movepush);
DFHANDLER(pack);
DFHANDLER(jumpleft);
DFHANDLER(jumpright);
DFHANDLER(jumpdown);
DFHANDLER(jumpup);
DFHANDLER(resize);
DFHANDLER(zoom);
DFHANDLER(horizoom);
DFHANDLER(fullzoom);
DFHANDLER(fullscreenzoom);
DFHANDLER(leftzoom);
DFHANDLER(rightzoom);
DFHANDLER(topzoom);
DFHANDLER(bottomzoom);
DFHANDLER(xhorizoom);
DFHANDLER(xfullzoom);
DFHANDLER(xfullscreenzoom);
DFHANDLER(xleftzoom);
DFHANDLER(xrightzoom);
DFHANDLER(xtopzoom);
DFHANDLER(xbottomzoom);
DFHANDLER(xzoom);
DFHANDLER(fill);
DFHANDLER(initsize);
DFHANDLER(moveresize);
DFHANDLER(changesize);
DFHANDLER(savegeometry);
DFHANDLER(restoregeometry);
/* functions_workspaces.c */
DFHANDLER(occupy);
DFHANDLER(occupyall);
DFHANDLER(addtoworkspace);
DFHANDLER(removefromworkspace);
DFHANDLER(toggleoccupation);
DFHANDLER(vanish);
DFHANDLER(warphere);
DFHANDLER(movetonextworkspace);
DFHANDLER(movetoprevworkspace);
DFHANDLER(movetonextworkspaceandfollow);
DFHANDLER(movetoprevworkspaceandfollow);
DFHANDLER(gotoworkspace);
DFHANDLER(prevworkspace);
DFHANDLER(nextworkspace);
DFHANDLER(rightworkspace);
DFHANDLER(leftworkspace);
DFHANDLER(upworkspace);
DFHANDLER(downworkspace);
#ifdef CAPTIVE
/* functions_captive.c */
DFHANDLER(adoptwindow);
DFHANDLER(hypermove);
#endif
/* functions_identify.c */
DFHANDLER(identify);
DFHANDLER(version);
/* functions_win.c */
DFHANDLER(autoraise);
DFHANDLER(autolower);
DFHANDLER(raise);
DFHANDLER(raiseorsqueeze);
DFHANDLER(lower);
DFHANDLER(raiselower);
DFHANDLER(tinyraise);
DFHANDLER(tinylower);
DFHANDLER(circleup);
DFHANDLER(circledown);
DFHANDLER(deiconify);
DFHANDLER(iconify);
DFHANDLER(popup);
DFHANDLER(focus);
DFHANDLER(unfocus);
DFHANDLER(delete);
DFHANDLER(destroy);
DFHANDLER(deleteordestroy);
DFHANDLER(priorityswitching);
DFHANDLER(switchpriority);
DFHANDLER(setpriority);
DFHANDLER(changepriority);
DFHANDLER(saveyourself);
DFHANDLER(colormap);
DFHANDLER(refresh);
DFHANDLER(winrefresh);
DFHANDLER(squeeze);
DFHANDLER(unsqueeze);
DFHANDLER(movetitlebar);
/* functions_warp.c */
DFHANDLER(warpto);
DFHANDLER(warptoiconmgr);
DFHANDLER(ring);
DFHANDLER(warpring);
DFHANDLER(winwarp);
/* functions_misc.c */
DFHANDLER(startanimation);
DFHANDLER(stopanimation);
DFHANDLER(speedupanimation);
DFHANDLER(slowdownanimation);
DFHANDLER(menu);
DFHANDLER(pin);
DFHANDLER(altkeymap);
DFHANDLER(altcontext);
DFHANDLER(quit);
DFHANDLER(restart);
DFHANDLER(beep);
DFHANDLER(trace);
#ifdef WINBOX
DFHANDLER(fittocontent);
#endif
DFHANDLER(showbackground);
DFHANDLER(raiseicons);
DFHANDLER(rescuewindows);
DFHANDLER(warptoscreen);
#ifdef SOUNDS
DFHANDLER(togglesound);
DFHANDLER(rereadsounds);
#endif
DFHANDLER(exec);
/*
* Extra exported from functions_icmgr_wsmgr.c for use in
* f.delete{,ordestroy}.
*/
void HideIconManager(void);
/* Several different sections of window handling need this */
extern Time last_time;
/* Several places need to frob this to leave the cursor alone */
extern bool func_reset_cursor;
#endif /* _CTWM_FUNCTIONS_INTERNAL_H */