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 $ */
5 Copyright (c) 1992 X Consortium
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:
14 The above copyright notice and this permission notice shall be included in
15 all copies or substantial portions of the Software.
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.
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.
33 #include <X11/Xfuncproto.h>
35 #define X_XTestGetVersion 0
36 #define X_XTestCompareCursor 1
37 #define X_XTestFakeInput 2
38 #define X_XTestGrabControl 3
40 #define XTestNumberEvents 0
42 #define XTestNumberErrors 0
44 #define XTestMajorVersion 2
45 #define XTestMinorVersion 2
47 #define XTestExtensionName "XTEST"
49 #ifndef _XTEST_SERVER_
51 #include <X11/extensions/XInput.h>
55 Bool XTestQueryExtension(
56 #if NeedFunctionPrototypes
58 int* /* event_basep */,
59 int* /* error_basep */,
65 Bool XTestCompareCursorWithWindow(
66 #if NeedFunctionPrototypes
73 Bool XTestCompareCurrentCursorWithWindow(
74 #if NeedFunctionPrototypes
80 extern int XTestFakeKeyEvent(
81 #if NeedFunctionPrototypes
83 unsigned int /* keycode */,
85 unsigned long /* delay */
89 extern int XTestFakeButtonEvent(
90 #if NeedFunctionPrototypes
92 unsigned int /* button */,
94 unsigned long /* delay */
98 extern int XTestFakeMotionEvent(
99 #if NeedFunctionPrototypes
104 unsigned long /* delay */
108 extern int XTestFakeRelativeMotionEvent(
109 #if NeedFunctionPrototypes
113 unsigned long /* delay */
117 extern int XTestFakeDeviceKeyEvent(
118 #if NeedFunctionPrototypes
121 unsigned int /* keycode */,
125 unsigned long /* delay */
129 extern int XTestFakeDeviceButtonEvent(
130 #if NeedFunctionPrototypes
133 unsigned int /* button */,
137 unsigned long /* delay */
141 extern int XTestFakeProximityEvent(
142 #if NeedFunctionPrototypes
148 unsigned long /* delay */
152 extern int XTestFakeDeviceMotionEvent(
153 #if NeedFunctionPrototypes
156 Bool /* is_relative */,
157 int /* first_axis */,
160 unsigned long /* delay */
164 extern int XTestGrabControl(
165 #if NeedFunctionPrototypes
167 Bool /* impervious */
171 void XTestSetGContextOfGC(
172 #if NeedFunctionPrototypes
178 void XTestSetVisualIDOfVisual(
179 #if NeedFunctionPrototypes
180 Visual* /* visual */,
181 VisualID /* visualid */
186 #if NeedFunctionPrototypes
193 #endif /* _XTEST_SERVER_ */