aboutsummaryrefslogtreecommitdiff
path: root/src/jxlib.h
blob: e306c2d72efdfa79ac71307db025e843487703b0 (plain)
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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
/**
 * @file jxlib.h
 * @author Joe Wingbermuehle
 * @date 2004-2006
 *
 * @brief Macros to wrap X calls for debugging.
 *
 */

#ifndef JXLIB_H
#define JXLIB_H

#define JXAddToSaveSet( a, b ) \
	( SetCheckpoint(), XAddToSaveSet( a, b ) )

#define JXAllocColor( a, b, c ) \
	( SetCheckpoint(), XAllocColor( a, b, c ) )

#define JXGetRGBColormaps( a, b, c, d, e ) \
	( SetCheckpoint(), XGetRGBColormaps( a, b, c, d, e ) )

#define JXQueryColor( a, b, c ) \
	( SetCheckpoint(), XQueryColor( a, b, c ) )

#define JXAllowEvents( a, b, c ) \
	( SetCheckpoint(), XAllowEvents( a, b, c ) )

#define JXChangeProperty( a, b, c, d, e, f, g, h ) \
	( SetCheckpoint(), XChangeProperty( a, b, c, d, e, f, g, h ) )

#define JXChangeWindowAttributes( a, b, c, d ) \
	( SetCheckpoint(), XChangeWindowAttributes( a, b, c, d ) )

#define JXCheckTypedEvent( a, b, c ) \
	( SetCheckpoint(), XCheckTypedEvent( a, b, c ) )

#define JXCheckTypedWindowEvent( a, b, c, d ) \
	( SetCheckpoint(), XCheckTypedWindowEvent( a, b, c, d ) )

#define JXClearWindow( a, b ) \
	( SetCheckpoint(), XClearWindow( a, b ) )

#define JXCloseDisplay( a ) \
	( SetCheckpoint(), XCloseDisplay( a ) )

#define JXConfigureWindow( a, b, c, d ) \
	( SetCheckpoint(), XConfigureWindow( a, b, c, d ) )

#define JXConnectionNumber( a ) \
	( SetCheckpoint(), XConnectionNumber( a ) )

#define JXCopyArea( a, b, c, d, e, f, g, h, i, j ) \
	( SetCheckpoint(), XCopyArea( a, b, c, d, e, f, g, h, i, j ) )

#define JXCopyPlane( a, b, c, d, e, f, g, h, i, j, k ) \
	( SetCheckpoint(), XCopyPlane( a, b, c, d, e, f, g, h, i, j, k ) )

#define JXCreateFontCursor( a, b ) \
	( SetCheckpoint(), XCreateFontCursor( a, b ) )

#define JXCreateGC( a, b, c, d ) \
	( SetCheckpoint(), XCreateGC( a, b, c, d ) )

#define JXCreateImage( a, b, c, d, e, f, g, h, i, j ) \
	( \
		SetCheckpoint(), \
		XCreateImage( a, b, c, d, e, f, g, h, i, j ) \
	)

#define JXCreatePixmap( a, b, c, d, e ) \
	( SetCheckpoint(), XCreatePixmap( a, b, c, d, e ) )

#define JXCreatePixmapFromBitmapData( a, b, c, d, e, f, g, h ) \
	( \
		SetCheckpoint(), \
		XCreatePixmapFromBitmapData( a, b, c, d, e, f, g, h ) \
	)

#define JXCreateSimpleWindow( a, b, c, d, e, f, g, h, i ) \
	( \
		SetCheckpoint(), \
		XCreateSimpleWindow( a, b, c, d, e, f, g, h, i ) \
	)

#define JXCreateWindow( a, b, c, d, e, f, g, h, i, j, k, l ) \
	( \
		SetCheckpoint(), \
		XCreateWindow( a, b, c, d, e, f, g, h, i, j, k, l ) \
	)

#define JXDefineCursor( a, b, c ) \
	( SetCheckpoint(), XDefineCursor( a, b, c ) )

#define JXDestroyImage( a ) \
	( SetCheckpoint(), XDestroyImage( a ) )

#define JXDestroyWindow( a, b ) \
	( SetCheckpoint(), XDestroyWindow( a, b ) )

#define JXDrawPoint( a, b, c, d, e ) \
	( SetCheckpoint(), XDrawPoint( a, b, c, d, e ) )

#define JXDrawLine( a, b, c, d, e, f, g ) \
	( SetCheckpoint(), XDrawLine( a, b, c, d, e, f, g ) )

#define JXDrawRectangle( a, b, c, d, e, f, g ) \
	( SetCheckpoint(), XDrawRectangle( a, b, c, d, e, f, g ) )

