1 | /* |
2 | |
3 | Copyright 1992, 1998 The Open Group |
4 | |
5 | Permission to use, copy, modify, distribute, and sell this software and its |
6 | documentation for any purpose is hereby granted without fee, provided that |
7 | the above copyright notice appear in all copies and that both that |
8 | copyright notice and this permission notice appear in supporting |
9 | documentation. |
10 | |
11 | The above copyright notice and this permission notice shall be included in |
12 | all copies or substantial portions of the Software. |
13 | |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
17 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN |
18 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
19 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
20 | |
21 | Except as contained in this notice, the name of The Open Group shall not be |
22 | used in advertising or otherwise to promote the sale, use or other dealings |
23 | in 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 | |
36 | Bool XTestQueryExtension( |
37 | Display* /* dpy */, |
38 | int* /* event_basep */, |
39 | int* /* error_basep */, |
40 | int* /* majorp */, |
41 | int* /* minorp */ |
42 | ); |
43 | |
44 | Bool XTestCompareCursorWithWindow( |
45 | Display* /* dpy */, |
46 | Window /* window */, |
47 | Cursor /* cursor */ |
48 | ); |
49 | |
50 | Bool XTestCompareCurrentCursorWithWindow( |
51 | Display* /* dpy */, |
52 | Window /* window */ |
53 | ); |
54 | |
55 | extern int XTestFakeKeyEvent( |
56 | Display* /* dpy */, |
57 | unsigned int /* keycode */, |
58 | Bool /* is_press */, |
59 | unsigned long /* delay */ |
60 | ); |
61 | |
62 | extern int XTestFakeButtonEvent( |
63 | Display* /* dpy */, |
64 | unsigned int /* button */, |
65 | Bool /* is_press */, |
66 | unsigned long /* delay */ |
67 | ); |
68 | |
69 | extern int XTestFakeMotionEvent( |
70 | Display* /* dpy */, |
71 | int /* screen */, |
72 | int /* x */, |
73 | int /* y */, |
74 | unsigned long /* delay */ |
75 | ); |
76 | |
77 | extern int XTestFakeRelativeMotionEvent( |
78 | Display* /* dpy */, |
79 | int /* x */, |
80 | int /* y */, |
81 | unsigned long /* delay */ |
82 | ); |
83 | |
84 | extern 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 | |
94 | extern 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 | |
104 | extern 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 | |
113 | extern 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 | |
123 | extern int XTestGrabControl( |
124 | Display* /* dpy */, |
125 | Bool /* impervious */ |
126 | ); |
127 | |
128 | void XTestSetGContextOfGC( |
129 | GC /* gc */, |
130 | GContext /* gid */ |
131 | ); |
132 | |
133 | void XTestSetVisualIDOfVisual( |
134 | Visual* /* visual */, |
135 | VisualID /* visualid */ |
136 | ); |
137 | |
138 | Status XTestDiscard( |
139 | Display* /* dpy */ |
140 | ); |
141 | |
142 | _XFUNCPROTOEND |
143 | |
144 | #endif |
145 | |