2 * Thread safe wrappers around Xutil calls.
3 * This file was generated automatically by tools/make_X11wrappers
12 #include <X11/Xresource.h>
13 #include <X11/Xutil.h>
18 XClassHint
* TSXAllocClassHint(void)
22 r
= XAllocClassHint();
27 XSizeHints
* TSXAllocSizeHints(void)
31 r
= XAllocSizeHints();
36 XWMHints
* TSXAllocWMHints(void)
45 int TSXClipBox(Region a0
, XRectangle
* a1
)
54 Region
TSXCreateRegion(void)
63 int TSXDestroyRegion(Region a0
)
67 r
= XDestroyRegion(a0
);
72 int TSXEmptyRegion(Region a0
)
81 int TSXEqualRegion(Region a0
, Region a1
)
85 r
= XEqualRegion(a0
, a1
);
90 int TSXFindContext(Display
* a0
, XID a1
, XContext a2
, XPointer
* a3
)
94 r
= XFindContext(a0
, a1
, a2
, a3
);
99 XVisualInfo
* TSXGetVisualInfo(Display
* a0
, long a1
, XVisualInfo
* a2
, int* a3
)
103 r
= XGetVisualInfo(a0
, a1
, a2
, a3
);
108 XWMHints
* TSXGetWMHints(Display
* a0
, Window a1
)
112 r
= XGetWMHints(a0
, a1
);
117 int TSXGetWMSizeHints(Display
* a0
, Window a1
, XSizeHints
* a2
, long* a3
, Atom a4
)
121 r
= XGetWMSizeHints(a0
, a1
, a2
, a3
, a4
);
126 int TSXIntersectRegion(Region a0
, Region a1
, Region a2
)
130 r
= XIntersectRegion(a0
, a1
, a2
);
135 int TSXLookupString(XKeyEvent
* a0
, char* a1
, int a2
, KeySym
* a3
, XComposeStatus
* a4
)
139 r
= XLookupString(a0
, a1
, a2
, a3
, a4
);
144 int TSXOffsetRegion(Region a0
, int a1
, int a2
)
148 r
= XOffsetRegion(a0
, a1
, a2
);
153 int TSXPointInRegion(Region a0
, int a1
, int a2
)
157 r
= XPointInRegion(a0
, a1
, a2
);
162 Region
TSXPolygonRegion(XPoint
* a0
, int a1
, int a2
)
166 r
= XPolygonRegion(a0
, a1
, a2
);
171 int TSXRectInRegion(Region a0
, int a1
, int a2
, unsigned int a3
, unsigned int a4
)
175 r
= XRectInRegion(a0
, a1
, a2
, a3
, a4
);
180 int TSXSaveContext(Display
* a0
, XID a1
, XContext a2
, const char* a3
)
184 r
= XSaveContext(a0
, a1
, a2
, a3
);
189 int TSXSetClassHint(Display
* a0
, Window a1
, XClassHint
* a2
)
193 r
= XSetClassHint(a0
, a1
, a2
);
198 int TSXSetWMHints(Display
* a0
, Window a1
, XWMHints
* a2
)
202 r
= XSetWMHints(a0
, a1
, a2
);
207 void TSXSetWMProperties(Display
* a0
, Window a1
, XTextProperty
* a2
, XTextProperty
* a3
, char** a4
, int a5
, XSizeHints
* a6
, XWMHints
* a7
, XClassHint
* a8
)
210 XSetWMProperties(a0
, a1
, a2
, a3
, a4
, a5
, a6
, a7
, a8
);
214 void TSXSetWMSizeHints(Display
* a0
, Window a1
, XSizeHints
* a2
, Atom a3
)
217 XSetWMSizeHints(a0
, a1
, a2
, a3
);
221 int TSXSetRegion(Display
* a0
, GC a1
, Region a2
)
225 r
= XSetRegion(a0
, a1
, a2
);
230 int TSXShrinkRegion(Region a0
, int a1
, int a2
)
234 r
= XShrinkRegion(a0
, a1
, a2
);
239 int TSXStringListToTextProperty(char** a0
, int a1
, XTextProperty
* a2
)
243 r
= XStringListToTextProperty(a0
, a1
, a2
);
248 int TSXSubtractRegion(Region a0
, Region a1
, Region a2
)
252 r
= XSubtractRegion(a0
, a1
, a2
);
257 int TSXUnionRectWithRegion(XRectangle
* a0
, Region a1
, Region a2
)
261 r
= XUnionRectWithRegion(a0
, a1
, a2
);
266 int TSXUnionRegion(Region a0
, Region a1
, Region a2
)
270 r
= XUnionRegion(a0
, a1
, a2
);
275 int TSXXorRegion(Region a0
, Region a1
, Region a2
)
279 r
= XXorRegion(a0
, a1
, a2
);
284 int TSXDestroyImage(struct _XImage
*a0
)
288 r
= XDestroyImage(a0
);
293 struct _XImage
* TSXSubImage(struct _XImage
*a0
, int a1
, int a2
, unsigned int a3
, unsigned int a4
)
297 r
= XSubImage(a0
, a1
, a2
, a3
, a4
);
302 int TSXAddPixel(struct _XImage
*a0
, long a1
)
306 r
= XAddPixel(a0
, a1
);
311 XContext
TSXUniqueContext(void)
315 r
= XUniqueContext();
320 int TSXDeleteContext(Display
*a0
,XID a1
,XContext a2
)
324 r
= XDeleteContext(a0
,a1
,a2
);
329 #endif /* defined(HAVE_X11_XLIB_H) */