#define JXDrawString( a, b, c, d, e, f, g ) \
	( SetCheckpoint(), XDrawString( a, b, c, d, e, f, g ) )

#define JXFetchName( a, b, c ) \
	( SetCheckpoint(), XFetchName( a, b, c ) )

#define JXFillRectangle( a, b, c, d, e, f, g ) \
	( SetCheckpoint(), XFillRectangle( a, b, c, d, e, f, g ) )

#define JXFlush( a ) \
	( SetCheckpoint(), XFlush( a ) )

#define JXFree( a ) \
	( SetCheckpoint(), XFree( a ) )

#define JXFreeColors( a, b, c, d, e ) \
	( SetCheckpoint(), XFreeColors( a, b, c, d, e ) )

#define JXFreeCursor( a, b ) \
	( SetCheckpoint(), XFreeCursor( a, b ) )

#define JXFreeFont( a, b ) \
	( SetCheckpoint(), XFreeFont( a, b ) )

#define JXFreeGC( a, b ) \
	( SetCheckpoint(), XFreeGC( a, b ) )

#define JXFreeModifiermap( a ) \
	( SetCheckpoint(), XFreeModifiermap( a ) )

#define JXFreePixmap( a, b ) \
	( SetCheckpoint(), XFreePixmap( a, b ) )

#define JXGetAtomName( a, b ) \
	( SetCheckpoint(), XGetAtomName( a, b ) )

#define JXGetModifierMapping( a ) \
	( SetCheckpoint(), XGetModifierMapping( a ) )

#define JXGetSubImage( a, b, c, d, e, f, g, h, i, j, k ) \
	( SetCheckpoint(), XGetSubImage( a, b, c, d, e, f, g, h, i, j, k ) )

#define JXGetTransientForHint( a, b, c ) \
	( SetCheckpoint(), XGetTransientForHint( a, b, c ) )

#define JXGetClassHint( a, b, c ) \
	( SetCheckpoint(), XGetClassHint( a, b, c ) )

#define JXGetWindowAttributes( a, b, c ) \
	( SetCheckpoint(), XGetWindowAttributes( a, b, c ) )

#define JXGetWindowProperty( a, b, c, d, e, f, g, h, i, j, k, l ) \
	( SetCheckpoint(), \
	XGetWindowProperty( a, b, c, d, e, f, g, h, i, j, k, l ) )

#define JXGetWMColormapWindows( a, b, c, d ) \
	( SetCheckpoint(), XGetWMColormapWindows( a, b, c, d ) )

#define JXGetWMNormalHints( a, b, c, d ) \
	( SetCheckpoint(), XGetWMNormalHints( a, b, c, d ) )

#define JXSetIconSizes( a, b, c, d ) \
	( SetCheckpoint(), XSetIconSizes( a, b, c, d ) )

#define JXSetWindowBorder( a, b, c ) \
	( SetCheckpoint(), XSetWindowBorder( a, b, c ) )

#define JXGetWMHints( a, b ) \
	( SetCheckpoint(), XGetWMHints( a, b ) )

#define JXGrabButton( a, b, c, d, e, f, g, h, i, j ) \
	( SetCheckpoint(), XGrabButton( a, b, c, d, e, f, g, h, i, j ) )

#define JXKeycodeToKeysym( a, b, c ) \
	( SetCheckpoint(), XKeycodeToKeysym( a, b, c ) )

#define JXGrabKey( a, b, c, d, e, f, g ) \
	( SetCheckpoint(), XGrabKey( a, b, c, d, e, f, g ) )

#define JXUngrabKey( a, b, c, d ) \
	( SetCheckpoint(), XUngrabKey( a, b, c, d ) )

#define JXGrabKeyboard( a, b, c, d, e, f ) \
	( SetCheckpoint(), XGrabKeyboard( a, b, c, d, e, f ) )

#define JXGrabPointer( a, b, c, d, e, f, g, h, i ) \
	( SetCheckpoint(), XGrabPointer( a, b, c, d, e, f, g, h, i ) )

#define JXGrabServer( a ) \
	( SetCheckpoint(), XGrabServer( a ) )

#define JXInstallColormap( a, b ) \
	( SetCheckpoint(), XInstallColormap( a, b ) )

#define JXInternAtom( a, b, c ) \
	( SetCheckpoint(), XInternAtom( a, b, c ) )

#define JXKeysymToKeycode( a, b ) \
	( SetCheckpoint(), XKeysymToKeycode( a, b ) )

#define JXKillClient( a, b ) \
	( SetCheckpoint(), XKillClient( a, b ) )

