/* * ***************************************************************** * * * * * Copyright (c) Digital Equipment Corporation, 1991, 1994 * * * * * * All Rights Reserved. Unpublished rights reserved under * * * the copyright laws of the United States. * * * * * * The software contained on this media is proprietary to * * * and embodies the confidential technology of Digital * * * Equipment Corporation. Possession, use, duplication or * * * dissemination of the software and media is authorized only * * * pursuant to a valid written license from Digital Equipment * * * Corporation. * * * * * * RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure * * * by the U.S. Government is subject to restrictions as set * * * forth in Subparagraph (c)(1)(ii) of DFARS 252.227-7013, * * * or in FAR 52.227-19, as applicable. * * * * * ***************************************************************** */ /* * HISTORY */ /* $XConsortium: XTest.h,v 1.4 92/04/20 13:13:54 rws Exp $ */ /* Copyright 1992 by the Massachusetts Institute of Technology Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of M.I.T. not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. M.I.T. makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. */ #ifndef _XTEST_H_ #define _XTEST_H_ #include #define X_XTestGetVersion 0 #define X_XTestCompareCursor 1 #define X_XTestFakeInput 2 #define XTestNumberEvents 0 #define XTestNumberErrors 0 #define XTestMajorVersion 2 #define XTestMinorVersion 1 #define XTestExtensionName "XTEST" #ifndef _XTEST_SERVER_ _XFUNCPROTOBEGIN Bool XTestQueryExtension( #if NeedFunctionPrototypes Display* /* dpy */, int* /* event_basep */, int* /* error_basep */, int* /* majorp */, int* /* minorp */ #endif ); Bool XTestCompareCursorWithWindow( #if NeedFunctionPrototypes Display* /* dpy */, Window /* window */, Cursor /* cursor */ #endif ); Bool XTestCompareCurrentCursorWithWindow( #if NeedFunctionPrototypes Display* /* dpy */, Window /* window */ #endif ); extern XTestFakeKeyEvent( #if NeedFunctionPrototypes Display* /* dpy */, unsigned int /* keycode */, Bool /* is_press */, unsigned long /* delay */ #endif ); extern XTestFakeButtonEvent( #if NeedFunctionPrototypes Display* /* dpy */, unsigned int /* button */, Bool /* is_press */, unsigned long /* delay */ #endif ); extern XTestFakeMotionEvent( #if NeedFunctionPrototypes Display* /* dpy */, int /* screen */, int /* x */, int /* y */, unsigned long /* delay */ #endif ); extern XTestFakeRelativeMotionEvent( #if NeedFunctionPrototypes Display* /* dpy */, int /* x */, int /* y */, unsigned long /* delay */ #endif ); void XTestSetGContextOfGC( #if NeedFunctionPrototypes GC /* gc */, GContext /* gid */ #endif ); void XTestSetVisualIDOfVisual( #if NeedFunctionPrototypes Visual* /* visual */, VisualID /* visualid */ #endif ); Status XTestDiscard( #if NeedFunctionPrototypes Display* /* dpy */ #endif ); _XFUNCPROTOEND #endif /* _XTEST_SERVER_ */ #endif