VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/4.3/include/extensions/XTest.h@ 49762

Last change on this file since 49762 was 25452, checked in by vboxsync, 15 years ago

Additions/x11: added include files needed for building vboxmouse with XFree86 4.3 and equivalent X.Org versions

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

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette