xfixesint.h 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  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. * Copyright © 2002 Keith Packard
  25. *
  26. * Permission to use, copy, modify, distribute, and sell this software and its
  27. * documentation for any purpose is hereby granted without fee, provided that
  28. * the above copyright notice appear in all copies and that both that
  29. * copyright notice and this permission notice appear in supporting
  30. * documentation, and that the name of Keith Packard not be used in
  31. * advertising or publicity pertaining to distribution of the software without
  32. * specific, written prior permission. Keith Packard makes no
  33. * representations about the suitability of this software for any purpose. It
  34. * is provided "as is" without express or implied warranty.
  35. *
  36. * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  37. * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  38. * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  39. * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  40. * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  41. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  42. * PERFORMANCE OF THIS SOFTWARE.
  43. */
  44. #ifdef HAVE_DIX_CONFIG_H
  45. #include <dix-config.h>
  46. #endif
  47. #ifndef _XFIXESINT_H_
  48. #define _XFIXESINT_H_
  49. #include <X11/X.h>
  50. #include <X11/Xproto.h>
  51. #include "misc.h"
  52. #include "os.h"
  53. #include "dixstruct.h"
  54. #include "extnsionst.h"
  55. #include <X11/extensions/xfixesproto.h>
  56. #include "windowstr.h"
  57. #include "selection.h"
  58. #include "xfixes.h"
  59. extern int XFixesEventBase;
  60. typedef struct _XFixesClient {
  61. CARD32 major_version;
  62. CARD32 minor_version;
  63. } XFixesClientRec, *XFixesClientPtr;
  64. #define GetXFixesClient(pClient) ((XFixesClientPtr)dixLookupPrivate(&(pClient)->devPrivates, XFixesClientPrivateKey))
  65. extern int (*ProcXFixesVector[XFixesNumberRequests]) (ClientPtr);
  66. /* Save set */
  67. int
  68. ProcXFixesChangeSaveSet(ClientPtr client);
  69. int
  70. SProcXFixesChangeSaveSet(ClientPtr client);
  71. /* Selection events */
  72. int
  73. ProcXFixesSelectSelectionInput(ClientPtr client);
  74. int
  75. SProcXFixesSelectSelectionInput(ClientPtr client);
  76. void
  77. SXFixesSelectionNotifyEvent(xXFixesSelectionNotifyEvent * from,
  78. xXFixesSelectionNotifyEvent * to);
  79. Bool
  80. XFixesSelectionInit(void);
  81. /* Cursor notification */
  82. Bool
  83. XFixesCursorInit(void);
  84. int
  85. ProcXFixesSelectCursorInput(ClientPtr client);
  86. int
  87. SProcXFixesSelectCursorInput(ClientPtr client);
  88. void
  89. SXFixesCursorNotifyEvent(xXFixesCursorNotifyEvent * from,
  90. xXFixesCursorNotifyEvent * to);
  91. int
  92. ProcXFixesGetCursorImage(ClientPtr client);
  93. int
  94. SProcXFixesGetCursorImage(ClientPtr client);
  95. /* Cursor names (Version 2) */
  96. int
  97. ProcXFixesSetCursorName(ClientPtr client);
  98. int
  99. SProcXFixesSetCursorName(ClientPtr client);
  100. int
  101. ProcXFixesGetCursorName(ClientPtr client);
  102. int
  103. SProcXFixesGetCursorName(ClientPtr client);
  104. int
  105. ProcXFixesGetCursorImageAndName(ClientPtr client);
  106. int
  107. SProcXFixesGetCursorImageAndName(ClientPtr client);
  108. /* Cursor replacement (Version 2) */
  109. int
  110. ProcXFixesChangeCursor(ClientPtr client);
  111. int
  112. SProcXFixesChangeCursor(ClientPtr client);
  113. int
  114. ProcXFixesChangeCursorByName(ClientPtr client);
  115. int
  116. SProcXFixesChangeCursorByName(ClientPtr client);
  117. /* Region objects (Version 2* */
  118. Bool
  119. XFixesRegionInit(void);
  120. int
  121. ProcXFixesCreateRegion(ClientPtr client);
  122. int
  123. SProcXFixesCreateRegion(ClientPtr client);
  124. int
  125. ProcXFixesCreateRegionFromBitmap(ClientPtr client);
  126. int
  127. SProcXFixesCreateRegionFromBitmap(ClientPtr client);
  128. int
  129. ProcXFixesCreateRegionFromWindow(ClientPtr client);
  130. int
  131. SProcXFixesCreateRegionFromWindow(ClientPtr client);
  132. int
  133. ProcXFixesCreateRegionFromGC(ClientPtr client);
  134. int
  135. SProcXFixesCreateRegionFromGC(ClientPtr client);
  136. int
  137. ProcXFixesCreateRegionFromPicture(ClientPtr client);
  138. int
  139. SProcXFixesCreateRegionFromPicture(ClientPtr client);
  140. int
  141. ProcXFixesDestroyRegion(ClientPtr client);
  142. int
  143. SProcXFixesDestroyRegion(ClientPtr client);
  144. int
  145. ProcXFixesSetRegion(ClientPtr client);
  146. int
  147. SProcXFixesSetRegion(ClientPtr client);
  148. int
  149. ProcXFixesCopyRegion(ClientPtr client);
  150. int
  151. SProcXFixesCopyRegion(ClientPtr client);
  152. int
  153. ProcXFixesCombineRegion(ClientPtr client);
  154. int
  155. SProcXFixesCombineRegion(ClientPtr client);
  156. int
  157. ProcXFixesInvertRegion(ClientPtr client);
  158. int
  159. SProcXFixesInvertRegion(ClientPtr client);
  160. int
  161. ProcXFixesTranslateRegion(ClientPtr client);
  162. int
  163. SProcXFixesTranslateRegion(ClientPtr client);
  164. int
  165. ProcXFixesRegionExtents(ClientPtr client);
  166. int
  167. SProcXFixesRegionExtents(ClientPtr client);
  168. int
  169. ProcXFixesFetchRegion(ClientPtr client);
  170. int
  171. SProcXFixesFetchRegion(ClientPtr client);
  172. int
  173. ProcXFixesSetGCClipRegion(ClientPtr client);
  174. int
  175. SProcXFixesSetGCClipRegion(ClientPtr client);
  176. int
  177. ProcXFixesSetWindowShapeRegion(ClientPtr client);
  178. int
  179. SProcXFixesSetWindowShapeRegion(ClientPtr client);
  180. int
  181. ProcXFixesSetPictureClipRegion(ClientPtr client);
  182. int
  183. SProcXFixesSetPictureClipRegion(ClientPtr client);
  184. int
  185. ProcXFixesExpandRegion(ClientPtr client);
  186. int
  187. SProcXFixesExpandRegion(ClientPtr client);
  188. int
  189. PanoramiXFixesSetGCClipRegion(ClientPtr client);
  190. int
  191. PanoramiXFixesSetWindowShapeRegion(ClientPtr client);
  192. int
  193. PanoramiXFixesSetPictureClipRegion(ClientPtr client);
  194. /* Cursor Visibility (Version 4) */
  195. int
  196. ProcXFixesHideCursor(ClientPtr client);
  197. int
  198. SProcXFixesHideCursor(ClientPtr client);
  199. int
  200. ProcXFixesShowCursor(ClientPtr client);
  201. int
  202. SProcXFixesShowCursor(ClientPtr client);
  203. /* Version 5 */
  204. int
  205. ProcXFixesCreatePointerBarrier(ClientPtr client);
  206. int
  207. SProcXFixesCreatePointerBarrier(ClientPtr client);
  208. int
  209. ProcXFixesDestroyPointerBarrier(ClientPtr client);
  210. int
  211. SProcXFixesDestroyPointerBarrier(ClientPtr client);
  212. /* Xinerama */
  213. #ifdef PANORAMIX
  214. extern int (*PanoramiXSaveXFixesVector[XFixesNumberRequests]) (ClientPtr);
  215. void PanoramiXFixesInit(void);
  216. void PanoramiXFixesReset(void);
  217. #endif
  218. #endif /* _XFIXESINT_H_ */