perl/Test-Simple: update to 1.302205
[oi-userland.git] / components / x11 / sun-ext-protos / files / include / transovlstr.h
blobb62d0624cb85d4f7cc9d7868908ea70bca21d501
1 /* Copyright (c) 1993, 1999, Oracle and/or its affiliates. All rights reserved.
3 * Permission is hereby granted, free of charge, to any person obtaining a
4 * copy of this software and associated documentation files (the "Software"),
5 * to deal in the Software without restriction, including without limitation
6 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
7 * and/or sell copies of the Software, and to permit persons to whom the
8 * Software is furnished to do so, subject to the following conditions:
10 * The above copyright notice and this permission notice (including the next
11 * paragraph) shall be included in all copies or substantial portions of the
12 * 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
17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE.
21 */
24 #ifndef _TRANSOVLSTR_H_
25 #define _TRANSOVLSTR_H_
27 #include "transovl.h"
30 B U G : 4173223
32 These items should be 32 bit type.
34 We must redefine the following types in terms
35 of Xmd.h's types, which may include bit fields.
36 All of these are #undef'd at the end of this file,
37 restoring the definitions in X.h.
40 #define Window CARD32
41 #define Drawable CARD32
42 #define Font CARD32
43 #define Pixmap CARD32
44 #define Cursor CARD32
45 #define Colormap CARD32
46 #define GContext CARD32
47 #define Atom CARD32
48 #define VisualID CARD32
49 #define Time CARD32
50 #define KeyCode CARD8
51 #define KeySym CARD32
54 #define OVLNAME "SUN_OVL"
55 #define OVL_MAJOR_VERSION 1 /* current version numbers */
56 #define OVL_MINOR_VERSION 0
58 typedef struct {
59 CARD8 reqType; /* always OvlReqCode */
60 CARD8 ovlReqType; /* always X_OvlQueryVersion */
61 CARD16 length B16;
62 } xOvlQueryVersionReq;
63 #define sz_xOvlQueryVersionReq 4
65 typedef struct {
66 BYTE type; /* X_Reply */
67 CARD8 unused;
68 CARD16 sequenceNumber B16;
69 CARD32 length B32;
70 CARD16 majorVersion B16;
71 CARD16 minorVersion B16;
72 CARD32 pad0 B32;
73 CARD32 pad1 B32;
74 CARD32 pad2 B32;
75 CARD32 pad3 B32;
76 CARD32 pad4 B32;
77 } xOvlQueryVersionReply;
78 #define sz_xOvlQueryVersionReply 32
80 typedef struct {
81 CARD8 reqType; /* always OvlReqCode */
82 CARD8 ovlReqType; /* always X_OvlGetPartners */
83 CARD16 length B16;
84 CARD32 screen B32;
85 } xOvlGetPartnersReq;
86 #define sz_xOvlGetPartnersReq 8
88 typedef struct {
89 BYTE type; /* X_Reply */
90 BOOL restricted;
91 CARD16 sequenceNumber B16;
92 CARD32 length B32;
93 CARD16 numPairs B16;
94 CARD16 pad0 B16;
95 CARD32 pad1 B32;
96 CARD32 pad2 B32;
97 CARD32 pad3 B32;
98 CARD32 pad4 B32;
99 CARD32 pad5 B32;
100 } xOvlGetPartnersReply;
101 #define sz_xOvlGetPartnersReply 32
103 typedef struct {
104 VisualID overlayVid;
105 VisualID underlayVid;
106 } XOvlVidPair;
108 typedef struct {
109 CARD8 reqType; /* always OvlReqCode */
110 CARD8 ovlReqType; /* always X_OvlGetSharedPixels */
111 CARD16 length B16;
112 CARD32 screen B32;
113 } xOvlGetSharedPixelsReq;
114 #define sz_xOvlGetSharedPixelsReq 8
116 typedef struct {
117 BYTE type; /* X_Reply */
118 CARD8 unused;
119 CARD16 sequenceNumber B16;
120 CARD32 length B32;
121 CARD16 numPGInfos B16;
122 CARD16 pad0 B16;
123 CARD32 pad1 B32;
124 CARD32 pad2 B32;
125 CARD32 pad3 B32;
126 CARD32 pad4 B32;
127 CARD32 pad5 B32;
128 } xOvlGetSharedPixelsReply;
129 #define sz_xOvlGetSharedPixelsReply 32
131 typedef struct {
132 VisualID vid;
133 CARD32 ovplanes;
134 CARD32 unplanes;
135 } XOvlPGInfo;
137 typedef struct {
138 CARD8 reqType; /* always OvlReqCode */
139 CARD8 ovlReqType; /* always X_OvlGetSharedColors */
140 CARD16 length B16;
141 CARD32 screen B32;
142 } xOvlGetSharedColorsReq;
143 #define sz_xOvlGetSharedColorsReq 8
145 typedef struct {
146 BYTE type; /* X_Reply */
147 CARD8 unused;
148 CARD16 sequenceNumber B16;
149 CARD32 length B32;
150 CARD16 numClutInfos B16;
151 CARD16 pad0 B16;
152 CARD32 pad1 B32;
153 CARD32 pad2 B32;
154 CARD32 pad3 B32;
155 CARD32 pad4 B32;
156 CARD32 pad5 B32;
157 } xOvlGetSharedColorsReply;
158 #define sz_xOvlGetSharedColorsReply 32
160 typedef struct {
161 VisualID vid;
162 CARD32 pool;
163 INT32 count;
164 } XOvlClutInfo;
166 #define AllMaskBits (CWBackPixmap|CWBackPixel|CWBorderPixmap|\
167 CWBorderPixel|CWBitGravity|CWWinGravity|\
168 CWBackingStore|CWBackingPlanes|CWBackingPixel|\
169 CWOverrideRedirect|CWSaveUnder|CWEventMask|\
170 CWDontPropagate|CWColormap|CWCursor)
172 typedef struct {
173 CARD8 reqType; /* always OvlReqCode */
174 CARD8 ovlReqType; /* always X_OvlCreateWindow */
175 CARD16 length B16;
176 Window wid B32;
177 Window parent B32;
178 INT16 x B16;
179 INT16 y B16;
180 CARD16 width B16;
181 CARD16 height B16;
182 CARD16 borderWidth B16;
183 INT16 depth B16;
184 CARD32 class B32;
185 VisualID visual B32;
186 CARD32 mask B32;
187 } xOvlCreateWindowReq;
188 #define sz_xOvlCreateWindowReq 36
190 typedef struct {
191 CARD8 reqType; /* always OvlReqCode */
192 CARD8 ovlReqType; /* always X_OvlIsOverlayWindow */
193 CARD16 length B16;
194 Window wid B32;
195 } xOvlIsOverlayWindowReq;
196 #define sz_xOvlIsOverlayWindowReq 8
198 typedef struct {
199 BYTE type; /* X_Reply */
200 BOOL isoverlay;
201 CARD16 sequenceNumber B16;
202 CARD32 length B32;
203 CARD32 pad0 B32;
204 CARD32 pad1 B32;
205 CARD32 pad2 B32;
206 CARD32 pad3 B32;
207 CARD32 pad4 B32;
208 CARD32 pad5 B32;
209 } xOvlIsOverlayWindowReply;
210 #define sz_xOvlIsOverlayWindowReply 32
212 typedef struct {
213 CARD8 reqType; /* always OvlReqCode */
214 CARD8 ovlReqType; /* always X_OvlSetWindowTransparent */
215 CARD16 length B16;
216 Window wid B32;
217 } xOvlSetWindowTransparentReq;
218 #define sz_xOvlSetWindowTransparentReq 8
220 typedef struct {
221 CARD8 reqType; /* always OvlReqCode */
222 CARD8 ovlReqType; /* always X_OvlSetPaintType */
223 CARD16 length B16;
224 GContext gc B32;
225 XSolarisOvlPaintType paintType B32;
226 } xOvlSetPaintTypeReq;
227 #define sz_xOvlSetPaintTypeReq 12
229 typedef struct {
230 CARD8 reqType; /* always OvlReqCode */
231 CARD8 ovlReqType; /* always X_OvlCopyPaintType */
232 CARD16 length B16;
233 Drawable srcDrawable B32;
234 Drawable dstDrawable B32;
235 GContext gc B32;
236 INT16 srcX B16;
237 INT16 srcY B16;
238 INT16 destX B16;
239 INT16 destY B16;
240 CARD16 width B16;
241 CARD16 height B16;
242 CARD32 action_mask B32;
243 CARD32 bitPlane B32;
244 } xOvlCopyPaintTypeReq;
245 #define sz_xOvlCopyPaintTypeReq 36
247 typedef struct {
248 CARD8 reqType; /* always OvlReqCode */
249 CARD8 ovlReqType; /* always X_OvlCopyAreaAndPaintType */
250 CARD16 length B16;
251 Drawable colorSrc B32;
252 Drawable paintTypeSrc B32;
253 Drawable colorDst B32;
254 Drawable paintTypeDst B32;
255 GContext colorGC B32;
256 GContext paintTypeGC B32;
257 INT16 colorSrcX B16;
258 INT16 colorSrcY B16;
259 INT16 paintTypeSrcX B16;
260 INT16 paintTypeSrcY B16;
261 INT16 colorDstX B16;
262 INT16 colorDstY B16;
263 INT16 paintTypeDstX B16;
264 INT16 paintTypeDstY B16;
265 CARD16 width B16;
266 CARD16 height B16;
267 CARD32 action_mask B32;
268 CARD32 bitPlane B32;
269 } xOvlCopyAreaAndPaintTypeReq;
270 #define sz_xOvlCopyAreaAndPaintTypeReq 56
272 #define READSCREEN_BLUEMASK 0x00ff0000
273 #define READSCREEN_GREENMASK 0x0000ff00
274 #define READSCREEN_REDMASK 0x000000ff
276 typedef struct {
277 CARD8 reqType; /* always OvlReqCode */
278 CARD8 ovlReqType; /* always X_OvlReadScreen */
279 CARD16 length B16;
280 Window window B32;
281 INT16 x B16;
282 INT16 y B16;
283 CARD16 width B16;
284 CARD16 height B16;
285 BOOL includeCursor;
286 CARD8 pad[3];
287 } xOvlReadScreenReq;
288 #define sz_xOvlReadScreenReq 20
290 typedef struct {
291 BYTE type; /* X_Reply */
292 CARD8 unused;
293 CARD16 sequenceNumber B16;
294 CARD32 length B32;
295 CARD32 pad0 B32;
296 CARD32 pad1 B32;
297 CARD32 pad2 B32;
298 CARD32 pad3 B32;
299 CARD32 pad4 B32;
300 CARD32 pad5 B32;
301 } xOvlReadScreenReply;
302 #define sz_xOvlReadScreenReply 32
306 B U G : 4173223
308 /* restore these definitions back to the typedefs in X.h */
309 #undef Window
310 #undef Drawable
311 #undef Font
312 #undef Pixmap
313 #undef Cursor
314 #undef Colormap
315 #undef GContext
316 #undef Atom
317 #undef VisualID
318 #undef Time
319 #undef KeyCode
320 #undef KeySym
322 #endif /* _TRANSOVLSTR_H_ */