xfixeswire.inc 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. const
  46. XFIXES_NAME = 'XFIXES';
  47. XFIXES_MAJOR = 5;
  48. XFIXES_MINOR = 0;
  49. (*************** Version 1 ******************)
  50. X_XFixesQueryVersion = 0;
  51. X_XFixesChangeSaveSet = 1;
  52. X_XFixesSelectSelectionInput = 2;
  53. X_XFixesSelectCursorInput = 3;
  54. X_XFixesGetCursorImage = 4;
  55. (*************** Version 2 ******************)
  56. X_XFixesCreateRegion = 5;
  57. X_XFixesCreateRegionFromBitmap = 6;
  58. X_XFixesCreateRegionFromWindow = 7;
  59. X_XFixesCreateRegionFromGC = 8;
  60. X_XFixesCreateRegionFromPicture = 9;
  61. X_XFixesDestroyRegion = 10;
  62. X_XFixesSetRegion = 11;
  63. X_XFixesCopyRegion = 12;
  64. X_XFixesUnionRegion = 13;
  65. X_XFixesIntersectRegion = 14;
  66. X_XFixesSubtractRegion = 15;
  67. X_XFixesInvertRegion = 16;
  68. X_XFixesTranslateRegion = 17;
  69. X_XFixesRegionExtents = 18;
  70. X_XFixesFetchRegion = 19;
  71. X_XFixesSetGCClipRegion = 20;
  72. X_XFixesSetWindowShapeRegion = 21;
  73. X_XFixesSetPictureClipRegion = 22;
  74. X_XFixesSetCursorName = 23;
  75. X_XFixesGetCursorName = 24;
  76. X_XFixesGetCursorImageAndName = 25;
  77. X_XFixesChangeCursor = 26;
  78. X_XFixesChangeCursorByName = 27;
  79. (*************** Version 3 ******************)
  80. X_XFixesExpandRegion = 28;
  81. (*************** Version 4 ******************)
  82. X_XFixesHideCursor = 29;
  83. X_XFixesShowCursor = 30;
  84. (*************** Version 5 ******************)
  85. X_XFixesCreatePointerBarrier = 31;
  86. X_XFixesDestroyPointerBarrier = 32;
  87. XFixesNumberRequests = X_XFixesDestroyPointerBarrier+1;
  88. { Selection events share one event number }
  89. XFixesSelectionNotify = 0;
  90. { Within the selection, the 'subtype' field distinguishes }
  91. XFixesSetSelectionOwnerNotify = 0;
  92. XFixesSelectionWindowDestroyNotify = 1;
  93. XFixesSelectionClientCloseNotify = 2;
  94. XFixesSetSelectionOwnerNotifyMask = 1 shl 0;
  95. XFixesSelectionWindowDestroyNotifyMask = 1 shl 1;
  96. XFixesSelectionClientCloseNotifyMask = 1 shl 2;
  97. { There's only one cursor event so far }
  98. XFixesCursorNotify = 1;
  99. XFixesDisplayCursorNotify = 0;
  100. XFixesDisplayCursorNotifyMask = 1 shl 0;
  101. XFixesNumberEvents = 2;
  102. { errors }
  103. BadRegion = 0;
  104. BadBarrier = 1;
  105. XFixesNumberErrors = BadBarrier+1;
  106. SaveSetNearest = 0;
  107. SaveSetRoot = 1;
  108. SaveSetMap = 0;
  109. SaveSetUnmap = 1;
  110. (*************** Version 2 ******************)
  111. WindowRegionBounding = 0;
  112. WindowRegionClip = 1;
  113. (*************** Version 5 ******************)
  114. BarrierPositiveX = 1 shl 0;
  115. BarrierPositiveY = 1 shl 1;
  116. BarrierNegativeX = 1 shl 2;
  117. BarrierNegativeY = 1 shl 3;