#define JXLoadQueryFont( a, b ) \
	( SetCheckpoint(), XLoadQueryFont( a, b ) )

#define JXMapRaised( a, b ) \
	( SetCheckpoint(), XMapRaised( a, b ) )

#define JXMapWindow( a, b ) \
	( SetCheckpoint(), XMapWindow( a, b ) )

#define JXMoveResizeWindow( a, b, c, d, e, f ) \
	( SetCheckpoint(), XMoveResizeWindow( a, b, c, d, e, f ) )

#define JXMoveWindow( a, b, c, d ) \
	( SetCheckpoint(), XMoveWindow( a, b, c, d ) )

#define JXNextEvent( a, b ) \
	( SetCheckpoint(), XNextEvent( a, b ) )

#define JXMaskEvent( a, b, c ) \
	( SetCheckpoint(), XMaskEvent( a, b, c ) )

#define JXCheckMaskEvent( a, b, c ) \
	( SetCheckpoint(), XCheckMaskEvent( a, b, c ) )

#define JXOpenDisplay( a ) \
	( SetCheckpoint(), XOpenDisplay( a ) )

#define JXParseColor( a, b, c, d ) \
	( SetCheckpoint(), XParseColor( a, b, c, d ) )

#define JXPending( a ) \
	( SetCheckpoint(), XPending( a ) )

#define JXPutBackEvent( a, b ) \
	( SetCheckpoint(), XPutBackEvent( a, b ) )

#define JXGetImage( a, b, c, d, e, f, g, h ) \
	( SetCheckpoint(), XGetImage( a, b, c, d, e, f, g, h ) )

#define JXPutImage( a, b, c, d, e, f, g, h, i, j ) \
	( SetCheckpoint(), XPutImage( a, b, c, d, e, f, g, h, i, j ) )

#define JXQueryPointer( a, b, c, d, e, f, g, h, i ) \
	( SetCheckpoint(), XQueryPointer( a, b, c, d, e, f, g, h, i ) )

#define JXQueryTree( a, b, c, d, e, f ) \
	( SetCheckpoint(), XQueryTree( a, b, c, d, e, f ) )

#define JXReparentWindow( a, b, c, d, e ) \
	( SetCheckpoint(), XReparentWindow( a, b, c, d, e ) )

#define JXRemoveFromSaveSet( a, b ) \
	( SetCheckpoint(), XRemoveFromSaveSet( a, b ) )

#define JXResizeWindow( a, b, c, d ) \
	( SetCheckpoint(), XResizeWindow( a, b, c, d ) )

#define JXRestackWindows( a, b, c ) \
	( SetCheckpoint(), XRestackWindows( a, b, c ) )

#define JXSelectInput( a, b, c ) \
	( SetCheckpoint(), XSelectInput( a, b, c ) )

#define JXSendEvent( a, b, c, d, e ) \
	( SetCheckpoint(), XSendEvent( a, b, c, d, e ) )

#define JXSetBackground( a, b, c ) \
	( SetCheckpoint(), XSetBackground( a, b, c ) )

#define JXSetClipMask( a, b, c ) \
	( SetCheckpoint(), XSetClipMask( a, b, c ) )

#define JXSetClipOrigin( a, b, c, d ) \
	( SetCheckpoint(), XSetClipOrigin( a, b, c, d) )

#define JXSetClipRectangles( a, b, c, d, e, f, g ) \
	( SetCheckpoint(), XSetClipRectangles( a, b, c, d, e, f, g ) )

#define JXSetErrorHandler( a ) \
	( SetCheckpoint(), XSetErrorHandler( a ) )

#define JXSetFont( a, b, c ) \
	( SetCheckpoint(), XSetFont( a, b, c ) )

#define JXSetForeground( a, b, c ) \
	( SetCheckpoint(), XSetForeground( a, b, c ) )

#define JXSetInputFocus( a, b, c, d ) \
	( SetCheckpoint(), XSetInputFocus( a, b, c, d ) )

#define JXSetWindowBackground( a, b, c ) \
	( SetCheckpoint(), XSetWindowBackground( a, b, c ) )

#define JXSetWindowBorderWidth( a, b, c ) \
	( SetCheckpoint(), XSetWindowBorderWidth( a, b, c ) )

#define JXSetWMNormalHints( a, b, c ) \
	( SetCheckpoint(), XSetWMNormalHints( a, b, c ) )

#define JXShapeCombineRectangles( a, b, c, d, e, f, g, h, i ) \
	( SetCheckpoint(), XShapeCombineRectangles( a, b, c, d, e, f, g, h, i ) )

#define JXShapeCombineShape( a, b, c, d, e, f, g, h ) \
	( SetCheckpoint(), XShapeCombineShape( a, b, c, d, e, f, g, h ) )

