1/*
2
3Copyright 1992, 1998 The Open Group
4
5Permission to use, copy, modify, distribute, and sell this software and its
6documentation for any purpose is hereby granted without fee, provided that
7the above copyright notice appear in all copies and that both that
8copyright notice and this permission notice appear in supporting
9documentation.
10
11The above copyright notice and this permission notice shall be included in
12all copies or substantial portions of the Software.
13
14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
21Except as contained in this notice, the name of The Open Group shall not be
22used in advertising or otherwise to promote the sale, use or other dealings
23in this Software without prior written authorization from The Open Group.
24
25*/
26
27#ifndef _XTEST_H_
28#define _XTEST_H_
29
30#include <X11/Xfuncproto.h>
31#include <X11/extensions/xtestconst.h>
32#include <X11/extensions/XInput.h>
33
34_XFUNCPROTOBEGIN
35
36Bool XTestQueryExtension(
37 Display* /* dpy */,
38 int* /* event_basep */,
39 int* /* error_basep */,
40 int* /* majorp */,
41 int* /* minorp */
42);
43
44Bool XTestCompareCursorWithWindow(
45 Display* /* dpy */,
46 Window /* window */,
47 Cursor /* cursor */
48);
49
50Bool XTestCompareCurrentCursorWithWindow(
51 Display* /* dpy */,
52 Window /* window */
53);
54
55extern int XTestFakeKeyEvent(
56 Display* /* dpy */,
57 unsigned int /* keycode */,
58 Bool /* is_press */,
59 unsigned long /* delay */
60);
61
62extern int XTestFakeButtonEvent(
63 Display* /* dpy */,
64 unsigned int /* button */,
65 Bool /* is_press */,
66 unsigned long /* delay */
67);
68
69extern int XTestFakeMotionEvent(
70 Display* /* dpy */,
71 int /* screen */,
72 int /* x */,
73 int /* y */,
74 unsigned long /* delay */
75);
76
77extern int XTestFakeRelativeMotionEvent(
78 Display* /* dpy */,
79 int /* x */,
80 int /* y */,
81 unsigned long /* delay */
82);
83
84extern int XTestFakeDeviceKeyEvent(
85 Display* /* dpy */,
86 XDevice* /* dev */,
87 unsigned int /* keycode */,
88 Bool /* is_press */,
89 int* /* axes */,
90 int /* n_axes */,
91 unsigned long /* delay */
92);
93
94extern int XTestFakeDeviceButtonEvent(
95 Display* /* dpy */,
96 XDevice* /* dev */,
97 unsigned int /* button */,
98 Bool /* is_press */,
99 int* /* axes */,
100 int /* n_axes */,
101 unsigned long /* delay */
102);
103
104extern int XTestFakeProximityEvent(
105 Display* /* dpy */,
106 XDevice* /* dev */,
107 Bool /* in_prox */,
108 int* /* axes */,
109 int /* n_axes */,
110 unsigned long /* delay */
111);
112
113extern int XTestFakeDeviceMotionEvent(
114 Display* /* dpy */,
115 XDevice* /* dev */,
116 Bool /* is_relative */,
117 int /* first_axis */,
118 int* /* axes */,
119 int /* n_axes */,
120 unsigned long /* delay */
121);
122
123extern int XTestGrabControl(
124 Display* /* dpy */,
125 Bool /* impervious */
126);
127
128void XTestSetGContextOfGC(
129 GC /* gc */,
130 GContext /* gid */
131);
132
133void XTestSetVisualIDOfVisual(
134 Visual* /* visual */,
135 VisualID /* visualid */
136);
137
138Status XTestDiscard(
139 Display* /* dpy */
140);
141
142_XFUNCPROTOEND
143
144#endif
145