home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / extensions / include / xteststr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-21  |  2.3 KB  |  85 lines

  1. /* $XConsortium: xteststr.h,v 1.5 92/04/20 13:14:15 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. #define XTestCurrentCursor ((Cursor)1)
  19.  
  20. typedef struct {
  21.     CARD8    reqType;    /* always XTestReqCode */
  22.     CARD8    xtReqType;    /* always X_XTestGetVersion */
  23.     CARD16    length B16;
  24.     CARD8    majorVersion;
  25.     CARD8    pad;
  26.     CARD16    minorVersion B16;
  27. } xXTestGetVersionReq;
  28. #define sz_xXTestGetVersionReq 8
  29.  
  30. typedef struct {
  31.     BYTE    type;            /* X_Reply */
  32.     CARD8    majorVersion;
  33.     CARD16    sequenceNumber B16;
  34.     CARD32    length B32;
  35.     CARD16    minorVersion B16;
  36.     CARD16    pad0 B16;
  37.     CARD32    pad1 B32;
  38.     CARD32    pad2 B32;
  39.     CARD32    pad3 B32;
  40.     CARD32    pad4 B32;
  41.     CARD32    pad5 B32;
  42. } xXTestGetVersionReply;
  43. #define sz_xXTestGetVersionReply 32
  44.  
  45. typedef struct {
  46.     CARD8    reqType;    /* always XTestReqCode */
  47.     CARD8    xtReqType;    /* always X_XTestCompareCursor */
  48.     CARD16    length B16;
  49.     Window    window B32;
  50.     Cursor    cursor B32;
  51. } xXTestCompareCursorReq;
  52. #define sz_xXTestCompareCursorReq 12
  53.  
  54. typedef struct {
  55.     BYTE    type;            /* X_Reply */
  56.     BOOL    same;
  57.     CARD16    sequenceNumber B16;
  58.     CARD32    length B32;
  59.     CARD32    pad0 B32;
  60.     CARD32    pad1 B32;
  61.     CARD32    pad2 B32;
  62.     CARD32    pad3 B32;
  63.     CARD32    pad4 B32;
  64.     CARD32    pad5 B32;
  65. } xXTestCompareCursorReply;
  66. #define sz_xXTestCompareCursorReply 32
  67.  
  68. /* used only on the client side */
  69. typedef struct {
  70.     CARD8    reqType;    /* always XTestReqCode */
  71.     CARD8    xtReqType;    /* always X_XTestFakeInput */
  72.     CARD16    length B16;
  73.     BYTE    type;
  74.     BYTE    detail;
  75.     CARD16    pad0 B16;
  76.     Time    time B32;
  77.     Window    root B32;
  78.     CARD32    pad1 B32;
  79.     CARD32    pad2 B32;
  80.     INT16    rootX B16, rootY B16;
  81.     CARD32    pad3 B32;
  82.     CARD32    pad4 B32;
  83. } xXTestFakeInputReq;
  84. #define sz_xXTestFakeInputReq 36
  85.