jpayne@69: /* jpayne@69: jpayne@69: Copyright 1992, 1998 The Open Group jpayne@69: jpayne@69: Permission to use, copy, modify, distribute, and sell this software and its jpayne@69: documentation for any purpose is hereby granted without fee, provided that jpayne@69: the above copyright notice appear in all copies and that both that jpayne@69: copyright notice and this permission notice appear in supporting jpayne@69: documentation. jpayne@69: jpayne@69: The above copyright notice and this permission notice shall be included in jpayne@69: all copies or substantial portions of the Software. jpayne@69: jpayne@69: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR jpayne@69: IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, jpayne@69: FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE jpayne@69: OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN jpayne@69: AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN jpayne@69: CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. jpayne@69: jpayne@69: Except as contained in this notice, the name of The Open Group shall not be jpayne@69: used in advertising or otherwise to promote the sale, use or other dealings jpayne@69: in this Software without prior written authorization from The Open Group. jpayne@69: jpayne@69: */ jpayne@69: jpayne@69: #ifndef _XTEST_H_ jpayne@69: #define _XTEST_H_ jpayne@69: jpayne@69: #include jpayne@69: #include jpayne@69: #include jpayne@69: jpayne@69: _XFUNCPROTOBEGIN jpayne@69: jpayne@69: Bool XTestQueryExtension( jpayne@69: Display* /* dpy */, jpayne@69: int* /* event_basep */, jpayne@69: int* /* error_basep */, jpayne@69: int* /* majorp */, jpayne@69: int* /* minorp */ jpayne@69: ); jpayne@69: jpayne@69: Bool XTestCompareCursorWithWindow( jpayne@69: Display* /* dpy */, jpayne@69: Window /* window */, jpayne@69: Cursor /* cursor */ jpayne@69: ); jpayne@69: jpayne@69: Bool XTestCompareCurrentCursorWithWindow( jpayne@69: Display* /* dpy */, jpayne@69: Window /* window */ jpayne@69: ); jpayne@69: jpayne@69: extern int XTestFakeKeyEvent( jpayne@69: Display* /* dpy */, jpayne@69: unsigned int /* keycode */, jpayne@69: Bool /* is_press */, jpayne@69: unsigned long /* delay */ jpayne@69: ); jpayne@69: jpayne@69: extern int XTestFakeButtonEvent( jpayne@69: Display* /* dpy */, jpayne@69: unsigned int /* button */, jpayne@69: Bool /* is_press */, jpayne@69: unsigned long /* delay */ jpayne@69: ); jpayne@69: jpayne@69: extern int XTestFakeMotionEvent( jpayne@69: Display* /* dpy */, jpayne@69: int /* screen */, jpayne@69: int /* x */, jpayne@69: int /* y */, jpayne@69: unsigned long /* delay */ jpayne@69: ); jpayne@69: jpayne@69: extern int XTestFakeRelativeMotionEvent( jpayne@69: Display* /* dpy */, jpayne@69: int /* x */, jpayne@69: int /* y */, jpayne@69: unsigned long /* delay */ jpayne@69: ); jpayne@69: jpayne@69: extern int XTestFakeDeviceKeyEvent( jpayne@69: Display* /* dpy */, jpayne@69: XDevice* /* dev */, jpayne@69: unsigned int /* keycode */, jpayne@69: Bool /* is_press */, jpayne@69: int* /* axes */, jpayne@69: int /* n_axes */, jpayne@69: unsigned long /* delay */ jpayne@69: ); jpayne@69: jpayne@69: extern int XTestFakeDeviceButtonEvent( jpayne@69: Display* /* dpy */, jpayne@69: XDevice* /* dev */, jpayne@69: unsigned int /* button */, jpayne@69: Bool /* is_press */, jpayne@69: int* /* axes */, jpayne@69: int /* n_axes */, jpayne@69: unsigned long /* delay */ jpayne@69: ); jpayne@69: jpayne@69: extern int XTestFakeProximityEvent( jpayne@69: Display* /* dpy */, jpayne@69: XDevice* /* dev */, jpayne@69: Bool /* in_prox */, jpayne@69: int* /* axes */, jpayne@69: int /* n_axes */, jpayne@69: unsigned long /* delay */ jpayne@69: ); jpayne@69: jpayne@69: extern int XTestFakeDeviceMotionEvent( jpayne@69: Display* /* dpy */, jpayne@69: XDevice* /* dev */, jpayne@69: Bool /* is_relative */, jpayne@69: int /* first_axis */, jpayne@69: int* /* axes */, jpayne@69: int /* n_axes */, jpayne@69: unsigned long /* delay */ jpayne@69: ); jpayne@69: jpayne@69: extern int XTestGrabControl( jpayne@69: Display* /* dpy */, jpayne@69: Bool /* impervious */ jpayne@69: ); jpayne@69: jpayne@69: void XTestSetGContextOfGC( jpayne@69: GC /* gc */, jpayne@69: GContext /* gid */ jpayne@69: ); jpayne@69: jpayne@69: void XTestSetVisualIDOfVisual( jpayne@69: Visual* /* visual */, jpayne@69: VisualID /* visualid */ jpayne@69: ); jpayne@69: jpayne@69: Status XTestDiscard( jpayne@69: Display* /* dpy */ jpayne@69: ); jpayne@69: jpayne@69: _XFUNCPROTOEND jpayne@69: jpayne@69: #endif