]> git.sesse.net Git - rdpsrv/blob - Xserver/include/extensions/XTest.h
Import X server from vnc-3.3.7.
[rdpsrv] / Xserver / include / extensions / XTest.h
1 /* $XConsortium: XTest.h,v 1.9 94/04/17 20:11:18 rws Exp $ */
2 /* $XFree86: xc/include/extensions/XTest.h,v 3.0 1996/12/12 09:12:53 dawes Exp $ */
3 /*
4
5 Copyright (c) 1992  X Consortium
6
7 Permission is hereby granted, free of charge, to any person obtaining a copy
8 of this software and associated documentation files (the "Software"), to deal
9 in the Software without restriction, including without limitation the rights
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 copies of the Software, and to permit persons to whom the Software is
12 furnished to do so, subject to the following conditions:
13
14 The above copyright notice and this permission notice shall be included in
15 all copies or substantial portions of the Software.
16
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
20 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
21 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
24 Except as contained in this notice, the name of the X Consortium shall not be
25 used in advertising or otherwise to promote the sale, use or other dealings
26 in this Software without prior written authorization from the X Consortium.
27
28 */
29
30 #ifndef _XTEST_H_
31 #define _XTEST_H_
32
33 #include <X11/Xfuncproto.h>
34
35 #define X_XTestGetVersion       0
36 #define X_XTestCompareCursor    1
37 #define X_XTestFakeInput        2
38 #define X_XTestGrabControl      3
39
40 #define XTestNumberEvents       0
41
42 #define XTestNumberErrors       0
43
44 #define XTestMajorVersion       2
45 #define XTestMinorVersion       2
46
47 #define XTestExtensionName      "XTEST"
48
49 #ifndef _XTEST_SERVER_
50
51 #include <X11/extensions/XInput.h>
52
53 _XFUNCPROTOBEGIN
54
55 Bool XTestQueryExtension(
56 #if NeedFunctionPrototypes
57     Display*            /* dpy */,
58     int*                /* event_basep */,
59     int*                /* error_basep */,
60     int*                /* majorp */,
61     int*                /* minorp */
62 #endif
63 );
64
65 Bool XTestCompareCursorWithWindow(
66 #if NeedFunctionPrototypes
67     Display*            /* dpy */,
68     Window              /* window */,
69     Cursor              /* cursor */
70 #endif
71 );
72
73 Bool XTestCompareCurrentCursorWithWindow(
74 #if NeedFunctionPrototypes
75     Display*            /* dpy */,
76     Window              /* window */
77 #endif
78 );
79
80 extern int XTestFakeKeyEvent(
81 #if NeedFunctionPrototypes
82     Display*            /* dpy */,
83     unsigned int        /* keycode */,
84     Bool                /* is_press */,
85     unsigned long       /* delay */
86 #endif
87 );
88
89 extern int XTestFakeButtonEvent(
90 #if NeedFunctionPrototypes
91     Display*            /* dpy */,
92     unsigned int        /* button */,
93     Bool                /* is_press */,
94     unsigned long       /* delay */
95 #endif
96 );
97
98 extern int XTestFakeMotionEvent(
99 #if NeedFunctionPrototypes
100     Display*            /* dpy */,
101     int                 /* screen */,
102     int                 /* x */,
103     int                 /* y */,
104     unsigned long       /* delay */
105 #endif
106 );
107
108 extern int XTestFakeRelativeMotionEvent(
109 #if NeedFunctionPrototypes
110     Display*            /* dpy */,
111     int                 /* x */,
112     int                 /* y */,
113     unsigned long       /* delay */
114 #endif
115 );
116
117 extern int XTestFakeDeviceKeyEvent(
118 #if NeedFunctionPrototypes
119     Display*            /* dpy */,
120     XDevice*            /* dev */,
121     unsigned int        /* keycode */,
122     Bool                /* is_press */,
123     int*                /* axes */,
124     int                 /* n_axes */,
125     unsigned long       /* delay */
126 #endif
127 );
128
129 extern int XTestFakeDeviceButtonEvent(
130 #if NeedFunctionPrototypes
131     Display*            /* dpy */,
132     XDevice*            /* dev */,
133     unsigned int        /* button */,
134     Bool                /* is_press */,
135     int*                /* axes */,
136     int                 /* n_axes */,
137     unsigned long       /* delay */
138 #endif
139 );
140
141 extern int XTestFakeProximityEvent(
142 #if NeedFunctionPrototypes
143     Display*            /* dpy */,
144     XDevice*            /* dev */,
145     Bool                /* in_prox */,
146     int*                /* axes */,
147     int                 /* n_axes */,
148     unsigned long       /* delay */
149 #endif
150 );
151
152 extern int XTestFakeDeviceMotionEvent(
153 #if NeedFunctionPrototypes
154     Display*            /* dpy */,
155     XDevice*            /* dev */,
156     Bool                /* is_relative */,
157     int                 /* first_axis */,
158     int*                /* axes */,
159     int                 /* n_axes */,
160     unsigned long       /* delay */
161 #endif
162 );
163
164 extern int XTestGrabControl(
165 #if NeedFunctionPrototypes
166     Display*            /* dpy */,
167     Bool                /* impervious */
168 #endif
169 );
170
171 void XTestSetGContextOfGC(
172 #if NeedFunctionPrototypes
173     GC                  /* gc */,
174     GContext            /* gid */
175 #endif
176 );
177
178 void XTestSetVisualIDOfVisual(
179 #if NeedFunctionPrototypes
180     Visual*             /* visual */,
181     VisualID            /* visualid */
182 #endif
183 );
184
185 Status XTestDiscard(
186 #if NeedFunctionPrototypes
187     Display*            /* dpy */
188 #endif
189 );
190
191 _XFUNCPROTOEND
192
193 #endif /* _XTEST_SERVER_ */
194
195 #endif