Release 990226.
[wine/gsoc-2012-control.git] / include / ts_xlib.h
blobcf7099c064d4ec85b0000dcfc7cbdf7cff2b96ad
1 /*
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
6 * Copyright 1998 Kristian Nielsen
7 */
9 #ifndef __WINE_TSXLIB_H
10 #define __WINE_TSXLIB_H
12 #include "config.h"
14 #ifndef X_DISPLAY_MISSING
17 #include <X11/Xlib.h>
19 extern XFontStruct * TSXLoadQueryFont(Display*, const char*);
20 extern XModifierKeymap * TSXGetModifierMapping(Display*);
21 extern XImage * TSXCreateImage(Display*, Visual*, unsigned int, int, int, char*, unsigned int, unsigned int, int, int);
22 extern XImage * TSXGetImage(Display*, Drawable, int, int, unsigned int, unsigned int, unsigned long, int);
23 extern Display * TSXOpenDisplay(const char*);
24 extern void TSXrmInitialize(void);
25 extern char * TSXGetAtomName(Display*, Atom);
26 extern char * TSXKeysymToString(KeySym);
27 extern Atom TSXInternAtom(Display*, const char*, int);
28 extern Colormap TSXCopyColormapAndFree(Display*, Colormap);
29 extern Colormap TSXCreateColormap(Display*, Window, Visual*, int);
30 extern Cursor TSXCreatePixmapCursor(Display*, Pixmap, Pixmap, XColor*, XColor*, unsigned int, unsigned int);
31 extern Cursor TSXCreateFontCursor(Display*, unsigned int);
32 extern GC TSXCreateGC(Display*, Drawable, unsigned long, XGCValues*);
33 extern Pixmap TSXCreatePixmap(Display*, Drawable, unsigned int, unsigned int, unsigned int);
34 extern Pixmap TSXCreateBitmapFromData(Display*, Drawable, const char*, unsigned int, unsigned int);
35 extern Window TSXGetSelectionOwner(Display*, Atom);
36 extern Window TSXCreateWindow(Display*, Window, int, int, unsigned int, unsigned int, unsigned int, int, unsigned int, Visual*, unsigned long, XSetWindowAttributes*);
37 extern char ** TSXListFonts(Display*, const char*, int, int*);
38 extern KeySym TSXKeycodeToKeysym(Display*, unsigned int, int);
39 extern KeySym TSXLookupKeysym(XKeyEvent*, int);
40 extern KeySym * TSXGetKeyboardMapping(Display*, unsigned int, int, int*);
41 extern char * TSXResourceManagerString(Display*);
42 extern int TSXInitThreads(void);
43 extern int * TSXListDepths(Display*, int, int*);
44 extern int TSXReconfigureWMWindow(Display*, Window, int, unsigned int, XWindowChanges*);
45 extern int TSXSetWMProtocols(Display*, Window, Atom*, int);
46 extern int TSXSetTransientForHint(Display*, Window, Window);
47 extern int TSXActivateScreenSaver(Display*);
48 extern int TSXAllocColor(Display*, Colormap, XColor*);
49 extern int TSXAllocColorCells(Display*, Colormap, int, unsigned long*, unsigned int, unsigned long*, unsigned int);
50 extern int TSXBell(Display*, int);
51 extern int TSXChangeGC(Display*, GC, unsigned long, XGCValues*);
52 extern int TSXChangeKeyboardControl(Display*, unsigned long, XKeyboardControl*);
53 extern int TSXChangeProperty(Display*, Window, Atom, Atom, int, int, const unsigned char*, int);
54 extern int TSXChangeWindowAttributes(Display*, Window, unsigned long, XSetWindowAttributes*);
55 extern int TSXCheckTypedWindowEvent(Display*, Window, int, XEvent*);
56 extern int TSXCheckWindowEvent(Display*, Window, long, XEvent*);
57 extern int TSXConvertSelection(Display*, Atom, Atom, Atom, Window, Time);
58 extern int TSXCopyArea(Display*, Drawable, Drawable, GC, int, int, unsigned int, unsigned int, int, int);
59 extern int TSXCopyPlane(Display*, Drawable, Drawable, GC, int, int, unsigned int, unsigned int, int, int, unsigned long);
60 extern int TSXDefineCursor(Display*, Window, Cursor);
61 extern int TSXDestroyWindow(Display*, Window);
62 extern int TSXDisplayKeycodes(Display*, int*, int*);
63 extern int TSXDrawArc(Display*, Drawable, GC, int, int, unsigned int, unsigned int, int, int);
64 extern int TSXDrawLine(Display*, Drawable, GC, int, int, int, int);
65 extern int TSXDrawLines(Display*, Drawable, GC, XPoint*, int, int);
66 extern int TSXDrawPoint(Display*, Drawable, GC, int, int);
67 extern int TSXDrawRectangle(Display*, Drawable, GC, int, int, unsigned int, unsigned int);
68 extern int TSXDrawSegments(Display*, Drawable, GC, XSegment*, int);
69 extern int TSXDrawString(Display*, Drawable, GC, int, int, const char*, int);
70 extern int TSXDrawText(Display*, Drawable, GC, int, int, XTextItem*, int);
71 extern int TSXFillArc(Display*, Drawable, GC, int, int, unsigned int, unsigned int, int, int);
72 extern int TSXFillPolygon(Display*, Drawable, GC, XPoint*, int, int, int);
73 extern int TSXFillRectangle(Display*, Drawable, GC, int, int, unsigned int, unsigned int);
74 extern int TSXFlush(Display*);
75 extern int TSXFree(void*);
76 extern int TSXFreeColormap(Display*, Colormap);
77 extern int TSXFreeColors(Display*, Colormap, unsigned long*, int, unsigned long);
78 extern int TSXFreeCursor(Display*, Cursor);
79 extern int TSXFreeFont(Display*, XFontStruct*);
80 extern int TSXFreeFontNames(char**);
81 extern int TSXFreeGC(Display*, GC);
82 extern int TSXFreeModifiermap(XModifierKeymap*);
83 extern int TSXFreePixmap(Display*, Pixmap);
84 extern int TSXGetFontProperty(XFontStruct*, Atom, unsigned long*);
85 extern int TSXGetGeometry(Display*, Drawable, Window*, int*, int*, unsigned int*, unsigned int*, unsigned int*, unsigned int*);
86 extern int TSXGetInputFocus(Display*, Window*, int*);
87 extern int TSXGetKeyboardControl(Display*, XKeyboardState*);
88 extern int TSXGetScreenSaver(Display*, int*, int*, int*, int*);
89 extern int TSXGetWindowProperty(Display*, Window, Atom, long, long, int, Atom, Atom*, int*, unsigned long*, unsigned long*, unsigned char**);
90 extern int TSXGetWindowAttributes(Display*, Window, XWindowAttributes*);
91 extern int TSXGrabServer(Display*);
92 extern int TSXInstallColormap(Display*, Colormap);
93 extern KeyCode TSXKeysymToKeycode(Display*, KeySym);
94 extern int TSXMapWindow(Display*, Window);
95 extern int TSXNextEvent(Display*, XEvent*);
96 extern int TSXParseGeometry(const char*, int*, int*, unsigned int*, unsigned int*);
97 extern int TSXPending(Display*);
98 extern int TSXPutBackEvent(Display*, XEvent*);
99 extern int TSXPutImage(Display*, Drawable, GC, XImage*, int, int, int, int, unsigned int, unsigned int);
100 extern int TSXQueryColor(Display*, Colormap, XColor*);
101 extern int TSXQueryKeymap(Display*, char*);
102 extern int TSXQueryPointer(Display*, Window, Window*, Window*, int*, int*, int*, int*, unsigned int*);
103 extern int TSXQueryTree(Display*, Window, Window*, Window*, Window**, unsigned int*);
104 extern int TSXResetScreenSaver(Display*);
105 extern int TSXRestackWindows(Display*, Window*, int);
106 extern int TSXSendEvent(Display*, Window, int, long, XEvent*);
107 extern int TSXSetArcMode(Display*, GC, int);
108 extern int TSXSetBackground(Display*, GC, unsigned long);
109 extern int TSXSetClipMask(Display*, GC, Pixmap);
110 extern int TSXSetClipOrigin(Display*, GC, int, int);
111 extern int TSXSetClipRectangles(Display*, GC, int, int, XRectangle*, int, int);
112 extern int TSXSetDashes(Display*, GC, int, const char*, int);
113 extern int TSXSetFillStyle(Display*, GC, int);
114 extern int TSXSetForeground(Display*, GC, unsigned long);
115 extern int TSXSetFunction(Display*, GC, int);
116 extern int TSXSetGraphicsExposures(Display*, GC, int);
117 extern int TSXSetIconName(Display*, Window, const char*);
118 extern int TSXSetInputFocus(Display*, Window, int, Time);
119 extern int TSXSetLineAttributes(Display*, GC, unsigned int, int, int, int);
120 extern int TSXSetScreenSaver(Display*, int, int, int, int);
121 extern int TSXSetSelectionOwner(Display*, Atom, Window, Time);
122 extern int TSXSetSubwindowMode(Display*, GC, int);
123 extern int TSXSetWindowColormap(Display*, Window, Colormap);
124 extern int TSXStoreColor(Display*, Colormap, XColor*);
125 extern int TSXStoreName(Display*, Window, const char*);
126 extern int TSXSync(Display*, int);
127 extern int TSXTextExtents(XFontStruct*, const char*, int, int*, int*, int*, XCharStruct*);
128 extern int TSXTextWidth(XFontStruct*, const char*, int);
129 extern int TSXUngrabServer(Display*);
130 extern int TSXUninstallColormap(Display*, Colormap);
131 extern int TSXUnmapWindow(Display*, Window);
132 extern int TSXWarpPointer(Display*, Window, Window, int, int, unsigned int, unsigned int, int, int);
133 extern XIM TSXOpenIM(Display*, struct _XrmHashBucketRec*, char*, char*);
134 extern int (*TSXSynchronize(Display *, Bool))(Display *);
135 extern void TS_XInitImageFuncPtrs(XImage *);
138 #endif /* !defined(X_DISPLAY_MISSING) */
140 #endif /* __WINE_TSXLIB_H */