1 /************************************************************
3 Copyright 1989, 1998 The Open Group
5 Permission to use, copy, modify, distribute, and sell this software and its
6 documentation for any purpose is hereby granted without fee, provided that
7 the above copyright notice appear in all copies and that both that
8 copyright notice and this permission notice appear in supporting
11 The above copyright notice and this permission notice shall be included in
12 all copies or substantial portions of the Software.
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 Except as contained in this notice, the name of The Open Group shall not be
22 used in advertising or otherwise to promote the sale, use or other dealings
23 in this Software without prior written authorization from The Open Group.
25 ********************************************************/
30 #include <X11/Xfuncproto.h>
31 #include <X11/extensions/shapeconst.h>
33 #ifndef _SHAPE_SERVER_
34 #include <X11/Xutil.h>
37 int type; /* of event */
38 unsigned long serial; /* # of last request processed by server */
39 Bool send_event; /* true if this came frome a SendEvent request */
40 Display *display; /* Display the event was read from */
41 Window window; /* window of event */
42 int kind; /* ShapeBounding or ShapeClip */
43 int x, y; /* extents of new region */
44 unsigned width, height;
45 Time time; /* server timestamp when region changed */
46 Bool shaped; /* true if the region exists */
51 extern Bool XShapeQueryExtension (
52 Display* /* display */,
53 int* /* event_base */,
57 extern Status XShapeQueryVersion (
58 Display* /* display */,
59 int* /* major_version */,
60 int* /* minor_version */
63 extern void XShapeCombineRegion (
64 Display* /* display */,
73 extern void XShapeCombineRectangles (
74 Display* /* display */,
79 XRectangle* /* rectangles */,
85 extern void XShapeCombineMask (
86 Display* /* display */,
95 extern void XShapeCombineShape (
96 Display* /* display */,
106 extern void XShapeOffsetShape (
107 Display* /* display */,
114 extern Status XShapeQueryExtents (
115 Display* /* display */,
117 Bool* /* bounding_shaped */,
118 int* /* x_bounding */,
119 int* /* y_bounding */,
120 unsigned int* /* w_bounding */,
121 unsigned int* /* h_bounding */,
122 Bool* /* clip_shaped */,
125 unsigned int* /* w_clip */,
126 unsigned int* /* h_clip */
129 extern void XShapeSelectInput (
130 Display* /* display */,
132 unsigned long /* mask */
135 extern unsigned long XShapeInputSelected (
136 Display* /* display */,
140 extern XRectangle *XShapeGetRectangles (
141 Display* /* display */,
150 #endif /* !_SHAPE_SERVER_ */
152 #endif /* _SHAPE_H_ */