2 * Thread safe wrappers around Xlib calls.
3 * Always include this file instead of <X11/Xlib.h>.
4 * This file was generated automatically by tools/make_X11wrappers
8 #ifndef __WINE_TS_XLIB_H
9 #define __WINE_TS_XLIB_H
11 #ifndef __WINE_CONFIG_H
12 # error You must include config.h to use this header
18 extern void (*wine_tsx11_lock
)(void);
19 extern void (*wine_tsx11_unlock
)(void);
21 extern XFontStruct
* TSXLoadQueryFont(Display
*, const char*);
22 extern XModifierKeymap
* TSXGetModifierMapping(Display
*);
23 extern XImage
* TSXCreateImage(Display
*, Visual
*, unsigned int, int, int, char*, unsigned int, unsigned int, int, int);
24 extern XImage
* TSXGetImage(Display
*, Drawable
, int, int, unsigned int, unsigned int, unsigned long, int);
25 extern XImage
* TSXGetSubImage(Display
*, Drawable
, int, int, unsigned int, unsigned int, unsigned long, int, XImage
*, int, int);
26 extern Display
* TSXOpenDisplay(const char*);
27 extern void TSXrmInitialize(void);
28 extern char * TSXGetAtomName(Display
*, Atom
);
29 extern char * TSXKeysymToString(KeySym
);
30 extern Atom
TSXInternAtom(Display
*, const char*, int);
31 extern Colormap
TSXCopyColormapAndFree(Display
*, Colormap
);
32 extern Colormap
TSXCreateColormap(Display
*, Window
, Visual
*, int);
33 extern Cursor
TSXCreatePixmapCursor(Display
*, Pixmap
, Pixmap
, XColor
*, XColor
*, unsigned int, unsigned int);
34 extern Cursor
TSXCreateFontCursor(Display
*, unsigned int);
35 extern GC
TSXCreateGC(Display
*, Drawable
, unsigned long, XGCValues
*);
36 extern Pixmap
TSXCreatePixmap(Display
*, Drawable
, unsigned int, unsigned int, unsigned int);
37 extern Pixmap
TSXCreateBitmapFromData(Display
*, Drawable
, const char*, unsigned int, unsigned int);
38 extern Window
TSXGetSelectionOwner(Display
*, Atom
);
39 extern Window
TSXCreateWindow(Display
*, Window
, int, int, unsigned int, unsigned int, unsigned int, int, unsigned int, Visual
*, unsigned long, XSetWindowAttributes
*);
40 extern char ** TSXListFonts(Display
*, const char*, int, int*);
41 extern KeySym
TSXKeycodeToKeysym(Display
*, unsigned int, int);
42 extern KeySym
TSXLookupKeysym(XKeyEvent
*, int);
43 extern KeySym
* TSXGetKeyboardMapping(Display
*, unsigned int, int, int*);
44 extern char * TSXResourceManagerString(Display
*);
45 extern VisualID
TSXVisualIDFromVisual(Visual
*);
46 extern int TSXInitThreads(void);
47 extern XPixmapFormatValues
* TSXListPixmapFormats(Display
*, int*);
48 extern int * TSXListDepths(Display
*, int, int*);
49 extern int TSXReconfigureWMWindow(Display
*, Window
, int, unsigned int, XWindowChanges
*);
50 extern int TSXSetWMProtocols(Display
*, Window
, Atom
*, int);
51 extern int TSXIconifyWindow(Display
*, Window
, int);
52 extern int TSXSetTransientForHint(Display
*, Window
, Window
);
53 extern int TSXActivateScreenSaver(Display
*);
54 extern int TSXAllocColor(Display
*, Colormap
, XColor
*);
55 extern int TSXAllocColorCells(Display
*, Colormap
, int, unsigned long*, unsigned int, unsigned long*, unsigned int);
56 extern int TSXBell(Display
*, int);
57 extern int TSXChangeGC(Display
*, GC
, unsigned long, XGCValues
*);
58 extern int TSXChangeKeyboardControl(Display
*, unsigned long, XKeyboardControl
*);
59 extern int TSXChangeProperty(Display
*, Window
, Atom
, Atom
, int, int, const unsigned char*, int);
60 extern int TSXChangeWindowAttributes(Display
*, Window
, unsigned long, XSetWindowAttributes
*);
61 extern int TSXCheckTypedEvent(Display
*, int, XEvent
*);
62 extern int TSXCheckTypedWindowEvent(Display
*, Window
, int, XEvent
*);
63 extern int TSXCheckWindowEvent(Display
*, Window
, long, XEvent
*);
64 extern int TSXConvertSelection(Display
*, Atom
, Atom
, Atom
, Window
, Time
);
65 extern int TSXCopyArea(Display
*, Drawable
, Drawable
, GC
, int, int, unsigned int, unsigned int, int, int);
66 extern int TSXCopyPlane(Display
*, Drawable
, Drawable
, GC
, int, int, unsigned int, unsigned int, int, int, unsigned long);
67 extern int TSXDefineCursor(Display
*, Window
, Cursor
);
68 extern int TSXDeleteProperty(Display
*, Window
, Atom
);
69 extern int TSXDestroyWindow(Display
*, Window
);
70 extern int TSXDisplayKeycodes(Display
*, int*, int*);
71 extern int TSXDrawArc(Display
*, Drawable
, GC
, int, int, unsigned int, unsigned int, int, int);
72 extern int TSXDrawLine(Display
*, Drawable
, GC
, int, int, int, int);
73 extern int TSXDrawLines(Display
*, Drawable
, GC
, XPoint
*, int, int);
74 extern int TSXDrawPoint(Display
*, Drawable
, GC
, int, int);
75 extern int TSXDrawRectangle(Display
*, Drawable
, GC
, int, int, unsigned int, unsigned int);
76 extern int TSXDrawSegments(Display
*, Drawable
, GC
, XSegment
*, int);
77 extern int TSXDrawString16(Display
*, Drawable
, GC
, int, int, const XChar2b
*, int);
78 extern int TSXDrawText16(Display
*, Drawable
, GC
, int, int, XTextItem16
*, int);
79 extern int TSXFillArc(Display
*, Drawable
, GC
, int, int, unsigned int, unsigned int, int, int);
80 extern int TSXFillPolygon(Display
*, Drawable
, GC
, XPoint
*, int, int, int);
81 extern int TSXFillRectangle(Display
*, Drawable
, GC
, int, int, unsigned int, unsigned int);
82 extern int TSXFlush(Display
*);
83 extern int TSXFree(void*);
84 extern int TSXFreeColormap(Display
*, Colormap
);
85 extern int TSXFreeColors(Display
*, Colormap
, unsigned long*, int, unsigned long);
86 extern int TSXFreeCursor(Display
*, Cursor
);
87 extern int TSXFreeFont(Display
*, XFontStruct
*);
88 extern int TSXFreeFontNames(char**);
89 extern int TSXFreeGC(Display
*, GC
);
90 extern int TSXFreeModifiermap(XModifierKeymap
*);
91 extern int TSXFreePixmap(Display
*, Pixmap
);
92 extern int TSXGetFontProperty(XFontStruct
*, Atom
, unsigned long*);
93 extern int TSXGetGeometry(Display
*, Drawable
, Window
*, int*, int*, unsigned int*, unsigned int*, unsigned int*, unsigned int*);
94 extern int TSXGetInputFocus(Display
*, Window
*, int*);
95 extern int TSXGetKeyboardControl(Display
*, XKeyboardState
*);
96 extern int TSXGetScreenSaver(Display
*, int*, int*, int*, int*);
97 extern int TSXGetWindowProperty(Display
*, Window
, Atom
, long, long, int, Atom
, Atom
*, int*, unsigned long*, unsigned long*, unsigned char**);
98 extern int TSXGetWindowAttributes(Display
*, Window
, XWindowAttributes
*);
99 extern int TSXGrabKeyboard(Display
*, Window
, int, int, int, Time
);
100 extern int TSXGrabPointer(Display
*, Window
, int, unsigned int, int, int, Window
, Cursor
, Time
);
101 extern int TSXGrabServer(Display
*);
102 extern int TSXInstallColormap(Display
*, Colormap
);
103 extern KeyCode
TSXKeysymToKeycode(Display
*, KeySym
);
104 extern int TSXMapWindow(Display
*, Window
);
105 extern int TSXNextEvent(Display
*, XEvent
*);
106 extern int TSXParseGeometry(const char*, int*, int*, unsigned int*, unsigned int*);
107 extern int TSXPending(Display
*);
108 extern int TSXPutBackEvent(Display
*, XEvent
*);
109 extern int TSXPutImage(Display
*, Drawable
, GC
, XImage
*, int, int, int, int, unsigned int, unsigned int);
110 extern int TSXQueryColor(Display
*, Colormap
, XColor
*);
111 extern int TSXQueryColors(Display
*, Colormap
, XColor
*, int);
112 extern int TSXQueryKeymap(Display
*, char*);
113 extern int TSXQueryPointer(Display
*, Window
, Window
*, Window
*, int*, int*, int*, int*, unsigned int*);
114 extern int TSXQueryTree(Display
*, Window
, Window
*, Window
*, Window
**, unsigned int*);
115 extern int TSXRefreshKeyboardMapping(XMappingEvent
*);
116 extern int TSXResetScreenSaver(Display
*);
117 extern int TSXRestackWindows(Display
*, Window
*, int);
118 extern int TSXSendEvent(Display
*, Window
, int, long, XEvent
*);
119 extern int TSXSetArcMode(Display
*, GC
, int);
120 extern int TSXSetBackground(Display
*, GC
, unsigned long);
121 extern int TSXSetClipMask(Display
*, GC
, Pixmap
);
122 extern int TSXSetClipOrigin(Display
*, GC
, int, int);
123 extern int TSXSetClipRectangles(Display
*, GC
, int, int, XRectangle
*, int, int);
124 extern int TSXSetDashes(Display
*, GC
, int, const char*, int);
125 extern int TSXSetFillStyle(Display
*, GC
, int);
126 extern int TSXSetFont(Display
*, GC
, Font
);
127 extern int TSXSetForeground(Display
*, GC
, unsigned long);
128 extern int TSXSetFunction(Display
*, GC
, int);
129 extern int TSXSetGraphicsExposures(Display
*, GC
, int);
130 extern int TSXSetIconName(Display
*, Window
, const char*);
131 extern int TSXSetInputFocus(Display
*, Window
, int, Time
);
132 extern int TSXSetLineAttributes(Display
*, GC
, unsigned int, int, int, int);
133 extern int TSXSetScreenSaver(Display
*, int, int, int, int);
134 extern int TSXSetSelectionOwner(Display
*, Atom
, Window
, Time
);
135 extern int TSXSetSubwindowMode(Display
*, GC
, int);
136 extern int TSXSetWindowColormap(Display
*, Window
, Colormap
);
137 extern int TSXStoreColor(Display
*, Colormap
, XColor
*);
138 extern int TSXStoreName(Display
*, Window
, const char*);
139 extern int TSXSync(Display
*, int);
140 extern int TSXTextExtents16(XFontStruct
*, const XChar2b
*, int, int*, int*, int*, XCharStruct
*);
141 extern int TSXTextWidth16(XFontStruct
*, const XChar2b
*, int);
142 extern int TSXUngrabKeyboard(Display
*, Time
);
143 extern int TSXUngrabPointer(Display
*, Time
);
144 extern int TSXUngrabServer(Display
*);
145 extern int TSXUninstallColormap(Display
*, Colormap
);
146 extern int TSXUnmapWindow(Display
*, Window
);
147 extern int TSXWarpPointer(Display
*, Window
, Window
, int, int, unsigned int, unsigned int, int, int);
148 extern XIM
TSXOpenIM(Display
*, struct _XrmHashBucketRec
*, char*, char*);
149 extern int (*TSXSynchronize(Display
*, Bool
))(Display
*);
150 extern void TS_XInitImageFuncPtrs(XImage
*);
153 #endif /* __WINE_TS_XLIB_H */