egra: do not record cells outside of the vertical canvas (framebuffer) in agg mini...
[iv.d.git] / x11 / shape.d
blobc847f0d66b882f68d65e909f693d520472110cec
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
9 documentation.
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;
30 import iv.alice;
31 import iv.x11.md;
32 import iv.x11.region;
33 import iv.x11.x11;
34 import iv.x11.xlib;
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
52 enum ShapeSet = 0;
53 enum ShapeUnion = 1;
54 enum ShapeIntersect = 2;
55 enum ShapeSubtract = 3;
56 enum ShapeInvert = 4;
58 enum ShapeBounding = 0;
59 enum ShapeClip = 1;
60 enum ShapeInput = 2;
62 enum ShapeNotifyMask = 1U<<0;
63 enum ShapeNotify = 0;
65 enum ShapeNumberEvents = ShapeNotify+1;
67 struct XShapeEvent {
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 */
75 uint width, height;
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 */,
84 int* /* error_base */
87 Status XShapeQueryVersion (
88 Display* /* display */,
89 int* /* major_version */,
90 int* /* minor_version */
93 void XShapeCombineRegion (
94 Display* /* display */,
95 Window /* dest */,
96 int /* dest_kind */,
97 int /* x_off */,
98 int /* y_off */,
99 XRegion /* region */,
100 int /* op */
103 void XShapeCombineRectangles (
104 Display* /* display */,
105 Window /* dest */,
106 int /* dest_kind */,
107 int /* x_off */,
108 int /* y_off */,
109 XRectangle* /* rectangles */,
110 int /* n_rects */,
111 int /* op */,
112 int /* ordering */
115 void XShapeCombineMask (
116 Display* /* display */,
117 Window /* dest */,
118 int /* dest_kind */,
119 int /* x_off */,
120 int /* y_off */,
121 Pixmap /* src */,
122 int /* op */
125 void XShapeCombineShape (
126 Display* /* display */,
127 Window /* dest */,
128 int /* dest_kind */,
129 int /* x_off */,
130 int /* y_off */,
131 Window /* src */,
132 int /* src_kind */,
133 int /* op */
136 void XShapeOffsetShape (
137 Display* /* display */,
138 Window /* dest */,
139 int /* dest_kind */,
140 int /* x_off */,
141 int /* y_off */
144 Status XShapeQueryExtents (
145 Display* /* display */,
146 Window /* window */,
147 Bool* /* bounding_shaped */,
148 int* /* x_bounding */,
149 int* /* y_bounding */,
150 uint* /* w_bounding */,
151 uint* /* h_bounding */,
152 Bool* /* clip_shaped */,
153 int* /* x_clip */,
154 int* /* y_clip */,
155 uint* /* w_clip */,
156 uint* /* h_clip */
159 void XShapeSelectInput (
160 Display* /* display */,
161 Window /* window */,
162 c_ulong /* mask */
165 c_ulong XShapeInputSelected (
166 Display* /* display */,
167 Window /* window */
170 XRectangle *XShapeGetRectangles (
171 Display* /* display */,
172 Window /* window */,
173 int /* kind */,
174 int* /* count */,
175 int* /* ordering */