Added some #ifdefs HAVE_X11_XLIB_H where appropriate.
[wine] / include / ts_xutil.h
1 /*
2  * Thread safe wrappers around Xutil calls.
3  * Always include this file instead of <X11/Xutil.h>.
4  * This file was generated automatically by tools/make_X11wrappers
5  * DO NOT EDIT!
6  */
7
8 #ifndef __WINE_TS_XUTIL_H
9 #define __WINE_TS_XUTIL_H
10
11 #ifndef __WINE_CONFIG_H
12 # error You must include config.h to use this header
13 #endif
14
15 #ifdef HAVE_X11_XLIB_H
16
17 #include <X11/Xlib.h>
18 #include <X11/Xresource.h>
19 #include <X11/Xutil.h>
20
21 extern void (*wine_tsx11_lock)(void);
22 extern void (*wine_tsx11_unlock)(void);
23
24 extern XClassHint * TSXAllocClassHint(void);
25 extern XSizeHints * TSXAllocSizeHints(void);
26 extern XWMHints * TSXAllocWMHints(void);
27 extern int  TSXClipBox(Region, XRectangle*);
28 extern Region  TSXCreateRegion(void);
29 extern int  TSXDestroyRegion(Region);
30 extern int  TSXEmptyRegion(Region);
31 extern int  TSXEqualRegion(Region, Region);
32 extern int  TSXFindContext(Display*, XID, XContext, XPointer*);
33 extern XVisualInfo * TSXGetVisualInfo(Display*, long, XVisualInfo*, int*);
34 extern XWMHints * TSXGetWMHints(Display*, Window);
35 extern int   TSXGetWMSizeHints(Display*, Window, XSizeHints*, long*, Atom);
36 extern int  TSXIntersectRegion(Region, Region, Region);
37 extern int  TSXLookupString(XKeyEvent*, char*, int, KeySym*, XComposeStatus*);
38 extern int  TSXOffsetRegion(Region, int, int);
39 extern int   TSXPointInRegion(Region, int, int);
40 extern Region  TSXPolygonRegion(XPoint*, int, int);
41 extern int  TSXRectInRegion(Region, int, int, unsigned int, unsigned int);
42 extern int  TSXSaveContext(Display*, XID, XContext, const  char*);
43 extern int  TSXSetClassHint(Display*, Window, XClassHint*);
44 extern int  TSXSetWMHints(Display*, Window, XWMHints*);
45 extern void  TSXSetWMProperties(Display*, Window, XTextProperty*, XTextProperty*, char**, int, XSizeHints*, XWMHints*, XClassHint*);
46 extern void  TSXSetWMSizeHints(Display*, Window, XSizeHints*, Atom);
47 extern int  TSXSetRegion(Display*, GC, Region);
48 extern int  TSXShrinkRegion(Region, int, int);
49 extern int   TSXStringListToTextProperty(char**, int, XTextProperty*);
50 extern int  TSXSubtractRegion(Region, Region, Region);
51 extern int  TSXUnionRectWithRegion(XRectangle*, Region, Region);
52 extern int  TSXUnionRegion(Region, Region, Region);
53 extern int  TSXXorRegion(Region, Region, Region);
54 extern int TSXDestroyImage(struct _XImage *);
55 extern struct _XImage * TSXSubImage(struct _XImage *, int, int, unsigned int, unsigned int);
56 extern int TSXAddPixel(struct _XImage *, long);
57 extern XContext TSXUniqueContext(void);
58 extern int TSXDeleteContext(Display*,XID,XContext);
59
60 #endif /* defined(HAVE_X11_XLIB_H) */
61
62 #endif /* __WINE_TS_XUTIL_H */