home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / include / x11 / extensions / shape.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-17  |  5.1 KB  |  199 lines

  1. /************************************************************
  2.  
  3. Copyright (c) 1989  X Consortium
  4.  
  5. Permission is hereby granted, free of charge, to any person obtaining a copy
  6. of this software and associated documentation files (the "Software"), to deal
  7. in the Software without restriction, including without limitation the rights
  8. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  9. copies of the Software, and to permit persons to whom the Software is
  10. furnished to do so, subject to the following conditions:
  11.  
  12. The above copyright notice and this permission notice shall be included in
  13. all copies or substantial portions of the Software.
  14.  
  15. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  18. X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  19. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  20. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  21.  
  22. Except as contained in this notice, the name of the X Consortium shall not be
  23. used in advertising or otherwise to promote the sale, use or other dealings
  24. in this Software without prior written authorization from the X Consortium.
  25.  
  26. ********************************************************/
  27.  
  28. /* $XConsortium: shape.h,v 1.17 94/04/17 20:11:23 rws Exp $ */
  29.  
  30. #ifndef _SHAPE_H_
  31. #define _SHAPE_H_
  32.  
  33. #include <X11/Xfuncproto.h>
  34.  
  35. #define X_ShapeQueryVersion        0
  36. #define X_ShapeRectangles        1
  37. #define X_ShapeMask            2
  38. #define X_ShapeCombine            3
  39. #define X_ShapeOffset            4
  40. #define X_ShapeQueryExtents        5
  41. #define X_ShapeSelectInput        6
  42. #define X_ShapeInputSelected        7
  43. #define X_ShapeGetRectangles        8
  44.  
  45. #define ShapeSet            0
  46. #define ShapeUnion            1
  47. #define ShapeIntersect            2
  48. #define ShapeSubtract            3
  49. #define ShapeInvert            4
  50.  
  51. #define ShapeBounding            0
  52. #define ShapeClip            1
  53.  
  54. #define ShapeNotifyMask            (1L << 0)
  55. #define ShapeNotify            0
  56.  
  57. #define ShapeNumberEvents        (ShapeNotify + 1)
  58.  
  59. #ifndef _SHAPE_SERVER_
  60. typedef struct {
  61.     int    type;            /* of event */
  62.     unsigned long serial;   /* # of last request processed by server */
  63.     Bool send_event;        /* true if this came frome a SendEvent request */
  64.     Display *display;        /* Display the event was read from */
  65.     Window window;        /* window of event */
  66.     int kind;            /* ShapeBounding or ShapeClip */
  67.     int x, y;            /* extents of new region */
  68.     unsigned width, height;
  69.     Time time;            /* server timestamp when region changed */
  70.     Bool shaped;        /* true if the region exists */
  71. } XShapeEvent;
  72.  
  73. _XFUNCPROTOBEGIN
  74.  
  75. extern Bool XShapeQueryExtension (
  76. #if NeedFunctionPrototypes
  77.     Display*    /* display */,
  78.     int*    /* event_base */,
  79.     int*    /* error_base */
  80. #endif
  81. );
  82.  
  83. extern Status XShapeQueryVersion (
  84. #if NeedFunctionPrototypes
  85.     Display*    /* display */,
  86.     int*    /* major_version */,
  87.     int*    /* minor_version */
  88. #endif
  89. );
  90.  
  91. extern void XShapeCombineRegion (
  92. #if NeedFunctionPrototypes
  93.     Display*    /* display */,
  94.     Window    /* dest */,
  95.     int        /* dest_kind */,
  96.     int        /* x_off */,
  97.     int        /* y_off */,
  98.     Region    /* region */,
  99.     int        /* op */
  100. #endif
  101. );
  102.  
  103. extern void XShapeCombineRectangles (
  104. #if NeedFunctionPrototypes
  105.     Display*    /* display */,
  106.     Window    /* dest */,
  107.     int        /* dest_kind */,
  108.     int        /* x_off */,
  109.     int        /* y_off */,
  110.     XRectangle*    /* rectangles */,
  111.     int        /* n_rects */,
  112.     int        /* op */,
  113.     int        /* ordering */
  114. #endif
  115. );
  116.  
  117. extern void XShapeCombineMask (
  118. #if NeedFunctionPrototypes
  119.     Display*    /* display */,
  120.     Window    /* dest */,
  121.     int        /* dest_kind */,
  122.     int        /* x_off */,
  123.     int        /* y_off */,
  124.     Pixmap    /* src */,
  125.     int        /* op */
  126. #endif
  127. );
  128.  
  129. extern void XShapeCombineShape (
  130. #if NeedFunctionPrototypes
  131.     Display*    /* display */,
  132.     Window    /* dest */,
  133.     int        /* dest_kind */,
  134.     int        /* x_off */,
  135.     int        /* y_off */,
  136.     Window    /* src */,
  137.     int        /* src_kind */,
  138.     int        /* op */
  139. #endif
  140. );
  141.  
  142. extern void XShapeOffsetShape (
  143. #if NeedFunctionPrototypes
  144.     Display*    /* display */,
  145.     Window    /* dest */,
  146.     int        /* dest_kind */,
  147.     int        /* x_off */,
  148.     int        /* y_off */
  149. #endif
  150. );
  151.  
  152. extern Status XShapeQueryExtents (
  153. #if NeedFunctionPrototypes
  154.     Display*        /* display */,
  155.     Window        /* window */,
  156.     Bool*        /* bounding_shaped */,
  157.     int*        /* x_bounding */,
  158.     int*        /* y_bounding */,
  159.     unsigned int*    /* w_bounding */,
  160.     unsigned int*    /* h_bounding */,
  161.     Bool*        /* clip_shaped */,
  162.     int*        /* x_clip */,
  163.     int*        /* y_clip */,
  164.     unsigned int*    /* w_clip */,
  165.     unsigned int*    /* h_clip */
  166. #endif
  167. );
  168.  
  169. extern void XShapeSelectInput (
  170. #if NeedFunctionPrototypes
  171.     Display*        /* display */,
  172.     Window        /* window */,
  173.     unsigned long    /* mask */
  174. #endif
  175. );
  176.  
  177. extern unsigned long XShapeInputSelected (
  178. #if NeedFunctionPrototypes
  179.     Display*    /* display */,
  180.     Window    /* window */
  181. #endif
  182. );
  183.  
  184. extern XRectangle *XShapeGetRectangles (
  185. #if NeedFunctionPrototypes
  186.     Display*    /* display */,
  187.     Window    /* window */,
  188.     int        /* kind */,
  189.     int*    /* count */,
  190.     int*    /* ordering */
  191. #endif
  192. );
  193.  
  194. _XFUNCPROTOEND
  195.  
  196. #endif /* _SHAPE_SERVER_ */
  197.  
  198. #endif /* _SHAPE_H_ */
  199.