Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-03-13 09:29:42

0001 /*
0002 
0003 Copyright 1992, 1998  The Open Group
0004 
0005 Permission to use, copy, modify, distribute, and sell this software and its
0006 documentation for any purpose is hereby granted without fee, provided that
0007 the above copyright notice appear in all copies and that both that
0008 copyright notice and this permission notice appear in supporting
0009 documentation.
0010 
0011 The above copyright notice and this permission notice shall be included in
0012 all copies or substantial portions of the Software.
0013 
0014 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
0017 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
0018 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0019 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0020 
0021 Except as contained in this notice, the name of The Open Group shall not be
0022 used in advertising or otherwise to promote the sale, use or other dealings
0023 in this Software without prior written authorization from The Open Group.
0024 
0025 */
0026 
0027 #ifndef _XTEST_H_
0028 #define _XTEST_H_
0029 
0030 #include <X11/Xfuncproto.h>
0031 #include <X11/extensions/xtestconst.h>
0032 #include <X11/extensions/XInput.h>
0033 
0034 _XFUNCPROTOBEGIN
0035 
0036 Bool XTestQueryExtension(
0037     Display*        /* dpy */,
0038     int*        /* event_basep */,
0039     int*        /* error_basep */,
0040     int*        /* majorp */,
0041     int*        /* minorp */
0042 );
0043 
0044 Bool XTestCompareCursorWithWindow(
0045     Display*        /* dpy */,
0046     Window      /* window */,
0047     Cursor      /* cursor */
0048 );
0049 
0050 Bool XTestCompareCurrentCursorWithWindow(
0051     Display*        /* dpy */,
0052     Window      /* window */
0053 );
0054 
0055 extern int XTestFakeKeyEvent(
0056     Display*        /* dpy */,
0057     unsigned int    /* keycode */,
0058     Bool        /* is_press */,
0059     unsigned long   /* delay */
0060 );
0061 
0062 extern int XTestFakeButtonEvent(
0063     Display*        /* dpy */,
0064     unsigned int    /* button */,
0065     Bool        /* is_press */,
0066     unsigned long   /* delay */
0067 );
0068 
0069 extern int XTestFakeMotionEvent(
0070     Display*        /* dpy */,
0071     int         /* screen */,
0072     int         /* x */,
0073     int         /* y */,
0074     unsigned long   /* delay */
0075 );
0076 
0077 extern int XTestFakeRelativeMotionEvent(
0078     Display*        /* dpy */,
0079     int         /* x */,
0080     int         /* y */,
0081     unsigned long   /* delay */
0082 );
0083 
0084 extern int XTestFakeDeviceKeyEvent(
0085     Display*        /* dpy */,
0086     XDevice*        /* dev */,
0087     unsigned int    /* keycode */,
0088     Bool        /* is_press */,
0089     int*        /* axes */,
0090     int         /* n_axes */,
0091     unsigned long   /* delay */
0092 );
0093 
0094 extern int XTestFakeDeviceButtonEvent(
0095     Display*        /* dpy */,
0096     XDevice*        /* dev */,
0097     unsigned int    /* button */,
0098     Bool        /* is_press */,
0099     int*        /* axes */,
0100     int         /* n_axes */,
0101     unsigned long   /* delay */
0102 );
0103 
0104 extern int XTestFakeProximityEvent(
0105     Display*        /* dpy */,
0106     XDevice*        /* dev */,
0107     Bool        /* in_prox */,
0108     int*        /* axes */,
0109     int         /* n_axes */,
0110     unsigned long   /* delay */
0111 );
0112 
0113 extern int XTestFakeDeviceMotionEvent(
0114     Display*        /* dpy */,
0115     XDevice*        /* dev */,
0116     Bool        /* is_relative */,
0117     int         /* first_axis */,
0118     int*        /* axes */,
0119     int         /* n_axes */,
0120     unsigned long   /* delay */
0121 );
0122 
0123 extern int XTestGrabControl(
0124     Display*        /* dpy */,
0125     Bool        /* impervious */
0126 );
0127 
0128 void XTestSetGContextOfGC(
0129     GC          /* gc */,
0130     GContext        /* gid */
0131 );
0132 
0133 void XTestSetVisualIDOfVisual(
0134     Visual*     /* visual */,
0135     VisualID        /* visualid */
0136 );
0137 
0138 Status XTestDiscard(
0139     Display*        /* dpy */
0140 );
0141 
0142 _XFUNCPROTOEND
0143 
0144 #endif