1 | /* |
2 | * xtestext1.h |
3 | * |
4 | * X11 Input Synthesis Extension include file |
5 | */ |
6 | |
7 | /* |
8 | |
9 | |
10 | Copyright 1986, 1987, 1988, 1998 The Open Group |
11 | |
12 | Permission to use, copy, modify, distribute, and sell this software and its |
13 | documentation for any purpose is hereby granted without fee, provided that |
14 | the above copyright notice appear in all copies and that both that |
15 | copyright notice and this permission notice appear in supporting |
16 | documentation. |
17 | |
18 | The above copyright notice and this permission notice shall be included in |
19 | all copies or substantial portions of the Software. |
20 | |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
22 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
23 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
24 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN |
25 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
26 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
27 | |
28 | Except as contained in this notice, the name of The Open Group shall not be |
29 | used in advertising or otherwise to promote the sale, use or other dealings |
30 | in this Software without prior written authorization from The Open Group. |
31 | |
32 | |
33 | Copyright 1986, 1987, 1988 by Hewlett-Packard Corporation |
34 | |
35 | Permission to use, copy, modify, and distribute this |
36 | software and its documentation for any purpose and without |
37 | fee is hereby granted, provided that the above copyright |
38 | notice appear in all copies and that both that copyright |
39 | notice and this permission notice appear in supporting |
40 | documentation, and that the name of Hewlett-Packard not be used in |
41 | advertising or publicity pertaining to distribution of the |
42 | software without specific, written prior permission. |
43 | |
44 | Hewlett-Packard makes no representations about the |
45 | suitability of this software for any purpose. It is provided |
46 | "as is" without express or implied warranty. |
47 | |
48 | This software is not subject to any license of the American |
49 | Telephone and Telegraph Company or of the Regents of the |
50 | University of California. |
51 | |
52 | */ |
53 | |
54 | #ifndef _XTESTEXT1_H |
55 | #define _XTESTEXT1_H |
56 | /* |
57 | * the typedefs for CARD8, CARD16, and CARD32 are defined in Xmd.h |
58 | */ |
59 | |
60 | #include <X11/extensions/xtestext1const.h> |
61 | /* |
62 | * This is the definition for the input action host format event structure. |
63 | * This is the form that a client using this extension will see when |
64 | * it receives an input action event. |
65 | */ |
66 | typedef struct { |
67 | int type; /* always XTestInputActionType */ |
68 | Display *display; |
69 | Window window; |
70 | CARD8 actions[XTestACTIONS_SIZE]; |
71 | } XTestInputActionEvent; |
72 | |
73 | /* |
74 | * This is the definition for the xTestFakeAck host format event structure. |
75 | * This is the form that a client using this extension will see when |
76 | * it receives an XTestFakeAck event. |
77 | */ |
78 | typedef struct { |
79 | int type; /* always XTestFakeAckType */ |
80 | Display *display; |
81 | Window window; |
82 | } XTestFakeAckEvent; |
83 | |
84 | _XFUNCPROTOBEGIN |
85 | |
86 | int XTestFakeInput(register Display *dpy, char *action_list_addr, int action_list_size, int ack_flag); |
87 | int XTestGetInput(register Display *dpy, int action_handling); |
88 | int XTestQueryInputSize(register Display *dpy, unsigned long *size_return); |
89 | int XTestPressKey(Display *display, int device_id, unsigned long delay, unsigned int keycode, unsigned int key_action); |
90 | int XTestPressButton(Display * display, int device_id, unsigned long delay, unsigned int button_number, unsigned int button_action); |
91 | int XTestMovePointer(Display *display, int device_id, unsigned long delay[], int x[], int y[], unsigned int count); |
92 | int XTestFlush(Display *display); |
93 | int XTestStopInput(register Display *dpy); |
94 | int XTestReset(register Display *dpy); |
95 | |
96 | _XFUNCPROTOEND |
97 | |
98 | #endif /* _XTESTEXT1_H */ |
99 | |