home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / include / x11 / extensions / xtest.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-17  |  4.3 KB  |  195 lines

  1. /* $XConsortium: XTest.h,v 1.9 94/04/17 20:11:18 rws Exp $ */
  2. /*
  3.  
  4. Copyright (c) 1992  X Consortium
  5.  
  6. Permission is hereby granted, free of charge, to any person obtaining a copy
  7. of this software and associated documentation files (the "Software"), to deal
  8. in the Software without restriction, including without limitation the rights
  9. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  10. copies of the Software, and to permit persons to whom the Software is
  11. furnished to do so, subject to the following conditions:
  12.  
  13. The above copyright notice and this permission notice shall be included in
  14. all copies or substantial portions of the Software.
  15.  
  16. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  17. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  18. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  19. X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  20. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  21. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  22.  
  23. Except as contained in this notice, the name of the X Consortium shall not be
  24. used in advertising or otherwise to promote the sale, use or other dealings
  25. in this Software without prior written authorization from the X Consortium.
  26.  
  27. */
  28.  
  29. #ifndef _XTEST_H_
  30. #define _XTEST_H_
  31.  
  32. #include <X11/Xfuncproto.h>
  33.  
  34. #define X_XTestGetVersion    0
  35. #define X_XTestCompareCursor    1
  36. #define X_XTestFakeInput    2
  37. #define X_XTestGrabControl    3
  38.  
  39. #define XTestNumberEvents    0
  40.  
  41. #define XTestNumberErrors    0
  42.  
  43. #define XTestMajorVersion    2
  44. #define XTestMinorVersion    2
  45.  
  46. #define XTestExtensionName    "XTEST"
  47.  
  48. #ifndef _XTEST_SERVER_
  49.  
  50. #include <X11/extensions/XInput.h>
  51.  
  52. _XFUNCPROTOBEGIN
  53.  
  54. Bool XTestQueryExtension(
  55. #if NeedFunctionPrototypes
  56.     Display*        /* dpy */,
  57.     int*        /* event_basep */,
  58.     int*        /* error_basep */,
  59.     int*        /* majorp */,
  60.     int*        /* minorp */
  61. #endif
  62. );
  63.  
  64. Bool XTestCompareCursorWithWindow(
  65. #if NeedFunctionPrototypes
  66.     Display*        /* dpy */,
  67.     Window        /* window */,
  68.     Cursor        /* cursor */
  69. #endif
  70. );
  71.  
  72. Bool XTestCompareCurrentCursorWithWindow(
  73. #if NeedFunctionPrototypes
  74.     Display*        /* dpy */,
  75.     Window        /* window */
  76. #endif
  77. );
  78.  
  79. extern XTestFakeKeyEvent(
  80. #if NeedFunctionPrototypes
  81.     Display*        /* dpy */,
  82.     unsigned int    /* keycode */,
  83.     Bool        /* is_press */,
  84.     unsigned long    /* delay */
  85. #endif
  86. );
  87.  
  88. extern XTestFakeButtonEvent(
  89. #if NeedFunctionPrototypes
  90.     Display*        /* dpy */,
  91.     unsigned int    /* button */,
  92.     Bool        /* is_press */,
  93.     unsigned long    /* delay */
  94. #endif
  95. );
  96.  
  97. extern XTestFakeMotionEvent(
  98. #if NeedFunctionPrototypes
  99.     Display*        /* dpy */,
  100.     int            /* screen */,
  101.     int            /* x */,
  102.     int            /* y */,
  103.     unsigned long    /* delay */
  104. #endif
  105. );
  106.  
  107. extern XTestFakeRelativeMotionEvent(
  108. #if NeedFunctionPrototypes
  109.     Display*        /* dpy */,
  110.     int            /* x */,
  111.     int            /* y */,
  112.     unsigned long    /* delay */
  113. #endif
  114. );
  115.  
  116. extern XTestFakeDeviceKeyEvent(
  117. #if NeedFunctionPrototypes
  118.     Display*        /* dpy */,
  119.     XDevice*        /* dev */,
  120.     unsigned int    /* keycode */,
  121.     Bool        /* is_press */,
  122.     int*        /* axes */,
  123.     int            /* n_axes */,
  124.     unsigned long    /* delay */
  125. #endif
  126. );
  127.  
  128. extern XTestFakeDeviceButtonEvent(
  129. #if NeedFunctionPrototypes
  130.     Display*        /* dpy */,
  131.     XDevice*        /* dev */,
  132.     unsigned int    /* button */,
  133.     Bool        /* is_press */,
  134.     int*        /* axes */,
  135.     int            /* n_axes */,
  136.     unsigned long    /* delay */
  137. #endif
  138. );
  139.  
  140. extern XTestFakeProximityEvent(
  141. #if NeedFunctionPrototypes
  142.     Display*        /* dpy */,
  143.     XDevice*        /* dev */,
  144.     Bool        /* in_prox */,
  145.     int*        /* axes */,
  146.     int            /* n_axes */,
  147.     unsigned long    /* delay */
  148. #endif
  149. );
  150.  
  151. extern XTestFakeDeviceMotionEvent(
  152. #if NeedFunctionPrototypes
  153.     Display*        /* dpy */,
  154.     XDevice*        /* dev */,
  155.     Bool        /* is_relative */,
  156.     int            /* first_axis */,
  157.     int*        /* axes */,
  158.     int            /* n_axes */,
  159.     unsigned long    /* delay */
  160. #endif
  161. );
  162.  
  163. extern XTestGrabControl(
  164. #if NeedFunctionPrototypes
  165.     Display*        /* dpy */,
  166.     Bool        /* impervious */
  167. #endif
  168. );
  169.  
  170. void XTestSetGContextOfGC(
  171. #if NeedFunctionPrototypes
  172.     GC            /* gc */,
  173.     GContext        /* gid */
  174. #endif
  175. );
  176.  
  177. void XTestSetVisualIDOfVisual(
  178. #if NeedFunctionPrototypes
  179.     Visual*        /* visual */,
  180.     VisualID        /* visualid */
  181. #endif
  182. );
  183.  
  184. Status XTestDiscard(
  185. #if NeedFunctionPrototypes
  186.     Display*        /* dpy */
  187. #endif
  188. );
  189.  
  190. _XFUNCPROTOEND
  191.  
  192. #endif /* _XTEST_SERVER_ */
  193.  
  194. #endif
  195.