annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/include/X11/extensions/XTest.h @ 69:33d812a61356

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 17:55:14 -0400
parents
children
rev   line source
jpayne@69 1 /*
jpayne@69 2
jpayne@69 3 Copyright 1992, 1998 The Open Group
jpayne@69 4
jpayne@69 5 Permission to use, copy, modify, distribute, and sell this software and its
jpayne@69 6 documentation for any purpose is hereby granted without fee, provided that
jpayne@69 7 the above copyright notice appear in all copies and that both that
jpayne@69 8 copyright notice and this permission notice appear in supporting
jpayne@69 9 documentation.
jpayne@69 10
jpayne@69 11 The above copyright notice and this permission notice shall be included in
jpayne@69 12 all copies or substantial portions of the Software.
jpayne@69 13
jpayne@69 14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
jpayne@69 15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
jpayne@69 16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
jpayne@69 17 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
jpayne@69 18 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
jpayne@69 19 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
jpayne@69 20
jpayne@69 21 Except as contained in this notice, the name of The Open Group shall not be
jpayne@69 22 used in advertising or otherwise to promote the sale, use or other dealings
jpayne@69 23 in this Software without prior written authorization from The Open Group.
jpayne@69 24
jpayne@69 25 */
jpayne@69 26
jpayne@69 27 #ifndef _XTEST_H_
jpayne@69 28 #define _XTEST_H_
jpayne@69 29
jpayne@69 30 #include <X11/Xfuncproto.h>
jpayne@69 31 #include <X11/extensions/xtestconst.h>
jpayne@69 32 #include <X11/extensions/XInput.h>
jpayne@69 33
jpayne@69 34 _XFUNCPROTOBEGIN
jpayne@69 35
jpayne@69 36 Bool XTestQueryExtension(
jpayne@69 37 Display* /* dpy */,
jpayne@69 38 int* /* event_basep */,
jpayne@69 39 int* /* error_basep */,
jpayne@69 40 int* /* majorp */,
jpayne@69 41 int* /* minorp */
jpayne@69 42 );
jpayne@69 43
jpayne@69 44 Bool XTestCompareCursorWithWindow(
jpayne@69 45 Display* /* dpy */,
jpayne@69 46 Window /* window */,
jpayne@69 47 Cursor /* cursor */
jpayne@69 48 );
jpayne@69 49
jpayne@69 50 Bool XTestCompareCurrentCursorWithWindow(
jpayne@69 51 Display* /* dpy */,
jpayne@69 52 Window /* window */
jpayne@69 53 );
jpayne@69 54
jpayne@69 55 extern int XTestFakeKeyEvent(
jpayne@69 56 Display* /* dpy */,
jpayne@69 57 unsigned int /* keycode */,
jpayne@69 58 Bool /* is_press */,
jpayne@69 59 unsigned long /* delay */
jpayne@69 60 );
jpayne@69 61
jpayne@69 62 extern int XTestFakeButtonEvent(
jpayne@69 63 Display* /* dpy */,
jpayne@69 64 unsigned int /* button */,
jpayne@69 65 Bool /* is_press */,
jpayne@69 66 unsigned long /* delay */
jpayne@69 67 );
jpayne@69 68
jpayne@69 69 extern int XTestFakeMotionEvent(
jpayne@69 70 Display* /* dpy */,
jpayne@69 71 int /* screen */,
jpayne@69 72 int /* x */,
jpayne@69 73 int /* y */,
jpayne@69 74 unsigned long /* delay */
jpayne@69 75 );
jpayne@69 76
jpayne@69 77 extern int XTestFakeRelativeMotionEvent(
jpayne@69 78 Display* /* dpy */,
jpayne@69 79 int /* x */,
jpayne@69 80 int /* y */,
jpayne@69 81 unsigned long /* delay */
jpayne@69 82 );
jpayne@69 83
jpayne@69 84 extern int XTestFakeDeviceKeyEvent(
jpayne@69 85 Display* /* dpy */,
jpayne@69 86 XDevice* /* dev */,
jpayne@69 87 unsigned int /* keycode */,
jpayne@69 88 Bool /* is_press */,
jpayne@69 89 int* /* axes */,
jpayne@69 90 int /* n_axes */,
jpayne@69 91 unsigned long /* delay */
jpayne@69 92 );
jpayne@69 93
jpayne@69 94 extern int XTestFakeDeviceButtonEvent(
jpayne@69 95 Display* /* dpy */,
jpayne@69 96 XDevice* /* dev */,
jpayne@69 97 unsigned int /* button */,
jpayne@69 98 Bool /* is_press */,
jpayne@69 99 int* /* axes */,
jpayne@69 100 int /* n_axes */,
jpayne@69 101 unsigned long /* delay */
jpayne@69 102 );
jpayne@69 103
jpayne@69 104 extern int XTestFakeProximityEvent(
jpayne@69 105 Display* /* dpy */,
jpayne@69 106 XDevice* /* dev */,
jpayne@69 107 Bool /* in_prox */,
jpayne@69 108 int* /* axes */,
jpayne@69 109 int /* n_axes */,
jpayne@69 110 unsigned long /* delay */
jpayne@69 111 );
jpayne@69 112
jpayne@69 113 extern int XTestFakeDeviceMotionEvent(
jpayne@69 114 Display* /* dpy */,
jpayne@69 115 XDevice* /* dev */,
jpayne@69 116 Bool /* is_relative */,
jpayne@69 117 int /* first_axis */,
jpayne@69 118 int* /* axes */,
jpayne@69 119 int /* n_axes */,
jpayne@69 120 unsigned long /* delay */
jpayne@69 121 );
jpayne@69 122
jpayne@69 123 extern int XTestGrabControl(
jpayne@69 124 Display* /* dpy */,
jpayne@69 125 Bool /* impervious */
jpayne@69 126 );
jpayne@69 127
jpayne@69 128 void XTestSetGContextOfGC(
jpayne@69 129 GC /* gc */,
jpayne@69 130 GContext /* gid */
jpayne@69 131 );
jpayne@69 132
jpayne@69 133 void XTestSetVisualIDOfVisual(
jpayne@69 134 Visual* /* visual */,
jpayne@69 135 VisualID /* visualid */
jpayne@69 136 );
jpayne@69 137
jpayne@69 138 Status XTestDiscard(
jpayne@69 139 Display* /* dpy */
jpayne@69 140 );
jpayne@69 141
jpayne@69 142 _XFUNCPROTOEND
jpayne@69 143
jpayne@69 144 #endif