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 ********************************************************/
26 module iv
.x11
.xshape
/*is aliced*/;
28 import core
.stdc
.config
;
36 extern(C
) nothrow @nogc:
39 //#include <X11/Xfuncproto.h>
40 //#include <X11/extensions/shapeconst.h>
43 * Protocol requests constants and alignment values
44 * These would really be in SHAPE's X.h and Xproto.h equivalents
47 //#define SHAPENAME "SHAPE"
49 //#define SHAPE_MAJOR_VERSION 1 /* current version numbers */
50 //#define SHAPE_MINOR_VERSION 1
54 enum ShapeIntersect
= 2;
55 enum ShapeSubtract
= 3;
58 enum ShapeBounding
= 0;
62 enum ShapeNotifyMask
= 1U<<0;
65 enum ShapeNumberEvents
= ShapeNotify
+1;
68 int type
; /* of event */
69 c_ulong serial
; /* # of last request processed by server */
70 Bool send_event
; /* true if this came frome a SendEvent request */
71 Display
* display
; /* Display the event was read from */
72 Window window
; /* window of event */
73 int kind
; /* ShapeBounding or ShapeClip */
74 int x
, y
; /* extents of new region */
76 Time time
; /* server timestamp when region changed */
77 Bool shaped
; /* true if the region exists */
81 Bool
XShapeQueryExtension (
82 Display
* /* display */,
83 int* /* event_base */,
87 Status
XShapeQueryVersion (
88 Display
* /* display */,
89 int* /* major_version */,
90 int* /* minor_version */
93 void XShapeCombineRegion (
94 Display
* /* display */,
103 void XShapeCombineRectangles (
104 Display
* /* display */,
109 XRectangle
* /* rectangles */,
115 void XShapeCombineMask (
116 Display
* /* display */,
125 void XShapeCombineShape (
126 Display
* /* display */,
136 void XShapeOffsetShape (
137 Display
* /* display */,
144 Status
XShapeQueryExtents (
145 Display
* /* display */,
147 Bool
* /* bounding_shaped */,
148 int* /* x_bounding */,
149 int* /* y_bounding */,
150 uint* /* w_bounding */,
151 uint* /* h_bounding */,
152 Bool
* /* clip_shaped */,
159 void XShapeSelectInput (
160 Display
* /* display */,
165 c_ulong
XShapeInputSelected (
166 Display
* /* display */,
170 XRectangle
*XShapeGetRectangles (
171 Display
* /* display */,