xtestext1.h revision a5602400
1485f0483Smrg/*
2485f0483Smrg * xtestext1.h
3485f0483Smrg *
4485f0483Smrg * X11 Input Synthesis Extension include file
5485f0483Smrg */
6485f0483Smrg
7485f0483Smrg/*
8485f0483Smrg
9485f0483Smrg
10485f0483SmrgCopyright 1986, 1987, 1988, 1998  The Open Group
11485f0483Smrg
12485f0483SmrgPermission to use, copy, modify, distribute, and sell this software and its
13485f0483Smrgdocumentation for any purpose is hereby granted without fee, provided that
14485f0483Smrgthe above copyright notice appear in all copies and that both that
15485f0483Smrgcopyright notice and this permission notice appear in supporting
16485f0483Smrgdocumentation.
17485f0483Smrg
18485f0483SmrgThe above copyright notice and this permission notice shall be included in
19485f0483Smrgall copies or substantial portions of the Software.
20485f0483Smrg
21485f0483SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22485f0483SmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23485f0483SmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
24485f0483SmrgOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
25485f0483SmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
26485f0483SmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27485f0483Smrg
28485f0483SmrgExcept as contained in this notice, the name of The Open Group shall not be
29485f0483Smrgused in advertising or otherwise to promote the sale, use or other dealings
30485f0483Smrgin this Software without prior written authorization from The Open Group.
31485f0483Smrg
32485f0483Smrg
33485f0483SmrgCopyright 1986, 1987, 1988 by Hewlett-Packard Corporation
34485f0483Smrg
35485f0483SmrgPermission to use, copy, modify, and distribute this
36485f0483Smrgsoftware and its documentation for any purpose and without
37485f0483Smrgfee is hereby granted, provided that the above copyright
38485f0483Smrgnotice appear in all copies and that both that copyright
39485f0483Smrgnotice and this permission notice appear in supporting
40485f0483Smrgdocumentation, and that the name of Hewlett-Packard not be used in
41485f0483Smrgadvertising or publicity pertaining to distribution of the
42485f0483Smrgsoftware without specific, written prior permission.
43485f0483Smrg
44485f0483SmrgHewlett-Packard makes no representations about the
45485f0483Smrgsuitability of this software for any purpose.  It is provided
46485f0483Smrg"as is" without express or implied warranty.
47485f0483Smrg
48485f0483SmrgThis software is not subject to any license of the American
49485f0483SmrgTelephone and Telegraph Company or of the Regents of the
50485f0483SmrgUniversity of California.
51485f0483Smrg
52485f0483Smrg*/
53485f0483Smrg
54485f0483Smrg#ifndef _XTESTEXT1_H
55485f0483Smrg#define _XTESTEXT1_H
56485f0483Smrg/*
57485f0483Smrg * the typedefs for CARD8, CARD16, and CARD32 are defined in Xmd.h
58485f0483Smrg */
59485f0483Smrg
60485f0483Smrg#include <X11/extensions/xtestext1const.h>
61485f0483Smrg/*
62485f0483Smrg * This is the definition for the input action host format event structure.
63485f0483Smrg * This is the form that a client using this extension will see when
64485f0483Smrg * it receives an input action event.
65485f0483Smrg */
66485f0483Smrgtypedef struct {
67485f0483Smrg        int     type;           /* always XTestInputActionType */
68485f0483Smrg	Display *display;
69485f0483Smrg	Window  window;
70485f0483Smrg        CARD8   actions[XTestACTIONS_SIZE];
71485f0483Smrg} XTestInputActionEvent;
72485f0483Smrg
73485f0483Smrg/*
74485f0483Smrg * This is the definition for the xTestFakeAck host format event structure.
75485f0483Smrg * This is the form that a client using this extension will see when
76485f0483Smrg * it receives an XTestFakeAck event.
77485f0483Smrg */
78485f0483Smrgtypedef struct {
79485f0483Smrg        int     type;           /* always XTestFakeAckType */
80485f0483Smrg	Display *display;
81485f0483Smrg	Window  window;
82485f0483Smrg} XTestFakeAckEvent;
83485f0483Smrg
84a5602400Smrg_XFUNCPROTOBEGIN
85a5602400Smrg
86a5602400Smrgint XTestFakeInput(register Display *dpy, char *action_list_addr, int action_list_size, int ack_flag);
87a5602400Smrgint XTestGetInput(register Display *dpy, int action_handling);
88a5602400Smrgint XTestQueryInputSize(register Display *dpy, unsigned long *size_return);
89a5602400Smrgint XTestPressKey(Display *display, int device_id, unsigned long delay, unsigned int keycode, unsigned int key_action);
90a5602400Smrgint XTestPressButton(Display * display, int device_id, unsigned long delay, unsigned int button_number, unsigned int button_action);
91a5602400Smrgint XTestMovePointer(Display *display, int device_id, unsigned long delay[], int x[], int y[], unsigned int count);
92a5602400Smrgint XTestFlush(Display *display);
93a5602400Smrgint XTestStopInput(register Display *dpy);
94a5602400Smrgint XTestReset(register Display *dpy);
95a5602400Smrg
96a5602400Smrg_XFUNCPROTOEND
97a5602400Smrg
98485f0483Smrg#endif /* _XTESTEXT1_H */
99