home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / amiga / gui / x / xnclds93.lha / os-include_x11.lha / os-include / X11 / extensions / XTest.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-02  |  2.6 KB  |  127 lines

  1. /* $XConsortium: XTest.h,v 1.4 92/04/20 13:13:54 rws Exp $ */
  2. /*
  3.  
  4. Copyright 1992 by the Massachusetts Institute of Technology
  5.  
  6. Permission to use, copy, modify, distribute, and sell this software and its
  7. documentation for any purpose is hereby granted without fee, provided that
  8. the above copyright notice appear in all copies and that both that
  9. copyright notice and this permission notice appear in supporting
  10. documentation, and that the name of M.I.T. not be used in advertising or
  11. publicity pertaining to distribution of the software without specific,
  12. written prior permission.  M.I.T. makes no representations about the
  13. suitability of this software for any purpose.  It is provided "as is"
  14. without express or implied warranty.
  15.  
  16. */
  17.  
  18. #ifndef _XTEST_H_
  19. #define _XTEST_H_
  20.  
  21. #include <X11/Xfuncproto.h>
  22.  
  23. #define X_XTestGetVersion    0
  24. #define X_XTestCompareCursor    1
  25. #define X_XTestFakeInput    2
  26.  
  27. #define XTestNumberEvents    0
  28.  
  29. #define XTestNumberErrors    0
  30.  
  31. #define XTestMajorVersion    2
  32. #define XTestMinorVersion    1
  33.  
  34. #define XTestExtensionName    "XTEST"
  35.  
  36. #ifndef _XTEST_SERVER_
  37.  
  38. _XFUNCPROTOBEGIN
  39.  
  40. Bool XTestQueryExtension(
  41. #if NeedFunctionPrototypes
  42.     Display*        /* dpy */,
  43.     int*        /* event_basep */,
  44.     int*        /* error_basep */,
  45.     int*        /* majorp */,
  46.     int*        /* minorp */
  47. #endif
  48. );
  49.  
  50. Bool XTestCompareCursorWithWindow(
  51. #if NeedFunctionPrototypes
  52.     Display*        /* dpy */,
  53.     Window        /* window */,
  54.     Cursor        /* cursor */
  55. #endif
  56. );
  57.  
  58. Bool XTestCompareCurrentCursorWithWindow(
  59. #if NeedFunctionPrototypes
  60.     Display*        /* dpy */,
  61.     Window        /* window */
  62. #endif
  63. );
  64.  
  65. extern XTestFakeKeyEvent(
  66. #if NeedFunctionPrototypes
  67.     Display*        /* dpy */,
  68.     unsigned int    /* keycode */,
  69.     Bool        /* is_press */,
  70.     unsigned long    /* delay */
  71. #endif
  72. );
  73.  
  74. extern XTestFakeButtonEvent(
  75. #if NeedFunctionPrototypes
  76.     Display*        /* dpy */,
  77.     unsigned int    /* button */,
  78.     Bool        /* is_press */,
  79.     unsigned long    /* delay */
  80. #endif
  81. );
  82.  
  83. extern XTestFakeMotionEvent(
  84. #if NeedFunctionPrototypes
  85.     Display*        /* dpy */,
  86.     int            /* screen */,
  87.     int            /* x */,
  88.     int            /* y */,
  89.     unsigned long    /* delay */
  90. #endif
  91. );
  92.  
  93. extern XTestFakeRelativeMotionEvent(
  94. #if NeedFunctionPrototypes
  95.     Display*        /* dpy */,
  96.     int            /* x */,
  97.     int            /* y */,
  98.     unsigned long    /* delay */
  99. #endif
  100. );
  101.  
  102. void XTestSetGContextOfGC(
  103. #if NeedFunctionPrototypes
  104.     GC            /* gc */,
  105.     GContext        /* gid */
  106. #endif
  107. );
  108.  
  109. void XTestSetVisualIDOfVisual(
  110. #if NeedFunctionPrototypes
  111.     Visual*        /* visual */,
  112.     VisualID        /* visualid */
  113. #endif
  114. );
  115.  
  116. Status XTestDiscard(
  117. #if NeedFunctionPrototypes
  118.     Display*        /* dpy */
  119. #endif
  120. );
  121.  
  122. _XFUNCPROTOEND
  123.  
  124. #endif /* _XTEST_SERVER_ */
  125.  
  126. #endif
  127.