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