*** empty log message ***
[dana/urxvt.git] / W11 / wrap / xwrappers.gen
1
2 typedef StatusDef (proto_XAllocColor)( Display *display, Colormap cmap, XColor *xc);
3 static proto_XAllocColor *func_XAllocColor = NULL;
4 StatusDef XAllocColor( Display *display, Colormap cmap, XColor *xc) {
5         if (!func_XAllocColor) func_XAllocColor=(proto_XAllocColor *)_loadfunc("XAllocColor");
6         return (func_XAllocColor)( display, cmap, xc);
7 }
8
9 typedef StatusDef (proto_XAllocColorCells)( Display *display, Colormap cmap, BoolDef cont, unsigned long *pmasks, unsigned int np, unsigned long *pixels, unsigned int nc);
10 static proto_XAllocColorCells *func_XAllocColorCells = NULL;
11 StatusDef XAllocColorCells( Display *display, Colormap cmap, BoolDef cont, unsigned long *pmasks, unsigned int np, unsigned long *pixels, unsigned int nc) {
12         if (!func_XAllocColorCells) func_XAllocColorCells=(proto_XAllocColorCells *)_loadfunc("XAllocColorCells");
13         return (func_XAllocColorCells)( display, cmap, cont, pmasks, np, pixels, nc);
14 }
15
16 typedef StatusDef (proto_XAllocColorPlanes)( Display *display, Colormap cmap, BoolDef cont, unsigned long *pixels, int nc, int nr,int ng,int nb, unsigned long *rmask, unsigned long *gmask, unsigned long *bmask);
17 static proto_XAllocColorPlanes *func_XAllocColorPlanes = NULL;
18 StatusDef XAllocColorPlanes( Display *display, Colormap cmap, BoolDef cont, unsigned long *pixels, int nc, int nr,int ng,int nb, unsigned long *rmask, unsigned long *gmask, unsigned long *bmask) {
19         if (!func_XAllocColorPlanes) func_XAllocColorPlanes=(proto_XAllocColorPlanes *)_loadfunc("XAllocColorPlanes");
20         return (func_XAllocColorPlanes)( display, cmap, cont, pixels, nc, nr,ng,nb, rmask, gmask, bmask);
21 }
22
23 typedef StatusDef (proto_XAllocNamedColor)(Display *display, Colormap cmap, const char *cname, XColor *cell, XColor *rgb);
24 static proto_XAllocNamedColor *func_XAllocNamedColor = NULL;
25 StatusDef XAllocNamedColor(Display *display, Colormap cmap, const char *cname, XColor *cell, XColor *rgb) {
26         if (!func_XAllocNamedColor) func_XAllocNamedColor=(proto_XAllocNamedColor *)_loadfunc("XAllocNamedColor");
27         return (func_XAllocNamedColor)(display, cmap, cname, cell, rgb);
28 }
29
30 typedef int (proto_XBell)( Display *display, int pc);
31 static proto_XBell *func_XBell = NULL;
32 int XBell( Display *display, int pc) {
33         if (!func_XBell) func_XBell=(proto_XBell *)_loadfunc("XBell");
34         return (func_XBell)( display, pc);
35 }
36
37 typedef int (proto_XChangeGC)( Display* display, GC gc, unsigned long mask, XGCValues* gc_values);
38 static proto_XChangeGC *func_XChangeGC = NULL;
39 int XChangeGC( Display* display, GC gc, unsigned long mask, XGCValues* gc_values) {
40         if (!func_XChangeGC) func_XChangeGC=(proto_XChangeGC *)_loadfunc("XChangeGC");
41         return (func_XChangeGC)( display, gc, mask, gc_values);
42 }
43
44 typedef int (proto_XChangeProperty)( Display *display, Window window, Atom property, Atom type, int format, int mode, const unsigned char *data, int nelements);
45 static proto_XChangeProperty *func_XChangeProperty = NULL;
46 int XChangeProperty( Display *display, Window window, Atom property, Atom type, int format, int mode, const unsigned char *data, int nelements) {
47         if (!func_XChangeProperty) func_XChangeProperty=(proto_XChangeProperty *)_loadfunc("XChangeProperty");
48         return (func_XChangeProperty)( display, window, property, type, format, mode, data, nelements);
49 }
50
51 typedef int (proto_XChangeWindowAttributes)( Display *display, Window w, unsigned long vmask, XSetWindowAttributes *attr);
52 static proto_XChangeWindowAttributes *func_XChangeWindowAttributes = NULL;
53 int XChangeWindowAttributes( Display *display, Window w, unsigned long vmask, XSetWindowAttributes *attr) {
54         if (!func_XChangeWindowAttributes) func_XChangeWindowAttributes=(proto_XChangeWindowAttributes *)_loadfunc("XChangeWindowAttributes");
55         return (func_XChangeWindowAttributes)( display, w, vmask, attr);
56 }
57
58 typedef BoolDef (proto_XCheckTypedEvent)( Display *display, int ev, XEvent *rep);
59 static proto_XCheckTypedEvent *func_XCheckTypedEvent = NULL;
60 BoolDef XCheckTypedEvent( Display *display, int ev, XEvent *rep) {
61         if (!func_XCheckTypedEvent) func_XCheckTypedEvent=(proto_XCheckTypedEvent *)_loadfunc("XCheckTypedEvent");
62         return (func_XCheckTypedEvent)( display, ev, rep);
63 }
64
65 typedef BoolDef (proto_XCheckTypedWindowEvent)( Display* display, Window w, int event_type, XEvent* event_return);
66 static proto_XCheckTypedWindowEvent *func_XCheckTypedWindowEvent = NULL;
67 BoolDef XCheckTypedWindowEvent( Display* display, Window w, int event_type, XEvent* event_return) {
68         if (!func_XCheckTypedWindowEvent) func_XCheckTypedWindowEvent=(proto_XCheckTypedWindowEvent *)_loadfunc("XCheckTypedWindowEvent");
69         return (func_XCheckTypedWindowEvent)( display, w, event_type, event_return);
70 }
71
72 typedef BoolDef (proto_XCheckWindowEvent)( Display *display, Window w, long emask, XEvent *ev);
73 static proto_XCheckWindowEvent *func_XCheckWindowEvent = NULL;
74 BoolDef XCheckWindowEvent( Display *display, Window w, long emask, XEvent *ev) {
75         if (!func_XCheckWindowEvent) func_XCheckWindowEvent=(proto_XCheckWindowEvent *)_loadfunc("XCheckWindowEvent");
76         return (func_XCheckWindowEvent)( display, w, emask, ev);
77 }
78
79 typedef int (proto_XClearArea)( Display *display, Window w, int x, int y, unsigned int width, unsigned int height, BoolDef exposures);
80 static proto_XClearArea *func_XClearArea = NULL;
81 int XClearArea( Display *display, Window w, int x, int y, unsigned int width, unsigned int height, BoolDef exposures) {
82         if (!func_XClearArea) func_XClearArea=(proto_XClearArea *)_loadfunc("XClearArea");
83         return (func_XClearArea)( display, w, x, y, width, height, exposures);
84 }
85
86 typedef int (proto_XClearWindow)(Display *display, Window w);
87 static proto_XClearWindow *func_XClearWindow = NULL;
88 int XClearWindow(Display *display, Window w) {
89         if (!func_XClearWindow) func_XClearWindow=(proto_XClearWindow *)_loadfunc("XClearWindow");
90         return (func_XClearWindow)(display, w);
91 }
92
93 typedef int (proto_XClipBox)( Region hrgn, XRectangle *rect);
94 static proto_XClipBox *func_XClipBox = NULL;
95 int XClipBox( Region hrgn, XRectangle *rect) {
96         if (!func_XClipBox) func_XClipBox=(proto_XClipBox *)_loadfunc("XClipBox");
97         return (func_XClipBox)( hrgn, rect);
98 }
99
100 typedef int (proto_XCloseDisplay)(Display *display);
101 static proto_XCloseDisplay *func_XCloseDisplay = NULL;
102 int XCloseDisplay(Display *display) {
103         if (!func_XCloseDisplay) func_XCloseDisplay=(proto_XCloseDisplay *)_loadfunc("XCloseDisplay");
104         return (func_XCloseDisplay)(display);
105 }
106
107 typedef StatusDef (proto_XCloseIM)(XIM im);
108 static proto_XCloseIM *func_XCloseIM = NULL;
109 StatusDef XCloseIM(XIM im) {
110         if (!func_XCloseIM) func_XCloseIM=(proto_XCloseIM *)_loadfunc("XCloseIM");
111         return (func_XCloseIM)(im);
112 }
113
114 typedef int (proto_XConnectionNumber)(Display* display);
115 static proto_XConnectionNumber *func_XConnectionNumber = NULL;
116 int XConnectionNumber(Display* display) {
117         if (!func_XConnectionNumber) func_XConnectionNumber=(proto_XConnectionNumber *)_loadfunc("XConnectionNumber");
118         return (func_XConnectionNumber)(display);
119 }
120
121 typedef int (proto_XConvertSelection)( Display *display, Atom sel, Atom target, Atom prop, Window req, Time time);
122 static proto_XConvertSelection *func_XConvertSelection = NULL;
123 int XConvertSelection( Display *display, Atom sel, Atom target, Atom prop, Window req, Time time) {
124         if (!func_XConvertSelection) func_XConvertSelection=(proto_XConvertSelection *)_loadfunc("XConvertSelection");
125         return (func_XConvertSelection)( display, sel, target, prop, req, time);
126 }
127
128 typedef int (proto_XCopyArea)( Display *display, Drawable src, Drawable dest, GC gc, int src_x, int src_y, unsigned int width, unsigned int height, int dest_x, int dest_y);
129 static proto_XCopyArea *func_XCopyArea = NULL;
130 int XCopyArea( Display *display, Drawable src, Drawable dest, GC gc, int src_x, int src_y, unsigned int width, unsigned int height, int dest_x, int dest_y) {
131         if (!func_XCopyArea) func_XCopyArea=(proto_XCopyArea *)_loadfunc("XCopyArea");
132         return (func_XCopyArea)( display, src, dest, gc, src_x, src_y, width, height, dest_x, dest_y);
133 }
134
135 typedef int (proto_XCopyGC)( Display *display, GC sgc, unsigned long vmask, GC dgc);
136 static proto_XCopyGC *func_XCopyGC = NULL;
137 int XCopyGC( Display *display, GC sgc, unsigned long vmask, GC dgc) {
138         if (!func_XCopyGC) func_XCopyGC=(proto_XCopyGC *)_loadfunc("XCopyGC");
139         return (func_XCopyGC)( display, sgc, vmask, dgc);
140 }
141
142 typedef Pixmap (proto_XCreateBitmapFromData)(Display *display, Drawable drawable, const char *data, unsigned int width, unsigned int height);
143 static proto_XCreateBitmapFromData *func_XCreateBitmapFromData = NULL;
144 Pixmap XCreateBitmapFromData(Display *display, Drawable drawable, const char *data, unsigned int width, unsigned int height) {
145         if (!func_XCreateBitmapFromData) func_XCreateBitmapFromData=(proto_XCreateBitmapFromData *)_loadfunc("XCreateBitmapFromData");
146         return (func_XCreateBitmapFromData)(display, drawable, data, width, height);
147 }
148
149 typedef Colormap (proto_XCreateColormap)( Display *display, Window w, Visual *visual, int alloc);
150 static proto_XCreateColormap *func_XCreateColormap = NULL;
151 Colormap XCreateColormap( Display *display, Window w, Visual *visual, int alloc) {
152         if (!func_XCreateColormap) func_XCreateColormap=(proto_XCreateColormap *)_loadfunc("XCreateColormap");
153         return (func_XCreateColormap)( display, w, visual, alloc);
154 }
155
156 typedef Cursor (proto_XCreateFontCursor)( Display *display, unsigned int shape);
157 static proto_XCreateFontCursor *func_XCreateFontCursor = NULL;
158 Cursor XCreateFontCursor( Display *display, unsigned int shape) {
159         if (!func_XCreateFontCursor) func_XCreateFontCursor=(proto_XCreateFontCursor *)_loadfunc("XCreateFontCursor");
160         return (func_XCreateFontCursor)( display, shape);
161 }
162
163 typedef GC (proto_XCreateGC)( Display *display, Drawable window, unsigned long mask, XGCValues *gc_values);
164 static proto_XCreateGC *func_XCreateGC = NULL;
165 GC XCreateGC( Display *display, Drawable window, unsigned long mask, XGCValues *gc_values) {
166         if (!func_XCreateGC) func_XCreateGC=(proto_XCreateGC *)_loadfunc("XCreateGC");
167         return (func_XCreateGC)( display, window, mask, gc_values);
168 }
169
170 typedef XImage * (proto_XCreateImage)( Display *display, Visual *visual, unsigned int depth, int format, int offset, char *data, unsigned int width, unsigned int height, int bitmap_pad, int bytes_per_line);
171 static proto_XCreateImage *func_XCreateImage = NULL;
172 XImage * XCreateImage( Display *display, Visual *visual, unsigned int depth, int format, int offset, char *data, unsigned int width, unsigned int height, int bitmap_pad, int bytes_per_line) {
173         if (!func_XCreateImage) func_XCreateImage=(proto_XCreateImage *)_loadfunc("XCreateImage");
174         return (func_XCreateImage)( display, visual, depth, format, offset, data, width, height, bitmap_pad, bytes_per_line);
175 }
176
177 typedef Pixmap (proto_XCreatePixmap)( Display *display, Drawable drawable, unsigned int width, unsigned int height, unsigned int depth);
178 static proto_XCreatePixmap *func_XCreatePixmap = NULL;
179 Pixmap XCreatePixmap( Display *display, Drawable drawable, unsigned int width, unsigned int height, unsigned int depth) {
180         if (!func_XCreatePixmap) func_XCreatePixmap=(proto_XCreatePixmap *)_loadfunc("XCreatePixmap");
181         return (func_XCreatePixmap)( display, drawable, width, height, depth);
182 }
183
184 typedef Region (proto_XCreateRegion)();
185 static proto_XCreateRegion *func_XCreateRegion = NULL;
186 Region XCreateRegion() {
187         if (!func_XCreateRegion) func_XCreateRegion=(proto_XCreateRegion *)_loadfunc("XCreateRegion");
188         return (func_XCreateRegion)();
189 }
190
191 typedef Window (proto_XCreateSimpleWindow)( Display *display, Window parent, int x, int y, unsigned int brd, unsigned int w, unsigned int h, unsigned long bg, unsigned long brd_col);
192 static proto_XCreateSimpleWindow *func_XCreateSimpleWindow = NULL;
193 Window XCreateSimpleWindow( Display *display, Window parent, int x, int y, unsigned int brd, unsigned int w, unsigned int h, unsigned long bg, unsigned long brd_col) {
194         if (!func_XCreateSimpleWindow) func_XCreateSimpleWindow=(proto_XCreateSimpleWindow *)_loadfunc("XCreateSimpleWindow");
195         return (func_XCreateSimpleWindow)( display, parent, x, y, brd, w, h, bg, brd_col);
196 }
197
198 typedef Window (proto_XCreateWindow)( Display *display, Window parent, int x, int y, unsigned int width, unsigned int height, unsigned int bw, int depth, unsigned int class, Visual *visual, unsigned long valuemask, XSetWindowAttributes *attr);
199 static proto_XCreateWindow *func_XCreateWindow = NULL;
200 Window XCreateWindow( Display *display, Window parent, int x, int y, unsigned int width, unsigned int height, unsigned int bw, int depth, unsigned int class, Visual *visual, unsigned long valuemask, XSetWindowAttributes *attr) {
201         if (!func_XCreateWindow) func_XCreateWindow=(proto_XCreateWindow *)_loadfunc("XCreateWindow");
202         return (func_XCreateWindow)( display, parent, x, y, width, height, bw, depth, class, visual, valuemask, attr);
203 }
204
205 typedef Colormap (proto_XDefaultColormap)( Display *display, int screen);
206 static proto_XDefaultColormap *func_XDefaultColormap = NULL;
207 Colormap XDefaultColormap( Display *display, int screen) {
208         if (!func_XDefaultColormap) func_XDefaultColormap=(proto_XDefaultColormap *)_loadfunc("XDefaultColormap");
209         return (func_XDefaultColormap)( display, screen);
210 }
211
212 typedef int (proto_XDefaultDepth)( Display *display, int screen);
213 static proto_XDefaultDepth *func_XDefaultDepth = NULL;
214 int XDefaultDepth( Display *display, int screen) {
215         if (!func_XDefaultDepth) func_XDefaultDepth=(proto_XDefaultDepth *)_loadfunc("XDefaultDepth");
216         return (func_XDefaultDepth)( display, screen);
217 }
218
219 typedef int (proto_XDefaultScreen)(Display *display);
220 static proto_XDefaultScreen *func_XDefaultScreen = NULL;
221 int XDefaultScreen(Display *display) {
222         if (!func_XDefaultScreen) func_XDefaultScreen=(proto_XDefaultScreen *)_loadfunc("XDefaultScreen");
223         return (func_XDefaultScreen)(display);
224 }
225
226 typedef Visual * (proto_XDefaultVisual)( Display *display, int screen);
227 static proto_XDefaultVisual *func_XDefaultVisual = NULL;
228 Visual * XDefaultVisual( Display *display, int screen) {
229         if (!func_XDefaultVisual) func_XDefaultVisual=(proto_XDefaultVisual *)_loadfunc("XDefaultVisual");
230         return (func_XDefaultVisual)( display, screen);
231 }
232
233 typedef int (proto_XDefineCursor)(Display* display,Window w,Cursor cursor);
234 static proto_XDefineCursor *func_XDefineCursor = NULL;
235 int XDefineCursor(Display* display,Window w,Cursor cursor) {
236         if (!func_XDefineCursor) func_XDefineCursor=(proto_XDefineCursor *)_loadfunc("XDefineCursor");
237         return (func_XDefineCursor)(display,w,cursor);
238 }
239
240 typedef int (proto_XDestroyRegion)(Region hrgn);
241 static proto_XDestroyRegion *func_XDestroyRegion = NULL;
242 int XDestroyRegion(Region hrgn) {
243         if (!func_XDestroyRegion) func_XDestroyRegion=(proto_XDestroyRegion *)_loadfunc("XDestroyRegion");
244         return (func_XDestroyRegion)(hrgn);
245 }
246
247 typedef int (proto_XDestroyWindow)( Display *display, Window w);
248 static proto_XDestroyWindow *func_XDestroyWindow = NULL;
249 int XDestroyWindow( Display *display, Window w) {
250         if (!func_XDestroyWindow) func_XDestroyWindow=(proto_XDestroyWindow *)_loadfunc("XDestroyWindow");
251         return (func_XDestroyWindow)( display, w);
252 }
253
254 typedef char * (proto_XDisplayString)(Display *display);
255 static proto_XDisplayString *func_XDisplayString = NULL;
256 char * XDisplayString(Display *display) {
257         if (!func_XDisplayString) func_XDisplayString=(proto_XDisplayString *)_loadfunc("XDisplayString");
258         return (func_XDisplayString)(display);
259 }
260
261 typedef int (proto_XDoesBackingStore)(Screen *scr);
262 static proto_XDoesBackingStore *func_XDoesBackingStore = NULL;
263 int XDoesBackingStore(Screen *scr) {
264         if (!func_XDoesBackingStore) func_XDoesBackingStore=(proto_XDoesBackingStore *)_loadfunc("XDoesBackingStore");
265         return (func_XDoesBackingStore)(scr);
266 }
267
268 typedef int (proto_XDrawArc)( Display *display, Drawable w, GC gc, int x, int y, unsigned int width,unsigned int height, int a1, int a2);
269 static proto_XDrawArc *func_XDrawArc = NULL;
270 int XDrawArc( Display *display, Drawable w, GC gc, int x, int y, unsigned int width,unsigned int height, int a1, int a2) {
271         if (!func_XDrawArc) func_XDrawArc=(proto_XDrawArc *)_loadfunc("XDrawArc");
272         return (func_XDrawArc)( display, w, gc, x, y, width,height, a1, a2);
273 }
274
275 typedef int (proto_XDrawImageString)( Display* display, Drawable d, GC gc, int x, int y, const char* string, int length);
276 static proto_XDrawImageString *func_XDrawImageString = NULL;
277 int XDrawImageString( Display* display, Drawable d, GC gc, int x, int y, const char* string, int length) {
278         if (!func_XDrawImageString) func_XDrawImageString=(proto_XDrawImageString *)_loadfunc("XDrawImageString");
279         return (func_XDrawImageString)( display, d, gc, x, y, string, length);
280 }
281
282 typedef int (proto_XDrawImageString16)(Display *display, Drawable window, GC gc, int x, int y, const XChar2b* str, int len);
283 static proto_XDrawImageString16 *func_XDrawImageString16 = NULL;
284 int XDrawImageString16(Display *display, Drawable window, GC gc, int x, int y, const XChar2b* str, int len) {
285         if (!func_XDrawImageString16) func_XDrawImageString16=(proto_XDrawImageString16 *)_loadfunc("XDrawImageString16");
286         return (func_XDrawImageString16)(display, window, gc, x, y, str, len);
287 }
288
289 typedef int (proto_XDrawLine)( Display *display, Drawable w, GC gc, int x1,int y1, int x2,int y2);
290 static proto_XDrawLine *func_XDrawLine = NULL;
291 int XDrawLine( Display *display, Drawable w, GC gc, int x1,int y1, int x2,int y2) {
292         if (!func_XDrawLine) func_XDrawLine=(proto_XDrawLine *)_loadfunc("XDrawLine");
293         return (func_XDrawLine)( display, w, gc, x1,y1, x2,y2);
294 }
295
296 typedef int (proto_XDrawLines)( Display *display, Drawable w, GC gc, XPoint *points, int nps,int mode);
297 static proto_XDrawLines *func_XDrawLines = NULL;
298 int XDrawLines( Display *display, Drawable w, GC gc, XPoint *points, int nps,int mode) {
299         if (!func_XDrawLines) func_XDrawLines=(proto_XDrawLines *)_loadfunc("XDrawLines");
300         return (func_XDrawLines)( display, w, gc, points, nps,mode);
301 }
302
303 typedef int (proto_XDrawPoint)( Display *display, Drawable w, GC gc, int x, int y);
304 static proto_XDrawPoint *func_XDrawPoint = NULL;
305 int XDrawPoint( Display *display, Drawable w, GC gc, int x, int y) {
306         if (!func_XDrawPoint) func_XDrawPoint=(proto_XDrawPoint *)_loadfunc("XDrawPoint");
307         return (func_XDrawPoint)( display, w, gc, x, y);
308 }
309
310 typedef int (proto_XDrawPoints)( Display *display, Drawable w, GC gc, XPoint *points, int nps, int mode);
311 static proto_XDrawPoints *func_XDrawPoints = NULL;
312 int XDrawPoints( Display *display, Drawable w, GC gc, XPoint *points, int nps, int mode) {
313         if (!func_XDrawPoints) func_XDrawPoints=(proto_XDrawPoints *)_loadfunc("XDrawPoints");
314         return (func_XDrawPoints)( display, w, gc, points, nps, mode);
315 }
316
317 typedef int (proto_XDrawRectangle)( Display *display, Drawable w, GC gc, int x, int y, unsigned int width, unsigned int height);
318 static proto_XDrawRectangle *func_XDrawRectangle = NULL;
319 int XDrawRectangle( Display *display, Drawable w, GC gc, int x, int y, unsigned int width, unsigned int height) {
320         if (!func_XDrawRectangle) func_XDrawRectangle=(proto_XDrawRectangle *)_loadfunc("XDrawRectangle");
321         return (func_XDrawRectangle)( display, w, gc, x, y, width, height);
322 }
323
324 typedef int (proto_XDrawSegments)( Display *display, Drawable w, GC gc, XSegment *segs, int nsegs);
325 static proto_XDrawSegments *func_XDrawSegments = NULL;
326 int XDrawSegments( Display *display, Drawable w, GC gc, XSegment *segs, int nsegs) {
327         if (!func_XDrawSegments) func_XDrawSegments=(proto_XDrawSegments *)_loadfunc("XDrawSegments");
328         return (func_XDrawSegments)( display, w, gc, segs, nsegs);
329 }
330
331 typedef int (proto_XDrawString)(Display *display, Drawable window, GC gc, int x, int y, const char* str, int len);
332 static proto_XDrawString *func_XDrawString = NULL;
333 int XDrawString(Display *display, Drawable window, GC gc, int x, int y, const char* str, int len) {
334         if (!func_XDrawString) func_XDrawString=(proto_XDrawString *)_loadfunc("XDrawString");
335         return (func_XDrawString)(display, window, gc, x, y, str, len);
336 }
337
338 typedef int (proto_XDrawString16)(Display *display, Drawable window, GC gc, int x, int y, const XChar2b* str, int len);
339 static proto_XDrawString16 *func_XDrawString16 = NULL;
340 int XDrawString16(Display *display, Drawable window, GC gc, int x, int y, const XChar2b* str, int len) {
341         if (!func_XDrawString16) func_XDrawString16=(proto_XDrawString16 *)_loadfunc("XDrawString16");
342         return (func_XDrawString16)(display, window, gc, x, y, str, len);
343 }
344
345 typedef StatusDef (proto_XFetchName)( Display *display, Window w, char **window_name_return);
346 static proto_XFetchName *func_XFetchName = NULL;
347 StatusDef XFetchName( Display *display, Window w, char **window_name_return) {
348         if (!func_XFetchName) func_XFetchName=(proto_XFetchName *)_loadfunc("XFetchName");
349         return (func_XFetchName)( display, w, window_name_return);
350 }
351
352 typedef int (proto_XFillArc)( Display *display, Drawable w, GC gc, int x, int y, unsigned int width,unsigned height, int a1, int a2);
353 static proto_XFillArc *func_XFillArc = NULL;
354 int XFillArc( Display *display, Drawable w, GC gc, int x, int y, unsigned int width,unsigned height, int a1, int a2) {
355         if (!func_XFillArc) func_XFillArc=(proto_XFillArc *)_loadfunc("XFillArc");
356         return (func_XFillArc)( display, w, gc, x, y, width,height, a1, a2);
357 }
358
359 typedef int (proto_XFillPolygon)( Display *display, Drawable w, GC gc, XPoint *points, int nps, int shape, int mode);
360 static proto_XFillPolygon *func_XFillPolygon = NULL;
361 int XFillPolygon( Display *display, Drawable w, GC gc, XPoint *points, int nps, int shape, int mode) {
362         if (!func_XFillPolygon) func_XFillPolygon=(proto_XFillPolygon *)_loadfunc("XFillPolygon");
363         return (func_XFillPolygon)( display, w, gc, points, nps, shape, mode);
364 }
365
366 typedef int (proto_XFillRectangle)( Display *display, Drawable window, GC gc, int x, int y, unsigned int w, unsigned int h);
367 static proto_XFillRectangle *func_XFillRectangle = NULL;
368 int XFillRectangle( Display *display, Drawable window, GC gc, int x, int y, unsigned int w, unsigned int h) {
369         if (!func_XFillRectangle) func_XFillRectangle=(proto_XFillRectangle *)_loadfunc("XFillRectangle");
370         return (func_XFillRectangle)( display, window, gc, x, y, w, h);
371 }
372
373 typedef BoolDef (proto_XFilterEvent)(XEvent* event,Window window);
374 static proto_XFilterEvent *func_XFilterEvent = NULL;
375 BoolDef XFilterEvent(XEvent* event,Window window) {
376         if (!func_XFilterEvent) func_XFilterEvent=(proto_XFilterEvent *)_loadfunc("XFilterEvent");
377         return (func_XFilterEvent)(event,window);
378 }
379
380 typedef int (proto_XFlush)(Display *display);
381 static proto_XFlush *func_XFlush = NULL;
382 int XFlush(Display *display) {
383         if (!func_XFlush) func_XFlush=(proto_XFlush *)_loadfunc("XFlush");
384         return (func_XFlush)(display);
385 }
386
387 typedef int (proto_XFree)(void *data);
388 static proto_XFree *func_XFree = NULL;
389 int XFree(void *data) {
390         if (!func_XFree) func_XFree=(proto_XFree *)_loadfunc("XFree");
391         return (func_XFree)(data);
392 }
393
394 typedef int (proto_XFreeColors)(Display *display, Colormap cmap, unsigned long pixels[], int npixels, unsigned long planes);
395 static proto_XFreeColors *func_XFreeColors = NULL;
396 int XFreeColors(Display *display, Colormap cmap, unsigned long pixels[], int npixels, unsigned long planes) {
397         if (!func_XFreeColors) func_XFreeColors=(proto_XFreeColors *)_loadfunc("XFreeColors");
398         return (func_XFreeColors)(display, cmap, pixels, npixels, planes);
399 }
400
401 typedef int (proto_XFreeExtensionList)(char **list);
402 static proto_XFreeExtensionList *func_XFreeExtensionList = NULL;
403 int XFreeExtensionList(char **list) {
404         if (!func_XFreeExtensionList) func_XFreeExtensionList=(proto_XFreeExtensionList *)_loadfunc("XFreeExtensionList");
405         return (func_XFreeExtensionList)(list);
406 }
407
408 typedef int (proto_XFreeFont)(Display* display,XFontStruct* font_struct);
409 static proto_XFreeFont *func_XFreeFont = NULL;
410 int XFreeFont(Display* display,XFontStruct* font_struct) {
411         if (!func_XFreeFont) func_XFreeFont=(proto_XFreeFont *)_loadfunc("XFreeFont");
412         return (func_XFreeFont)(display,font_struct);
413 }
414
415 typedef int (proto_XFreeGC)( Display *display, GC gc);
416 static proto_XFreeGC *func_XFreeGC = NULL;
417 int XFreeGC( Display *display, GC gc) {
418         if (!func_XFreeGC) func_XFreeGC=(proto_XFreeGC *)_loadfunc("XFreeGC");
419         return (func_XFreeGC)( display, gc);
420 }
421
422 typedef int (proto_XFreeModifiermap)(XModifierKeymap *modmap);
423 static proto_XFreeModifiermap *func_XFreeModifiermap = NULL;
424 int XFreeModifiermap(XModifierKeymap *modmap) {
425         if (!func_XFreeModifiermap) func_XFreeModifiermap=(proto_XFreeModifiermap *)_loadfunc("XFreeModifiermap");
426         return (func_XFreeModifiermap)(modmap);
427 }
428
429 typedef int (proto_XFreePixmap)( Display *display, Pixmap pixmap);
430 static proto_XFreePixmap *func_XFreePixmap = NULL;
431 int XFreePixmap( Display *display, Pixmap pixmap) {
432         if (!func_XFreePixmap) func_XFreePixmap=(proto_XFreePixmap *)_loadfunc("XFreePixmap");
433         return (func_XFreePixmap)( display, pixmap);
434 }
435
436 typedef void (proto_XFreeStringList)(char **list);
437 static proto_XFreeStringList *func_XFreeStringList = NULL;
438 void XFreeStringList(char **list) {
439         if (!func_XFreeStringList) func_XFreeStringList=(proto_XFreeStringList *)_loadfunc("XFreeStringList");
440         (func_XFreeStringList)(list);
441 }
442
443 typedef char * (proto_XGetAtomName)( Display *display, Atom atom);
444 static proto_XGetAtomName *func_XGetAtomName = NULL;
445 char * XGetAtomName( Display *display, Atom atom) {
446         if (!func_XGetAtomName) func_XGetAtomName=(proto_XGetAtomName *)_loadfunc("XGetAtomName");
447         return (func_XGetAtomName)( display, atom);
448 }
449
450 typedef int (proto_XGetErrorDatabaseText)( Display *display, const char *name, const char *msg, const char *defstr, char *buf, int len);
451 static proto_XGetErrorDatabaseText *func_XGetErrorDatabaseText = NULL;
452 int XGetErrorDatabaseText( Display *display, const char *name, const char *msg, const char *defstr, char *buf, int len) {
453         if (!func_XGetErrorDatabaseText) func_XGetErrorDatabaseText=(proto_XGetErrorDatabaseText *)_loadfunc("XGetErrorDatabaseText");
454         return (func_XGetErrorDatabaseText)( display, name, msg, defstr, buf, len);
455 }
456
457 typedef int (proto_XGetErrorText)( Display *display, int code, char *buf, int len);
458 static proto_XGetErrorText *func_XGetErrorText = NULL;
459 int XGetErrorText( Display *display, int code, char *buf, int len) {
460         if (!func_XGetErrorText) func_XGetErrorText=(proto_XGetErrorText *)_loadfunc("XGetErrorText");
461         return (func_XGetErrorText)( display, code, buf, len);
462 }
463
464 typedef char ** (proto_XGetFontPath)( Display *display, int *nps);
465 static proto_XGetFontPath *func_XGetFontPath = NULL;
466 char ** XGetFontPath( Display *display, int *nps) {
467         if (!func_XGetFontPath) func_XGetFontPath=(proto_XGetFontPath *)_loadfunc("XGetFontPath");
468         return (func_XGetFontPath)( display, nps);
469 }
470
471 typedef BoolDef (proto_XGetFontProperty)( XFontStruct *fstruct, Atom atom, unsigned long *val);
472 static proto_XGetFontProperty *func_XGetFontProperty = NULL;
473 BoolDef XGetFontProperty( XFontStruct *fstruct, Atom atom, unsigned long *val) {
474         if (!func_XGetFontProperty) func_XGetFontProperty=(proto_XGetFontProperty *)_loadfunc("XGetFontProperty");
475         return (func_XGetFontProperty)( fstruct, atom, val);
476 }
477
478 typedef StatusDef (proto_XGetGeometry)( Display *display, Drawable w, Window *root, int *x, int *y, unsigned int *width, unsigned int *height, unsigned int *bw, unsigned int *depth);
479 static proto_XGetGeometry *func_XGetGeometry = NULL;
480 StatusDef XGetGeometry( Display *display, Drawable w, Window *root, int *x, int *y, unsigned int *width, unsigned int *height, unsigned int *bw, unsigned int *depth) {
481         if (!func_XGetGeometry) func_XGetGeometry=(proto_XGetGeometry *)_loadfunc("XGetGeometry");
482         return (func_XGetGeometry)( display, w, root, x, y, width, height, bw, depth);
483 }
484
485 typedef int (proto_XGetIconName)( Display *display, Window w, char **iname);
486 static proto_XGetIconName *func_XGetIconName = NULL;
487 int XGetIconName( Display *display, Window w, char **iname) {
488         if (!func_XGetIconName) func_XGetIconName=(proto_XGetIconName *)_loadfunc("XGetIconName");
489         return (func_XGetIconName)( display, w, iname);
490 }
491
492 typedef XImage * (proto_XGetImage)( Display *display, Drawable drawable, int x, int y, unsigned int width, unsigned int height, unsigned long plane_mask, int format);
493 static proto_XGetImage *func_XGetImage = NULL;
494 XImage * XGetImage( Display *display, Drawable drawable, int x, int y, unsigned int width, unsigned int height, unsigned long plane_mask, int format) {
495         if (!func_XGetImage) func_XGetImage=(proto_XGetImage *)_loadfunc("XGetImage");
496         return (func_XGetImage)( display, drawable, x, y, width, height, plane_mask, format);
497 }
498
499 typedef int (proto_XGetInputFocus)( Display *display, Window *focus, int *revto);
500 static proto_XGetInputFocus *func_XGetInputFocus = NULL;
501 int XGetInputFocus( Display *display, Window *focus, int *revto) {
502         if (!func_XGetInputFocus) func_XGetInputFocus=(proto_XGetInputFocus *)_loadfunc("XGetInputFocus");
503         return (func_XGetInputFocus)( display, focus, revto);
504 }
505
506 typedef XModifierKeymap * (proto_XGetModifierMapping)(Display *display);
507 static proto_XGetModifierMapping *func_XGetModifierMapping = NULL;
508 XModifierKeymap * XGetModifierMapping(Display *display) {
509         if (!func_XGetModifierMapping) func_XGetModifierMapping=(proto_XGetModifierMapping *)_loadfunc("XGetModifierMapping");
510         return (func_XGetModifierMapping)(display);
511 }
512
513 typedef Window (proto_XGetSelectionOwner)( Display* display, Atom selection);
514 static proto_XGetSelectionOwner *func_XGetSelectionOwner = NULL;
515 Window XGetSelectionOwner( Display* display, Atom selection) {
516         if (!func_XGetSelectionOwner) func_XGetSelectionOwner=(proto_XGetSelectionOwner *)_loadfunc("XGetSelectionOwner");
517         return (func_XGetSelectionOwner)( display, selection);
518 }
519
520 typedef StatusDef (proto_XGetStandardColormap)( Display *display, Window w, XStandardColormap *cmapinf, Atom prop);
521 static proto_XGetStandardColormap *func_XGetStandardColormap = NULL;
522 StatusDef XGetStandardColormap( Display *display, Window w, XStandardColormap *cmapinf, Atom prop) {
523         if (!func_XGetStandardColormap) func_XGetStandardColormap=(proto_XGetStandardColormap *)_loadfunc("XGetStandardColormap");
524         return (func_XGetStandardColormap)( display, w, cmapinf, prop);
525 }
526
527 typedef XVisualInfo * (proto_XGetVisualInfo)( Display *display, long vinm, XVisualInfo *vint, int *n);
528 static proto_XGetVisualInfo *func_XGetVisualInfo = NULL;
529 XVisualInfo * XGetVisualInfo( Display *display, long vinm, XVisualInfo *vint, int *n) {
530         if (!func_XGetVisualInfo) func_XGetVisualInfo=(proto_XGetVisualInfo *)_loadfunc("XGetVisualInfo");
531         return (func_XGetVisualInfo)( display, vinm, vint, n);
532 }
533
534 typedef StatusDef (proto_XGetWindowAttributes)(Display *display, Window w, XWindowAttributes *wattr);
535 static proto_XGetWindowAttributes *func_XGetWindowAttributes = NULL;
536 StatusDef XGetWindowAttributes(Display *display, Window w, XWindowAttributes *wattr) {
537         if (!func_XGetWindowAttributes) func_XGetWindowAttributes=(proto_XGetWindowAttributes *)_loadfunc("XGetWindowAttributes");
538         return (func_XGetWindowAttributes)(display, w, wattr);
539 }
540
541 typedef int (proto_XGetWindowProperty)( Display *display, Window window, Atom property, long long_offset, long long_length, BoolDef delete, Atom req_type, Atom *actual_type_return, int *actual_format_return, unsigned long *nitems_return, unsigned long *bytes_after_return, unsigned char **prop_return);
542 static proto_XGetWindowProperty *func_XGetWindowProperty = NULL;
543 int XGetWindowProperty( Display *display, Window window, Atom property, long long_offset, long long_length, BoolDef delete, Atom req_type, Atom *actual_type_return, int *actual_format_return, unsigned long *nitems_return, unsigned long *bytes_after_return, unsigned char **prop_return) {
544         if (!func_XGetWindowProperty) func_XGetWindowProperty=(proto_XGetWindowProperty *)_loadfunc("XGetWindowProperty");
545         return (func_XGetWindowProperty)( display, window, property, long_offset, long_length, delete, req_type, actual_type_return, actual_format_return, nitems_return, bytes_after_return, prop_return);
546 }
547
548 typedef int (proto_XGrabServer)(Display *display);
549 static proto_XGrabServer *func_XGrabServer = NULL;
550 int XGrabServer(Display *display) {
551         if (!func_XGrabServer) func_XGrabServer=(proto_XGrabServer *)_loadfunc("XGrabServer");
552         return (func_XGrabServer)(display);
553 }
554
555 typedef int (proto_XIconifyWindow)(Display *display, Window w, int screen_number);
556 static proto_XIconifyWindow *func_XIconifyWindow = NULL;
557 int XIconifyWindow(Display *display, Window w, int screen_number) {
558         if (!func_XIconifyWindow) func_XIconifyWindow=(proto_XIconifyWindow *)_loadfunc("XIconifyWindow");
559         return (func_XIconifyWindow)(display, w, screen_number);
560 }
561
562 typedef XExtCodes * (proto_XInitExtension)(Display *display, const char *name);
563 static proto_XInitExtension *func_XInitExtension = NULL;
564 XExtCodes * XInitExtension(Display *display, const char *name) {
565         if (!func_XInitExtension) func_XInitExtension=(proto_XInitExtension *)_loadfunc("XInitExtension");
566         return (func_XInitExtension)(display, name);
567 }
568
569 typedef Atom (proto_XInternAtom)( Display *display, const char *property_name, BoolDef only_if_exists);
570 static proto_XInternAtom *func_XInternAtom = NULL;
571 Atom XInternAtom( Display *display, const char *property_name, BoolDef only_if_exists) {
572         if (!func_XInternAtom) func_XInternAtom=(proto_XInternAtom *)_loadfunc("XInternAtom");
573         return (func_XInternAtom)( display, property_name, only_if_exists);
574 }
575
576 typedef KeySym (proto_XKeycodeToKeysym)( Display *display, unsigned int keycode, int index);
577 static proto_XKeycodeToKeysym *func_XKeycodeToKeysym = NULL;
578 KeySym XKeycodeToKeysym( Display *display, unsigned int keycode, int index) {
579         if (!func_XKeycodeToKeysym) func_XKeycodeToKeysym=(proto_XKeycodeToKeysym *)_loadfunc("XKeycodeToKeysym");
580         return (func_XKeycodeToKeysym)( display, keycode, index);
581 }
582
583 typedef KeyCode (proto_XKeysymToKeycode)( Display *display, KeySym keysym);
584 static proto_XKeysymToKeycode *func_XKeysymToKeycode = NULL;
585 KeyCode XKeysymToKeycode( Display *display, KeySym keysym) {
586         if (!func_XKeysymToKeycode) func_XKeysymToKeycode=(proto_XKeysymToKeycode *)_loadfunc("XKeysymToKeycode");
587         return (func_XKeysymToKeycode)( display, keysym);
588 }
589
590 typedef char ** (proto_XListExtensions)( Display *display, int *ret_num);
591 static proto_XListExtensions *func_XListExtensions = NULL;
592 char ** XListExtensions( Display *display, int *ret_num) {
593         if (!func_XListExtensions) func_XListExtensions=(proto_XListExtensions *)_loadfunc("XListExtensions");
594         return (func_XListExtensions)( display, ret_num);
595 }
596
597 typedef XFontStruct * (proto_XLoadQueryFont)(Display *display, const char *name);
598 static proto_XLoadQueryFont *func_XLoadQueryFont = NULL;
599 XFontStruct * XLoadQueryFont(Display *display, const char *name) {
600         if (!func_XLoadQueryFont) func_XLoadQueryFont=(proto_XLoadQueryFont *)_loadfunc("XLoadQueryFont");
601         return (func_XLoadQueryFont)(display, name);
602 }
603
604 typedef int (proto_XLookupString)( XKeyEvent *event, char *buf, int nbytes, KeySym *keysym, XComposeStatus *status);
605 static proto_XLookupString *func_XLookupString = NULL;
606 int XLookupString( XKeyEvent *event, char *buf, int nbytes, KeySym *keysym, XComposeStatus *status) {
607         if (!func_XLookupString) func_XLookupString=(proto_XLookupString *)_loadfunc("XLookupString");
608         return (func_XLookupString)( event, buf, nbytes, keysym, status);
609 }
610
611 typedef int (proto_XLowerWindow)(Display *display, Window w);
612 static proto_XLowerWindow *func_XLowerWindow = NULL;
613 int XLowerWindow(Display *display, Window w) {
614         if (!func_XLowerWindow) func_XLowerWindow=(proto_XLowerWindow *)_loadfunc("XLowerWindow");
615         return (func_XLowerWindow)(display, w);
616 }
617
618 typedef int (proto_XMapRaised)( Display *display, Window w);
619 static proto_XMapRaised *func_XMapRaised = NULL;
620 int XMapRaised( Display *display, Window w) {
621         if (!func_XMapRaised) func_XMapRaised=(proto_XMapRaised *)_loadfunc("XMapRaised");
622         return (func_XMapRaised)( display, w);
623 }
624
625 typedef int (proto_XMapSubwindows)( Display *display, Window w);
626 static proto_XMapSubwindows *func_XMapSubwindows = NULL;
627 int XMapSubwindows( Display *display, Window w) {
628         if (!func_XMapSubwindows) func_XMapSubwindows=(proto_XMapSubwindows *)_loadfunc("XMapSubwindows");
629         return (func_XMapSubwindows)( display, w);
630 }
631
632 typedef int (proto_XMapWindow)(Display *display, Window window);
633 static proto_XMapWindow *func_XMapWindow = NULL;
634 int XMapWindow(Display *display, Window window) {
635         if (!func_XMapWindow) func_XMapWindow=(proto_XMapWindow *)_loadfunc("XMapWindow");
636         return (func_XMapWindow)(display, window);
637 }
638
639 typedef StatusDef (proto_XMatchVisualInfo)( Display* display, int screen, int depth, int class, XVisualInfo* vinfo_return);
640 static proto_XMatchVisualInfo *func_XMatchVisualInfo = NULL;
641 StatusDef XMatchVisualInfo( Display* display, int screen, int depth, int class, XVisualInfo* vinfo_return) {
642         if (!func_XMatchVisualInfo) func_XMatchVisualInfo=(proto_XMatchVisualInfo *)_loadfunc("XMatchVisualInfo");
643         return (func_XMatchVisualInfo)( display, screen, depth, class, vinfo_return);
644 }
645
646 typedef int (proto_XMoveResizeWindow)( Display* display, Window w, int x, int y, unsigned int width, unsigned int height);
647 static proto_XMoveResizeWindow *func_XMoveResizeWindow = NULL;
648 int XMoveResizeWindow( Display* display, Window w, int x, int y, unsigned int width, unsigned int height) {
649         if (!func_XMoveResizeWindow) func_XMoveResizeWindow=(proto_XMoveResizeWindow *)_loadfunc("XMoveResizeWindow");
650         return (func_XMoveResizeWindow)( display, w, x, y, width, height);
651 }
652
653 typedef int (proto_XMoveWindow)( Display* display, Window w, int x, int y);
654 static proto_XMoveWindow *func_XMoveWindow = NULL;
655 int XMoveWindow( Display* display, Window w, int x, int y) {
656         if (!func_XMoveWindow) func_XMoveWindow=(proto_XMoveWindow *)_loadfunc("XMoveWindow");
657         return (func_XMoveWindow)( display, w, x, y);
658 }
659
660 typedef int (proto_XNextEvent)( Display *display, XEvent *event);
661 static proto_XNextEvent *func_XNextEvent = NULL;
662 int XNextEvent( Display *display, XEvent *event) {
663         if (!func_XNextEvent) func_XNextEvent=(proto_XNextEvent *)_loadfunc("XNextEvent");
664         return (func_XNextEvent)( display, event);
665 }
666
667 typedef XIM (proto_XOpenIM)( Display* dpy, struct _XrmHashBucketRec* rdb, char* res_name, char* res_class);
668 static proto_XOpenIM *func_XOpenIM = NULL;
669 XIM XOpenIM( Display* dpy, struct _XrmHashBucketRec* rdb, char* res_name, char* res_class) {
670         if (!func_XOpenIM) func_XOpenIM=(proto_XOpenIM *)_loadfunc("XOpenIM");
671         return (func_XOpenIM)( dpy, rdb, res_name, res_class);
672 }
673
674 typedef StatusDef (proto_XParseColor)( Display *display, Colormap map, const char* spec, XColor *colorPtr);
675 static proto_XParseColor *func_XParseColor = NULL;
676 StatusDef XParseColor( Display *display, Colormap map, const char* spec, XColor *colorPtr) {
677         if (!func_XParseColor) func_XParseColor=(proto_XParseColor *)_loadfunc("XParseColor");
678         return (func_XParseColor)( display, map, spec, colorPtr);
679 }
680
681 typedef int (proto_XParseGeometry)( const char* string, int* x, int* y, unsigned int* width, unsigned int* height);
682 static proto_XParseGeometry *func_XParseGeometry = NULL;
683 int XParseGeometry( const char* string, int* x, int* y, unsigned int* width, unsigned int* height) {
684         if (!func_XParseGeometry) func_XParseGeometry=(proto_XParseGeometry *)_loadfunc("XParseGeometry");
685         return (func_XParseGeometry)( string, x, y, width, height);
686 }
687
688 typedef int (proto_XPending)(Display *display);
689 static proto_XPending *func_XPending = NULL;
690 int XPending(Display *display) {
691         if (!func_XPending) func_XPending=(proto_XPending *)_loadfunc("XPending");
692         return (func_XPending)(display);
693 }
694
695 typedef int (proto_XPutBackEvent)(Display *display, XEvent *event);
696 static proto_XPutBackEvent *func_XPutBackEvent = NULL;
697 int XPutBackEvent(Display *display, XEvent *event) {
698         if (!func_XPutBackEvent) func_XPutBackEvent=(proto_XPutBackEvent *)_loadfunc("XPutBackEvent");
699         return (func_XPutBackEvent)(display, event);
700 }
701
702 typedef int (proto_XPutImage)( Display *display, Drawable w, GC gc, XImage *image, int sx,int sy,int dx,int dy, unsigned int width,unsigned int height);
703 static proto_XPutImage *func_XPutImage = NULL;
704 int XPutImage( Display *display, Drawable w, GC gc, XImage *image, int sx,int sy,int dx,int dy, unsigned int width,unsigned int height) {
705         if (!func_XPutImage) func_XPutImage=(proto_XPutImage *)_loadfunc("XPutImage");
706         return (func_XPutImage)( display, w, gc, image, sx,sy,dx,dy, width,height);
707 }
708
709 typedef int (proto_XQueryColor)( Display *display, Colormap cmap, XColor *cell);
710 static proto_XQueryColor *func_XQueryColor = NULL;
711 int XQueryColor( Display *display, Colormap cmap, XColor *cell) {
712         if (!func_XQueryColor) func_XQueryColor=(proto_XQueryColor *)_loadfunc("XQueryColor");
713         return (func_XQueryColor)( display, cmap, cell);
714 }
715
716 typedef int (proto_XQueryColors)( Display *display, Colormap cmap, XColor *cells, int nc);
717 static proto_XQueryColors *func_XQueryColors = NULL;
718 int XQueryColors( Display *display, Colormap cmap, XColor *cells, int nc) {
719         if (!func_XQueryColors) func_XQueryColors=(proto_XQueryColors *)_loadfunc("XQueryColors");
720         return (func_XQueryColors)( display, cmap, cells, nc);
721 }
722
723 typedef XFontStruct * (proto_XQueryFont)( Display *display, XID font_id);
724 static proto_XQueryFont *func_XQueryFont = NULL;
725 XFontStruct * XQueryFont( Display *display, XID font_id) {
726         if (!func_XQueryFont) func_XQueryFont=(proto_XQueryFont *)_loadfunc("XQueryFont");
727         return (func_XQueryFont)( display, font_id);
728 }
729
730 typedef BoolDef (proto_XQueryPointer)( Display* display, Window w, Window* root_return, Window* child_return, int* root_x_return, int* root_y_return, int* win_x_return, int* win_y_return, unsigned int* mask_return);
731 static proto_XQueryPointer *func_XQueryPointer = NULL;
732 BoolDef XQueryPointer( Display* display, Window w, Window* root_return, Window* child_return, int* root_x_return, int* root_y_return, int* win_x_return, int* win_y_return, unsigned int* mask_return) {
733         if (!func_XQueryPointer) func_XQueryPointer=(proto_XQueryPointer *)_loadfunc("XQueryPointer");
734         return (func_XQueryPointer)( display, w, root_return, child_return, root_x_return, root_y_return, win_x_return, win_y_return, mask_return);
735 }
736
737 typedef StatusDef (proto_XQueryTree)( Display *display, Window w, Window* root, Window* parent, Window** ch, unsigned int *n);
738 static proto_XQueryTree *func_XQueryTree = NULL;
739 StatusDef XQueryTree( Display *display, Window w, Window* root, Window* parent, Window** ch, unsigned int *n) {
740         if (!func_XQueryTree) func_XQueryTree=(proto_XQueryTree *)_loadfunc("XQueryTree");
741         return (func_XQueryTree)( display, w, root, parent, ch, n);
742 }
743
744 typedef int (proto_XRaiseWindow)( Display *display, Window w);
745 static proto_XRaiseWindow *func_XRaiseWindow = NULL;
746 int XRaiseWindow( Display *display, Window w) {
747         if (!func_XRaiseWindow) func_XRaiseWindow=(proto_XRaiseWindow *)_loadfunc("XRaiseWindow");
748         return (func_XRaiseWindow)( display, w);
749 }
750
751 typedef int (proto_XRecolorCursor)( Display *display, Cursor cursor, XColor *fg,XColor *bg);
752 static proto_XRecolorCursor *func_XRecolorCursor = NULL;
753 int XRecolorCursor( Display *display, Cursor cursor, XColor *fg,XColor *bg) {
754         if (!func_XRecolorCursor) func_XRecolorCursor=(proto_XRecolorCursor *)_loadfunc("XRecolorCursor");
755         return (func_XRecolorCursor)( display, cursor, fg,bg);
756 }
757
758 typedef int (proto_XRefreshKeyboardMapping)(XMappingEvent *event);
759 static proto_XRefreshKeyboardMapping *func_XRefreshKeyboardMapping = NULL;
760 int XRefreshKeyboardMapping(XMappingEvent *event) {
761         if (!func_XRefreshKeyboardMapping) func_XRefreshKeyboardMapping=(proto_XRefreshKeyboardMapping *)_loadfunc("XRefreshKeyboardMapping");
762         return (func_XRefreshKeyboardMapping)(event);
763 }
764
765 typedef int (proto_XResizeWindow)( Display* display, Window w, unsigned int width, unsigned int height);
766 static proto_XResizeWindow *func_XResizeWindow = NULL;
767 int XResizeWindow( Display* display, Window w, unsigned int width, unsigned int height) {
768         if (!func_XResizeWindow) func_XResizeWindow=(proto_XResizeWindow *)_loadfunc("XResizeWindow");
769         return (func_XResizeWindow)( display, w, width, height);
770 }
771
772 typedef Window (proto_XRootWindow)( Display *display, int scr);
773 static proto_XRootWindow *func_XRootWindow = NULL;
774 Window XRootWindow( Display *display, int scr) {
775         if (!func_XRootWindow) func_XRootWindow=(proto_XRootWindow *)_loadfunc("XRootWindow");
776         return (func_XRootWindow)( display, scr);
777 }
778
779 typedef Window (proto_XRootWindowOfScreen)(Screen *scr);
780 static proto_XRootWindowOfScreen *func_XRootWindowOfScreen = NULL;
781 Window XRootWindowOfScreen(Screen *scr) {
782         if (!func_XRootWindowOfScreen) func_XRootWindowOfScreen=(proto_XRootWindowOfScreen *)_loadfunc("XRootWindowOfScreen");
783         return (func_XRootWindowOfScreen)(scr);
784 }
785
786 typedef Screen * (proto_XScreenOfDisplay)( Display *display, int scr);
787 static proto_XScreenOfDisplay *func_XScreenOfDisplay = NULL;
788 Screen * XScreenOfDisplay( Display *display, int scr) {
789         if (!func_XScreenOfDisplay) func_XScreenOfDisplay=(proto_XScreenOfDisplay *)_loadfunc("XScreenOfDisplay");
790         return (func_XScreenOfDisplay)( display, scr);
791 }
792
793 typedef int (proto_XSelectInput)(Display *display, Window window, long mask);
794 static proto_XSelectInput *func_XSelectInput = NULL;
795 int XSelectInput(Display *display, Window window, long mask) {
796         if (!func_XSelectInput) func_XSelectInput=(proto_XSelectInput *)_loadfunc("XSelectInput");
797         return (func_XSelectInput)(display, window, mask);
798 }
799
800 typedef StatusDef (proto_XSendEvent)( Display *display, Window w, BoolDef prop, long emask, XEvent *event);
801 static proto_XSendEvent *func_XSendEvent = NULL;
802 StatusDef XSendEvent( Display *display, Window w, BoolDef prop, long emask, XEvent *event) {
803         if (!func_XSendEvent) func_XSendEvent=(proto_XSendEvent *)_loadfunc("XSendEvent");
804         return (func_XSendEvent)( display, w, prop, emask, event);
805 }
806
807 typedef char * (proto_XServerVendor)(Display *display);
808 static proto_XServerVendor *func_XServerVendor = NULL;
809 char * XServerVendor(Display *display) {
810         if (!func_XServerVendor) func_XServerVendor=(proto_XServerVendor *)_loadfunc("XServerVendor");
811         return (func_XServerVendor)(display);
812 }
813
814 typedef int (proto_XSetClassHint)( Display *display, Window w, XClassHint *chints);
815 static proto_XSetClassHint *func_XSetClassHint = NULL;
816 int XSetClassHint( Display *display, Window w, XClassHint *chints) {
817         if (!func_XSetClassHint) func_XSetClassHint=(proto_XSetClassHint *)_loadfunc("XSetClassHint");
818         return (func_XSetClassHint)( display, w, chints);
819 }
820
821 typedef int (proto_XSetClipMask)( Display *display, GC gc, Pixmap cmask);
822 static proto_XSetClipMask *func_XSetClipMask = NULL;
823 int XSetClipMask( Display *display, GC gc, Pixmap cmask) {
824         if (!func_XSetClipMask) func_XSetClipMask=(proto_XSetClipMask *)_loadfunc("XSetClipMask");
825         return (func_XSetClipMask)( display, gc, cmask);
826 }
827
828 typedef int (proto_XSetClipRectangles)( Display *display, GC gc, int clx, int cly, XRectangle *rs, int n, int order);
829 static proto_XSetClipRectangles *func_XSetClipRectangles = NULL;
830 int XSetClipRectangles( Display *display, GC gc, int clx, int cly, XRectangle *rs, int n, int order) {
831         if (!func_XSetClipRectangles) func_XSetClipRectangles=(proto_XSetClipRectangles *)_loadfunc("XSetClipRectangles");
832         return (func_XSetClipRectangles)( display, gc, clx, cly, rs, n, order);
833 }
834
835 typedef int (proto_XSetDashes)(Display *display, GC gc, int dash_offset, const char * dash_list, int n);
836 static proto_XSetDashes *func_XSetDashes = NULL;
837 int XSetDashes(Display *display, GC gc, int dash_offset, const char * dash_list, int n) {
838         if (!func_XSetDashes) func_XSetDashes=(proto_XSetDashes *)_loadfunc("XSetDashes");
839         return (func_XSetDashes)(display, gc, dash_offset, dash_list, n);
840 }
841
842 typedef XErrorHandler (proto_XSetErrorHandler)(XErrorHandler handler);
843 static proto_XSetErrorHandler *func_XSetErrorHandler = NULL;
844 XErrorHandler XSetErrorHandler(XErrorHandler handler) {
845         if (!func_XSetErrorHandler) func_XSetErrorHandler=(proto_XSetErrorHandler *)_loadfunc("XSetErrorHandler");
846         return (func_XSetErrorHandler)(handler);
847 }
848
849 typedef int (proto_XSetFillStyle)( Display *display, GC gc, int fs);
850 static proto_XSetFillStyle *func_XSetFillStyle = NULL;
851 int XSetFillStyle( Display *display, GC gc, int fs) {
852         if (!func_XSetFillStyle) func_XSetFillStyle=(proto_XSetFillStyle *)_loadfunc("XSetFillStyle");
853         return (func_XSetFillStyle)( display, gc, fs);
854 }
855
856 typedef int (proto_XSetFont)( Display *display, GC gc, Font font);
857 static proto_XSetFont *func_XSetFont = NULL;
858 int XSetFont( Display *display, GC gc, Font font) {
859         if (!func_XSetFont) func_XSetFont=(proto_XSetFont *)_loadfunc("XSetFont");
860         return (func_XSetFont)( display, gc, font);
861 }
862
863 typedef int (proto_XSetFontPath)( Display *display, char **dirs, int nd);
864 static proto_XSetFontPath *func_XSetFontPath = NULL;
865 int XSetFontPath( Display *display, char **dirs, int nd) {
866         if (!func_XSetFontPath) func_XSetFontPath=(proto_XSetFontPath *)_loadfunc("XSetFontPath");
867         return (func_XSetFontPath)( display, dirs, nd);
868 }
869
870 typedef int (proto_XSetForeground)( Display *display, GC gc, unsigned long color);
871 static proto_XSetForeground *func_XSetForeground = NULL;
872 int XSetForeground( Display *display, GC gc, unsigned long color) {
873         if (!func_XSetForeground) func_XSetForeground=(proto_XSetForeground *)_loadfunc("XSetForeground");
874         return (func_XSetForeground)( display, gc, color);
875 }
876
877 typedef int (proto_XSetFunction)( Display *display, GC gc, int fn);
878 static proto_XSetFunction *func_XSetFunction = NULL;
879 int XSetFunction( Display *display, GC gc, int fn) {
880         if (!func_XSetFunction) func_XSetFunction=(proto_XSetFunction *)_loadfunc("XSetFunction");
881         return (func_XSetFunction)( display, gc, fn);
882 }
883
884 typedef void (proto_XSetICFocus)(XIC ic);
885 static proto_XSetICFocus *func_XSetICFocus = NULL;
886 void XSetICFocus(XIC ic) {
887         if (!func_XSetICFocus) func_XSetICFocus=(proto_XSetICFocus *)_loadfunc("XSetICFocus");
888         (func_XSetICFocus)(ic);
889 }
890
891 typedef int (proto_XSetIconName)(Display *display, Window w, const char *iname);
892 static proto_XSetIconName *func_XSetIconName = NULL;
893 int XSetIconName(Display *display, Window w, const char *iname) {
894         if (!func_XSetIconName) func_XSetIconName=(proto_XSetIconName *)_loadfunc("XSetIconName");
895         return (func_XSetIconName)(display, w, iname);
896 }
897
898 typedef int (proto_XSetInputFocus)( Display *display, Window focus, int revto, Time time);
899 static proto_XSetInputFocus *func_XSetInputFocus = NULL;
900 int XSetInputFocus( Display *display, Window focus, int revto, Time time) {
901         if (!func_XSetInputFocus) func_XSetInputFocus=(proto_XSetInputFocus *)_loadfunc("XSetInputFocus");
902         return (func_XSetInputFocus)( display, focus, revto, time);
903 }
904
905 typedef int (proto_XSetLineAttributes)( Display *display, GC gc, unsigned int lw, int ls, int cs, int js);
906 static proto_XSetLineAttributes *func_XSetLineAttributes = NULL;
907 int XSetLineAttributes( Display *display, GC gc, unsigned int lw, int ls, int cs, int js) {
908         if (!func_XSetLineAttributes) func_XSetLineAttributes=(proto_XSetLineAttributes *)_loadfunc("XSetLineAttributes");
909         return (func_XSetLineAttributes)( display, gc, lw, ls, cs, js);
910 }
911
912 typedef char * (proto_XSetLocaleModifiers)(const char* modifier_list);
913 static proto_XSetLocaleModifiers *func_XSetLocaleModifiers = NULL;
914 char * XSetLocaleModifiers(const char* modifier_list) {
915         if (!func_XSetLocaleModifiers) func_XSetLocaleModifiers=(proto_XSetLocaleModifiers *)_loadfunc("XSetLocaleModifiers");
916         return (func_XSetLocaleModifiers)(modifier_list);
917 }
918
919 typedef int (proto_XSetNormalHints)( Display *display, Window w, XSizeHints *hints);
920 static proto_XSetNormalHints *func_XSetNormalHints = NULL;
921 int XSetNormalHints( Display *display, Window w, XSizeHints *hints) {
922         if (!func_XSetNormalHints) func_XSetNormalHints=(proto_XSetNormalHints *)_loadfunc("XSetNormalHints");
923         return (func_XSetNormalHints)( display, w, hints);
924 }
925
926 typedef int (proto_XSetPlaneMask)( Display *display, GC gc, unsigned long pmask);
927 static proto_XSetPlaneMask *func_XSetPlaneMask = NULL;
928 int XSetPlaneMask( Display *display, GC gc, unsigned long pmask) {
929         if (!func_XSetPlaneMask) func_XSetPlaneMask=(proto_XSetPlaneMask *)_loadfunc("XSetPlaneMask");
930         return (func_XSetPlaneMask)( display, gc, pmask);
931 }
932
933 typedef int (proto_XSetRegion)( Display *display, GC gc, Region hrgn);
934 static proto_XSetRegion *func_XSetRegion = NULL;
935 int XSetRegion( Display *display, GC gc, Region hrgn) {
936         if (!func_XSetRegion) func_XSetRegion=(proto_XSetRegion *)_loadfunc("XSetRegion");
937         return (func_XSetRegion)( display, gc, hrgn);
938 }
939
940 typedef int (proto_XSetSelectionOwner)( Display* display, Atom sel, Window owner, Time time);
941 static proto_XSetSelectionOwner *func_XSetSelectionOwner = NULL;
942 int XSetSelectionOwner( Display* display, Atom sel, Window owner, Time time) {
943         if (!func_XSetSelectionOwner) func_XSetSelectionOwner=(proto_XSetSelectionOwner *)_loadfunc("XSetSelectionOwner");
944         return (func_XSetSelectionOwner)( display, sel, owner, time);
945 }
946
947 typedef int (proto_XSetTile)( Display *display, GC gc, Pixmap tile);
948 static proto_XSetTile *func_XSetTile = NULL;
949 int XSetTile( Display *display, GC gc, Pixmap tile) {
950         if (!func_XSetTile) func_XSetTile=(proto_XSetTile *)_loadfunc("XSetTile");
951         return (func_XSetTile)( display, gc, tile);
952 }
953
954 typedef int (proto_XSetWMHints)( Display *display, Window w, XWMHints *wmhints);
955 static proto_XSetWMHints *func_XSetWMHints = NULL;
956 int XSetWMHints( Display *display, Window w, XWMHints *wmhints) {
957         if (!func_XSetWMHints) func_XSetWMHints=(proto_XSetWMHints *)_loadfunc("XSetWMHints");
958         return (func_XSetWMHints)( display, w, wmhints);
959 }
960
961 typedef void (proto_XSetWMNormalHints)(Display* display,Window w,XSizeHints* hints);
962 static proto_XSetWMNormalHints *func_XSetWMNormalHints = NULL;
963 void XSetWMNormalHints(Display* display,Window w,XSizeHints* hints) {
964         if (!func_XSetWMNormalHints) func_XSetWMNormalHints=(proto_XSetWMNormalHints *)_loadfunc("XSetWMNormalHints");
965         (func_XSetWMNormalHints)(display,w,hints);
966 }
967
968 typedef void (proto_XSetWMProperties)( Display* display, Window w, XTextProperty* window_name, XTextProperty* icon_name, char** argv, int argc, XSizeHints* normal_hints, XWMHints* wm_hints, XClassHint* class_hints);
969 static proto_XSetWMProperties *func_XSetWMProperties = NULL;
970 void XSetWMProperties( Display* display, Window w, XTextProperty* window_name, XTextProperty* icon_name, char** argv, int argc, XSizeHints* normal_hints, XWMHints* wm_hints, XClassHint* class_hints) {
971         if (!func_XSetWMProperties) func_XSetWMProperties=(proto_XSetWMProperties *)_loadfunc("XSetWMProperties");
972         (func_XSetWMProperties)( display, w, window_name, icon_name, argv, argc, normal_hints, wm_hints, class_hints);
973 }
974
975 typedef StatusDef (proto_XSetWMProtocols)( Display *display, Window w, Atom *prots, int co);
976 static proto_XSetWMProtocols *func_XSetWMProtocols = NULL;
977 StatusDef XSetWMProtocols( Display *display, Window w, Atom *prots, int co) {
978         if (!func_XSetWMProtocols) func_XSetWMProtocols=(proto_XSetWMProtocols *)_loadfunc("XSetWMProtocols");
979         return (func_XSetWMProtocols)( display, w, prots, co);
980 }
981
982 typedef int (proto_XSetWindowBackground)( Display *display, Window w, unsigned long bg);
983 static proto_XSetWindowBackground *func_XSetWindowBackground = NULL;
984 int XSetWindowBackground( Display *display, Window w, unsigned long bg) {
985         if (!func_XSetWindowBackground) func_XSetWindowBackground=(proto_XSetWindowBackground *)_loadfunc("XSetWindowBackground");
986         return (func_XSetWindowBackground)( display, w, bg);
987 }
988
989 typedef int (proto_XSetWindowBackgroundPixmap)( Display *display, Window w, Pixmap background_tile);
990 static proto_XSetWindowBackgroundPixmap *func_XSetWindowBackgroundPixmap = NULL;
991 int XSetWindowBackgroundPixmap( Display *display, Window w, Pixmap background_tile) {
992         if (!func_XSetWindowBackgroundPixmap) func_XSetWindowBackgroundPixmap=(proto_XSetWindowBackgroundPixmap *)_loadfunc("XSetWindowBackgroundPixmap");
993         return (func_XSetWindowBackgroundPixmap)( display, w, background_tile);
994 }
995
996 typedef int (proto_XStoreColor)( Display *display, Colormap cmap, XColor *cell);
997 static proto_XStoreColor *func_XStoreColor = NULL;
998 int XStoreColor( Display *display, Colormap cmap, XColor *cell) {
999         if (!func_XStoreColor) func_XStoreColor=(proto_XStoreColor *)_loadfunc("XStoreColor");
1000         return (func_XStoreColor)( display, cmap, cell);
1001 }
1002
1003 typedef int (proto_XStoreColors)( Display *display, Colormap cmap, XColor *cells, int nc);
1004 static proto_XStoreColors *func_XStoreColors = NULL;
1005 int XStoreColors( Display *display, Colormap cmap, XColor *cells, int nc) {
1006         if (!func_XStoreColors) func_XStoreColors=(proto_XStoreColors *)_loadfunc("XStoreColors");
1007         return (func_XStoreColors)( display, cmap, cells, nc);
1008 }
1009
1010 typedef int (proto_XStoreName)(Display *display, Window w, const char *wname);
1011 static proto_XStoreName *func_XStoreName = NULL;
1012 int XStoreName(Display *display, Window w, const char *wname) {
1013         if (!func_XStoreName) func_XStoreName=(proto_XStoreName *)_loadfunc("XStoreName");
1014         return (func_XStoreName)(display, w, wname);
1015 }
1016
1017 typedef KeySym (proto_XStringToKeysym)(const char *str);
1018 static proto_XStringToKeysym *func_XStringToKeysym = NULL;
1019 KeySym XStringToKeysym(const char *str) {
1020         if (!func_XStringToKeysym) func_XStringToKeysym=(proto_XStringToKeysym *)_loadfunc("XStringToKeysym");
1021         return (func_XStringToKeysym)(str);
1022 }
1023
1024 typedef int (proto_XSync)(Display *display,int discard);
1025 static proto_XSync *func_XSync = NULL;
1026 int XSync(Display *display,int discard) {
1027         if (!func_XSync) func_XSync=(proto_XSync *)_loadfunc("XSync");
1028         return (func_XSync)(display,discard);
1029 }
1030
1031 typedef int (proto_XTextExtents)( XFontStruct *fstruct, const char *str, int nc, int *dir,int *ascent,int *descent, XCharStruct *overall);
1032 static proto_XTextExtents *func_XTextExtents = NULL;
1033 int XTextExtents( XFontStruct *fstruct, const char *str, int nc, int *dir,int *ascent,int *descent, XCharStruct *overall) {
1034         if (!func_XTextExtents) func_XTextExtents=(proto_XTextExtents *)_loadfunc("XTextExtents");
1035         return (func_XTextExtents)( fstruct, str, nc, dir,ascent,descent, overall);
1036 }
1037
1038 typedef int (proto_XTextExtents16)( XFontStruct *fstruct, const XChar2b *str, int nc, int *dir, int *ascent, int *descent, XCharStruct *overall);
1039 static proto_XTextExtents16 *func_XTextExtents16 = NULL;
1040 int XTextExtents16( XFontStruct *fstruct, const XChar2b *str, int nc, int *dir, int *ascent, int *descent, XCharStruct *overall) {
1041         if (!func_XTextExtents16) func_XTextExtents16=(proto_XTextExtents16 *)_loadfunc("XTextExtents16");
1042         return (func_XTextExtents16)( fstruct, str, nc, dir, ascent, descent, overall);
1043 }
1044
1045 typedef int (proto_XTextWidth)( XFontStruct *fstruct, const char *str, int co);
1046 static proto_XTextWidth *func_XTextWidth = NULL;
1047 int XTextWidth( XFontStruct *fstruct, const char *str, int co) {
1048         if (!func_XTextWidth) func_XTextWidth=(proto_XTextWidth *)_loadfunc("XTextWidth");
1049         return (func_XTextWidth)( fstruct, str, co);
1050 }
1051
1052 typedef int (proto_XTextWidth16)( XFontStruct *fstruct, const XChar2b *str, int co);
1053 static proto_XTextWidth16 *func_XTextWidth16 = NULL;
1054 int XTextWidth16( XFontStruct *fstruct, const XChar2b *str, int co) {
1055         if (!func_XTextWidth16) func_XTextWidth16=(proto_XTextWidth16 *)_loadfunc("XTextWidth16");
1056         return (func_XTextWidth16)( fstruct, str, co);
1057 }
1058
1059 typedef BoolDef (proto_XTranslateCoordinates)( Display *display, Window sw, Window dw, int sx, int sy, int *dx, int *dy, Window *ch);
1060 static proto_XTranslateCoordinates *func_XTranslateCoordinates = NULL;
1061 BoolDef XTranslateCoordinates( Display *display, Window sw, Window dw, int sx, int sy, int *dx, int *dy, Window *ch) {
1062         if (!func_XTranslateCoordinates) func_XTranslateCoordinates=(proto_XTranslateCoordinates *)_loadfunc("XTranslateCoordinates");
1063         return (func_XTranslateCoordinates)( display, sw, dw, sx, sy, dx, dy, ch);
1064 }
1065
1066 typedef int (proto_XUngrabServer)(Display *display);
1067 static proto_XUngrabServer *func_XUngrabServer = NULL;
1068 int XUngrabServer(Display *display) {
1069         if (!func_XUngrabServer) func_XUngrabServer=(proto_XUngrabServer *)_loadfunc("XUngrabServer");
1070         return (func_XUngrabServer)(display);
1071 }
1072
1073 typedef int (proto_XUnionRectWithRegion)(XRectangle *rect, Region hrgnsrc, Region hrgndest);
1074 static proto_XUnionRectWithRegion *func_XUnionRectWithRegion = NULL;
1075 int XUnionRectWithRegion(XRectangle *rect, Region hrgnsrc, Region hrgndest) {
1076         if (!func_XUnionRectWithRegion) func_XUnionRectWithRegion=(proto_XUnionRectWithRegion *)_loadfunc("XUnionRectWithRegion");
1077         return (func_XUnionRectWithRegion)(rect, hrgnsrc, hrgndest);
1078 }
1079
1080 typedef int (proto_XUnmapWindow)(Display *display, Window w);
1081 static proto_XUnmapWindow *func_XUnmapWindow = NULL;
1082 int XUnmapWindow(Display *display, Window w) {
1083         if (!func_XUnmapWindow) func_XUnmapWindow=(proto_XUnmapWindow *)_loadfunc("XUnmapWindow");
1084         return (func_XUnmapWindow)(display, w);
1085 }
1086
1087 typedef void (proto_XUnsetICFocus)(XIC ic);
1088 static proto_XUnsetICFocus *func_XUnsetICFocus = NULL;
1089 void XUnsetICFocus(XIC ic) {
1090         if (!func_XUnsetICFocus) func_XUnsetICFocus=(proto_XUnsetICFocus *)_loadfunc("XUnsetICFocus");
1091         (func_XUnsetICFocus)(ic);
1092 }
1093
1094 typedef int (proto_XWarpPointer)( Display *display, Window sw,Window dw, int sx,int sy, unsigned int swidth,unsigned int sheight, int dx, int dy);
1095 static proto_XWarpPointer *func_XWarpPointer = NULL;
1096 int XWarpPointer( Display *display, Window sw,Window dw, int sx,int sy, unsigned int swidth,unsigned int sheight, int dx, int dy) {
1097         if (!func_XWarpPointer) func_XWarpPointer=(proto_XWarpPointer *)_loadfunc("XWarpPointer");
1098         return (func_XWarpPointer)( display, sw,dw, sx,sy, swidth,sheight, dx, dy);
1099 }
1100
1101 typedef int (proto_XWindowEvent)( Display *display, Window w, long emask, XEvent *rep);
1102 static proto_XWindowEvent *func_XWindowEvent = NULL;
1103 int XWindowEvent( Display *display, Window w, long emask, XEvent *rep) {
1104         if (!func_XWindowEvent) func_XWindowEvent=(proto_XWindowEvent *)_loadfunc("XWindowEvent");
1105         return (func_XWindowEvent)( display, w, emask, rep);
1106 }
1107
1108 typedef int (proto_XmbLookupString)( XIC ic, XKeyPressedEvent* event, char* buffer_return, int bytes_buffer, KeySym* keysym_return, StatusDef* status_return);
1109 static proto_XmbLookupString *func_XmbLookupString = NULL;
1110 int XmbLookupString( XIC ic, XKeyPressedEvent* event, char* buffer_return, int bytes_buffer, KeySym* keysym_return, StatusDef* status_return) {
1111         if (!func_XmbLookupString) func_XmbLookupString=(proto_XmbLookupString *)_loadfunc("XmbLookupString");
1112         return (func_XmbLookupString)( ic, event, buffer_return, bytes_buffer, keysym_return, status_return);
1113 }
1114
1115 typedef int (proto_XmbTextListToTextProperty)( Display *display, char **list, int count, XICCEncodingStyle style, XTextProperty *text_prop_return);
1116 static proto_XmbTextListToTextProperty *func_XmbTextListToTextProperty = NULL;
1117 int XmbTextListToTextProperty( Display *display, char **list, int count, XICCEncodingStyle style, XTextProperty *text_prop_return) {
1118         if (!func_XmbTextListToTextProperty) func_XmbTextListToTextProperty=(proto_XmbTextListToTextProperty *)_loadfunc("XmbTextListToTextProperty");
1119         return (func_XmbTextListToTextProperty)( display, list, count, style, text_prop_return);
1120 }
1121
1122 typedef int (proto_XmbTextPropertyToTextList)( Display *display, XTextProperty *text_prop, char ***list_return, int *count_return);
1123 static proto_XmbTextPropertyToTextList *func_XmbTextPropertyToTextList = NULL;
1124 int XmbTextPropertyToTextList( Display *display, XTextProperty *text_prop, char ***list_return, int *count_return) {
1125         if (!func_XmbTextPropertyToTextList) func_XmbTextPropertyToTextList=(proto_XmbTextPropertyToTextList *)_loadfunc("XmbTextPropertyToTextList");
1126         return (func_XmbTextPropertyToTextList)( display, text_prop, list_return, count_return);
1127 }
1128
1129 typedef char * (proto_XrmQuarkToString)(void *quark);
1130 static proto_XrmQuarkToString *func_XrmQuarkToString = NULL;
1131 char * XrmQuarkToString(void *quark) {
1132         if (!func_XrmQuarkToString) func_XrmQuarkToString=(proto_XrmQuarkToString *)_loadfunc("XrmQuarkToString");
1133         return (func_XrmQuarkToString)(quark);
1134 }