You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Xutil.h 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. /***********************************************************
  2. Copyright 1987, 1998 The Open Group
  3. Permission to use, copy, modify, distribute, and sell this software and its
  4. documentation for any purpose is hereby granted without fee, provided that
  5. the above copyright notice appear in all copies and that both that
  6. copyright notice and this permission notice appear in supporting
  7. documentation.
  8. The above copyright notice and this permission notice shall be included in
  9. all copies or substantial portions of the Software.
  10. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  11. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  12. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  13. OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  14. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  15. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  16. Except as contained in this notice, the name of The Open Group shall not be
  17. used in advertising or otherwise to promote the sale, use or other dealings
  18. in this Software without prior written authorization from The Open Group.
  19. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
  20. All Rights Reserved
  21. Permission to use, copy, modify, and distribute this software and its
  22. documentation for any purpose and without fee is hereby granted,
  23. provided that the above copyright notice appear in all copies and that
  24. both that copyright notice and this permission notice appear in
  25. supporting documentation, and that the name of Digital not be
  26. used in advertising or publicity pertaining to distribution of the
  27. software without specific, written prior permission.
  28. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  29. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  30. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  31. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  32. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  33. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  34. SOFTWARE.
  35. ******************************************************************/
  36. #ifndef _X11_XUTIL_H_
  37. #define _X11_XUTIL_H_
  38. /* You must include <X11/Xlib.h> before including this file */
  39. #include "Xlib.h"
  40. /****** Avoid symbol clash with "real" libX11 ******/
  41. #define XClipBox vncXClipBox
  42. #define XCreateRegion vncXCreateRegion
  43. #define XDestroyRegion vncXDestroyRegion
  44. #define XEmptyRegion vncXEmptyRegion
  45. #define XEqualRegion vncXEqualRegion
  46. #define XIntersectRegion vncXIntersectRegion
  47. #define XOffsetRegion vncXOffsetRegion
  48. #define XPointInRegion vncXPointInRegion
  49. #define XPolygonRegion vncXPolygonRegion
  50. #define XRectInRegion vncXRectInRegion
  51. #define XShrinkRegion vncXShrinkRegion
  52. #define XSubtractRegion vncXSubtractRegion
  53. #define XUnionRectWithRegion vncXUnionRectWithRegion
  54. #define XUnionRegion vncXUnionRegion
  55. #define XXorRegion vncXXorRegion
  56. /*
  57. * opaque reference to Region data type
  58. */
  59. typedef struct _XRegion *Region;
  60. /* Return values from XRectInRegion() */
  61. #define RectangleOut 0
  62. #define RectangleIn 1
  63. #define RectanglePart 2
  64. extern int XClipBox(
  65. Region /* r */,
  66. XRectangle* /* rect_return */
  67. );
  68. extern Region XCreateRegion(
  69. void
  70. );
  71. extern int XDestroyRegion(
  72. Region /* r */
  73. );
  74. extern int XEmptyRegion(
  75. Region /* r */
  76. );
  77. extern int XEqualRegion(
  78. Region /* r1 */,
  79. Region /* r2 */
  80. );
  81. extern int XIntersectRegion(
  82. Region /* sra */,
  83. Region /* srb */,
  84. Region /* dr_return */
  85. );
  86. extern int XOffsetRegion(
  87. Region /* r */,
  88. int /* dx */,
  89. int /* dy */
  90. );
  91. extern Bool XPointInRegion(
  92. Region /* r */,
  93. int /* x */,
  94. int /* y */
  95. );
  96. extern Region XPolygonRegion(
  97. XPoint* /* points */,
  98. int /* n */,
  99. int /* fill_rule */
  100. );
  101. extern int XRectInRegion(
  102. Region /* r */,
  103. int /* x */,
  104. int /* y */,
  105. unsigned int /* width */,
  106. unsigned int /* height */
  107. );
  108. extern int XShrinkRegion(
  109. Region /* r */,
  110. int /* dx */,
  111. int /* dy */
  112. );
  113. extern int XSubtractRegion(
  114. Region /* sra */,
  115. Region /* srb */,
  116. Region /* dr_return */
  117. );
  118. extern int XUnionRectWithRegion(
  119. XRectangle* /* rectangle */,
  120. Region /* src_region */,
  121. Region /* dest_region_return */
  122. );
  123. extern int XUnionRegion(
  124. Region /* sra */,
  125. Region /* srb */,
  126. Region /* dr_return */
  127. );
  128. extern int XXorRegion(
  129. Region /* sra */,
  130. Region /* srb */,
  131. Region /* dr_return */
  132. );
  133. #endif /* _X11_XUTIL_H_ */