#define JXShapeQueryExtension( a, b, c ) \
	( SetCheckpoint(), XShapeQueryExtension( a, b, c ) )

#define JXShapeQueryExtents( a, b, c, d, e, f, g, h, i, j, k, l ) \
	( SetCheckpoint(), \
	XShapeQueryExtents( a, b, c, d, e, f, g, h, i, j, k, l ) )

#define JXShapeSelectInput( a, b, c ) \
	( SetCheckpoint(), XShapeSelectInput( a, b, c ) )

#define JXStoreName( a, b, c ) \
	( SetCheckpoint(), XStoreName( a, b, c ) )

#define JXStringToKeysym( a ) \
	( SetCheckpoint(), XStringToKeysym( a ) )

#define JXSync( a, b ) \
	( SetCheckpoint(), XSync( a, b ) )

#define JXTextWidth( a, b, c ) \
	( SetCheckpoint(), XTextWidth( a, b, c ) )

#define JXUngrabButton( a, b, c, d ) \
	( SetCheckpoint(), XUngrabButton( a, b, c, d ) )

#define JXUngrabKeyboard( a, b ) \
	( SetCheckpoint(), XUngrabKeyboard( a, b ) )

#define JXUngrabPointer( a, b ) \
	( SetCheckpoint(), XUngrabPointer( a, b ) )

#define JXUngrabServer( a ) \
	( SetCheckpoint(), XUngrabServer( a ) )

#define JXUnmapWindow( a, b ) \
	( SetCheckpoint(), XUnmapWindow( a, b ) )

#define JXWarpPointer( a, b, c, d, e, f, g, h, i ) \
	( SetCheckpoint(), XWarpPointer( a, b, c, d, e, f, g, h, i ) )

#define JXSetSelectionOwner( a, b, c, d ) \
	( SetCheckpoint(), XSetSelectionOwner( a, b, c, d ) )

#define JXGetSelectionOwner( a, b ) \
	( SetCheckpoint(), XGetSelectionOwner( a, b ) )

/* XFT */

#define JXftFontOpenName( a, b, c ) \
	( SetCheckpoint(), XftFontOpenName( a, b, c ) )

#define JXftFontOpenXlfd( a, b, c ) \
	( SetCheckpoint(), XftFontOpenXlfd( a, b, c ) )

#define JXftDrawCreate( a, b, c, d ) \
	( SetCheckpoint(), XftDrawCreate( a, b, c, d ) )

#define JXftDrawDestroy( a ) \
	( SetCheckpoint(), XftDrawDestroy( a ) )

#define JXftTextExtentsUtf8( a, b, c, d, e ) \
	( SetCheckpoint(), XftTextExtentsUtf8( a, b, c, d, e ) )

#define JXftDrawChange( a, b ) \
	( SetCheckpoint(), XftDrawChange( a, b ) )

#define JXftDrawSetClipRectangles( a, b, c, d, e ) \
	( SetCheckpoint(), XftDrawSetClipRectangles( a, b, c, d, e ) )

#define JXftDrawStringUtf8( a, b, c, d, e, f, g ) \
	( SetCheckpoint(), XftDrawStringUtf8( a, b, c, d, e, f, g ) )

#define JXftColorFree( a, b, c, d ) \
	( SetCheckpoint(), XftColorFree( a, b, c, d ) )

#define JXftColorAllocValue( a, b, c, d, e ) \
	( SetCheckpoint(), XftColorAllocValue( a, b, c, d, e ) )

#define JXftFontClose( a, b ) \
	( SetCheckpoint(), XftFontClose( a, b ) )

/* Xrender */

#define JXRenderQueryExtension( a, b, c ) \
	( SetCheckpoint(), XRenderQueryExtension( a, b, c ) )

#define JXRenderFindVisualFormat( a, b ) \
	( SetCheckpoint(), XRenderFindVisualFormat( a, b ) )

#define JXRenderFindFormat( a, b, c, d ) \
	( SetCheckpoint(), XRenderFindFormat( a, b, c, d ) )

#define JXRenderCreatePicture( a, b, c, d, e ) \
	( SetCheckpoint(), XRenderCreatePicture( a, b, c, d, e ) )

#define JXRenderFreePicture( a, b ) \
	( SetCheckpoint(), XRenderFreePicture( a, b ) )

#define JXRenderComposite( a, b, c, d, e, f, g, h, i, j, k, l, m ) \
	( SetCheckpoint(), \
	  XRenderComposite( a, b, c, d, e, f, g, h, i, j, k, l, m) )

#endif /* JXLIB_H */