xfixeswire.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. /*
  2. * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
  3. * Copyright 2010 Red Hat, Inc.
  4. *
  5. * Permission is hereby granted, free of charge, to any person obtaining a
  6. * copy of this software and associated documentation files (the "Software"),
  7. * to deal in the Software without restriction, including without limitation
  8. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  9. * and/or sell copies of the Software, and to permit persons to whom the
  10. * Software is furnished to do so, subject to the following conditions:
  11. *
  12. * The above copyright notice and this permission notice (including the next
  13. * paragraph) shall be included in all copies or substantial portions of the
  14. * 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
  19. * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  20. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  21. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  22. * DEALINGS IN THE SOFTWARE.
  23. */
  24. /*
  25. * Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc.
  26. *
  27. * Permission to use, copy, modify, distribute, and sell this software and its
  28. * documentation for any purpose is hereby granted without fee, provided that
  29. * the above copyright notice appear in all copies and that both that
  30. * copyright notice and this permission notice appear in supporting
  31. * documentation, and that the name of Keith Packard not be used in
  32. * advertising or publicity pertaining to distribution of the software without
  33. * specific, written prior permission. Keith Packard makes no
  34. * representations about the suitability of this software for any purpose. It
  35. * is provided "as is" without express or implied warranty.
  36. *
  37. * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  38. * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  39. * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  40. * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  41. * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  42. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  43. * PERFORMANCE OF THIS SOFTWARE.
  44. */
  45. #ifndef _XFIXESWIRE_H_
  46. #define _XFIXESWIRE_H_
  47. #define XFIXES_NAME "XFIXES"
  48. #define XFIXES_MAJOR 6
  49. #define XFIXES_MINOR 0
  50. /*************** Version 1 ******************/
  51. #define X_XFixesQueryVersion 0
  52. #define X_XFixesChangeSaveSet 1
  53. #define X_XFixesSelectSelectionInput 2
  54. #define X_XFixesSelectCursorInput 3
  55. #define X_XFixesGetCursorImage 4
  56. /*************** Version 2 ******************/
  57. #define X_XFixesCreateRegion 5
  58. #define X_XFixesCreateRegionFromBitmap 6
  59. #define X_XFixesCreateRegionFromWindow 7
  60. #define X_XFixesCreateRegionFromGC 8
  61. #define X_XFixesCreateRegionFromPicture 9
  62. #define X_XFixesDestroyRegion 10
  63. #define X_XFixesSetRegion 11
  64. #define X_XFixesCopyRegion 12
  65. #define X_XFixesUnionRegion 13
  66. #define X_XFixesIntersectRegion 14
  67. #define X_XFixesSubtractRegion 15
  68. #define X_XFixesInvertRegion 16
  69. #define X_XFixesTranslateRegion 17
  70. #define X_XFixesRegionExtents 18
  71. #define X_XFixesFetchRegion 19
  72. #define X_XFixesSetGCClipRegion 20
  73. #define X_XFixesSetWindowShapeRegion 21
  74. #define X_XFixesSetPictureClipRegion 22
  75. #define X_XFixesSetCursorName 23
  76. #define X_XFixesGetCursorName 24
  77. #define X_XFixesGetCursorImageAndName 25
  78. #define X_XFixesChangeCursor 26
  79. #define X_XFixesChangeCursorByName 27
  80. /*************** Version 3 ******************/
  81. #define X_XFixesExpandRegion 28
  82. /*************** Version 4 ******************/
  83. #define X_XFixesHideCursor 29
  84. #define X_XFixesShowCursor 30
  85. /*************** Version 5 ******************/
  86. #define X_XFixesCreatePointerBarrier 31
  87. #define X_XFixesDestroyPointerBarrier 32
  88. /*************** Version 6 ******************/
  89. #define X_XFixesSetClientDisconnectMode 33
  90. #define X_XFixesGetClientDisconnectMode 34
  91. #define XFixesNumberRequests (X_XFixesGetClientDisconnectMode+1)
  92. /* Selection events share one event number */
  93. #define XFixesSelectionNotify 0
  94. /* Within the selection, the 'subtype' field distinguishes */
  95. #define XFixesSetSelectionOwnerNotify 0
  96. #define XFixesSelectionWindowDestroyNotify 1
  97. #define XFixesSelectionClientCloseNotify 2
  98. #define XFixesSetSelectionOwnerNotifyMask (1L << 0)
  99. #define XFixesSelectionWindowDestroyNotifyMask (1L << 1)
  100. #define XFixesSelectionClientCloseNotifyMask (1L << 2)
  101. /* There's only one cursor event so far */
  102. #define XFixesCursorNotify 1
  103. #define XFixesDisplayCursorNotify 0
  104. #define XFixesDisplayCursorNotifyMask (1L << 0)
  105. #define XFixesNumberEvents (2)
  106. /* errors */
  107. #define BadRegion 0
  108. #define BadBarrier 1
  109. #define XFixesNumberErrors (BadBarrier+1)
  110. #define SaveSetNearest 0
  111. #define SaveSetRoot 1
  112. #define SaveSetMap 0
  113. #define SaveSetUnmap 1
  114. /*************** Version 2 ******************/
  115. #define WindowRegionBounding 0
  116. #define WindowRegionClip 1
  117. /*************** Version 5 ******************/
  118. #define BarrierPositiveX (1L << 0)
  119. #define BarrierPositiveY (1L << 1)
  120. #define BarrierNegativeX (1L << 2)
  121. #define BarrierNegativeY (1L << 3)
  122. /*************** Version 6 ******************/
  123. /* The default server behaviour */
  124. #define XFixesClientDisconnectFlagDefault 0
  125. /* The server may disconnect this client to shut down */
  126. #define XFixesClientDisconnectFlagTerminate (1L << 0)
  127. #endif /* _XFIXESWIRE_H_ */