VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/7.0/X11/extensions/XTest.h@ 17234

最後變更 在這個檔案從17234是 17234,由 vboxsync 提交於 16 年 前

Additions/x11/x11include: blast! Corrected svn:keywords property on all files as per http://linserv.germany/vbox/wiki/SvnKeywords

  • 屬性 svn:eol-style 設為 native
檔案大小: 3.8 KB
 
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 Display* /* dpy */,
56 int* /* event_basep */,
57 int* /* error_basep */,
58 int* /* majorp */,
59 int* /* minorp */
60);
61
62Bool XTestCompareCursorWithWindow(
63 Display* /* dpy */,
64 Window /* window */,
65 Cursor /* cursor */
66);
67
68Bool XTestCompareCurrentCursorWithWindow(
69 Display* /* dpy */,
70 Window /* window */
71);
72
73extern int XTestFakeKeyEvent(
74 Display* /* dpy */,
75 unsigned int /* keycode */,
76 Bool /* is_press */,
77 unsigned long /* delay */
78);
79
80extern int XTestFakeButtonEvent(
81 Display* /* dpy */,
82 unsigned int /* button */,
83 Bool /* is_press */,
84 unsigned long /* delay */
85);
86
87extern int XTestFakeMotionEvent(
88 Display* /* dpy */,
89 int /* screen */,
90 int /* x */,
91 int /* y */,
92 unsigned long /* delay */
93);
94
95extern int XTestFakeRelativeMotionEvent(
96 Display* /* dpy */,
97 int /* x */,
98 int /* y */,
99 unsigned long /* delay */
100);
101
102extern int XTestFakeDeviceKeyEvent(
103 Display* /* dpy */,
104 XDevice* /* dev */,
105 unsigned int /* keycode */,
106 Bool /* is_press */,
107 int* /* axes */,
108 int /* n_axes */,
109 unsigned long /* delay */
110);
111
112extern int XTestFakeDeviceButtonEvent(
113 Display* /* dpy */,
114 XDevice* /* dev */,
115 unsigned int /* button */,
116 Bool /* is_press */,
117 int* /* axes */,
118 int /* n_axes */,
119 unsigned long /* delay */
120);
121
122extern int XTestFakeProximityEvent(
123 Display* /* dpy */,
124 XDevice* /* dev */,
125 Bool /* in_prox */,
126 int* /* axes */,
127 int /* n_axes */,
128 unsigned long /* delay */
129);
130
131extern int XTestFakeDeviceMotionEvent(
132 Display* /* dpy */,
133 XDevice* /* dev */,
134 Bool /* is_relative */,
135 int /* first_axis */,
136 int* /* axes */,
137 int /* n_axes */,
138 unsigned long /* delay */
139);
140
141extern int XTestGrabControl(
142 Display* /* dpy */,
143 Bool /* impervious */
144);
145
146void XTestSetGContextOfGC(
147 GC /* gc */,
148 GContext /* gid */
149);
150
151void XTestSetVisualIDOfVisual(
152 Visual* /* visual */,
153 VisualID /* visualid */
154);
155
156Status XTestDiscard(
157 Display* /* dpy */
158);
159
160_XFUNCPROTOEND
161
162#endif /* _XTEST_SERVER_ */
163
164#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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