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
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.
24 #ifndef _TRANSOVLSTR_H_
25 #define _TRANSOVLSTR_H_
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.
41 #define Drawable CARD32
45 #define Colormap CARD32
46 #define GContext CARD32
48 #define VisualID CARD32
54 #define OVLNAME "SUN_OVL"
55 #define OVL_MAJOR_VERSION 1 /* current version numbers */
56 #define OVL_MINOR_VERSION 0
59 CARD8 reqType
; /* always OvlReqCode */
60 CARD8 ovlReqType
; /* always X_OvlQueryVersion */
62 } xOvlQueryVersionReq
;
63 #define sz_xOvlQueryVersionReq 4
66 BYTE type
; /* X_Reply */
68 CARD16 sequenceNumber B16
;
70 CARD16 majorVersion B16
;
71 CARD16 minorVersion B16
;
77 } xOvlQueryVersionReply
;
78 #define sz_xOvlQueryVersionReply 32
81 CARD8 reqType
; /* always OvlReqCode */
82 CARD8 ovlReqType
; /* always X_OvlGetPartners */
86 #define sz_xOvlGetPartnersReq 8
89 BYTE type
; /* X_Reply */
91 CARD16 sequenceNumber B16
;
100 } xOvlGetPartnersReply
;
101 #define sz_xOvlGetPartnersReply 32
105 VisualID underlayVid
;
109 CARD8 reqType
; /* always OvlReqCode */
110 CARD8 ovlReqType
; /* always X_OvlGetSharedPixels */
113 } xOvlGetSharedPixelsReq
;
114 #define sz_xOvlGetSharedPixelsReq 8
117 BYTE type
; /* X_Reply */
119 CARD16 sequenceNumber B16
;
121 CARD16 numPGInfos B16
;
128 } xOvlGetSharedPixelsReply
;
129 #define sz_xOvlGetSharedPixelsReply 32
138 CARD8 reqType
; /* always OvlReqCode */
139 CARD8 ovlReqType
; /* always X_OvlGetSharedColors */
142 } xOvlGetSharedColorsReq
;
143 #define sz_xOvlGetSharedColorsReq 8
146 BYTE type
; /* X_Reply */
148 CARD16 sequenceNumber B16
;
150 CARD16 numClutInfos B16
;
157 } xOvlGetSharedColorsReply
;
158 #define sz_xOvlGetSharedColorsReply 32
166 #define AllMaskBits (CWBackPixmap|CWBackPixel|CWBorderPixmap|\
167 CWBorderPixel|CWBitGravity|CWWinGravity|\
168 CWBackingStore|CWBackingPlanes|CWBackingPixel|\
169 CWOverrideRedirect|CWSaveUnder|CWEventMask|\
170 CWDontPropagate|CWColormap|CWCursor)
173 CARD8 reqType
; /* always OvlReqCode */
174 CARD8 ovlReqType
; /* always X_OvlCreateWindow */
182 CARD16 borderWidth B16
;
187 } xOvlCreateWindowReq
;
188 #define sz_xOvlCreateWindowReq 36
191 CARD8 reqType
; /* always OvlReqCode */
192 CARD8 ovlReqType
; /* always X_OvlIsOverlayWindow */
195 } xOvlIsOverlayWindowReq
;
196 #define sz_xOvlIsOverlayWindowReq 8
199 BYTE type
; /* X_Reply */
201 CARD16 sequenceNumber B16
;
209 } xOvlIsOverlayWindowReply
;
210 #define sz_xOvlIsOverlayWindowReply 32
213 CARD8 reqType
; /* always OvlReqCode */
214 CARD8 ovlReqType
; /* always X_OvlSetWindowTransparent */
217 } xOvlSetWindowTransparentReq
;
218 #define sz_xOvlSetWindowTransparentReq 8
221 CARD8 reqType
; /* always OvlReqCode */
222 CARD8 ovlReqType
; /* always X_OvlSetPaintType */
225 XSolarisOvlPaintType paintType B32
;
226 } xOvlSetPaintTypeReq
;
227 #define sz_xOvlSetPaintTypeReq 12
230 CARD8 reqType
; /* always OvlReqCode */
231 CARD8 ovlReqType
; /* always X_OvlCopyPaintType */
233 Drawable srcDrawable B32
;
234 Drawable dstDrawable B32
;
242 CARD32 action_mask B32
;
244 } xOvlCopyPaintTypeReq
;
245 #define sz_xOvlCopyPaintTypeReq 36
248 CARD8 reqType
; /* always OvlReqCode */
249 CARD8 ovlReqType
; /* always X_OvlCopyAreaAndPaintType */
251 Drawable colorSrc B32
;
252 Drawable paintTypeSrc B32
;
253 Drawable colorDst B32
;
254 Drawable paintTypeDst B32
;
255 GContext colorGC B32
;
256 GContext paintTypeGC B32
;
259 INT16 paintTypeSrcX B16
;
260 INT16 paintTypeSrcY B16
;
263 INT16 paintTypeDstX B16
;
264 INT16 paintTypeDstY B16
;
267 CARD32 action_mask B32
;
269 } xOvlCopyAreaAndPaintTypeReq
;
270 #define sz_xOvlCopyAreaAndPaintTypeReq 56
272 #define READSCREEN_BLUEMASK 0x00ff0000
273 #define READSCREEN_GREENMASK 0x0000ff00
274 #define READSCREEN_REDMASK 0x000000ff
277 CARD8 reqType
; /* always OvlReqCode */
278 CARD8 ovlReqType
; /* always X_OvlReadScreen */
288 #define sz_xOvlReadScreenReq 20
291 BYTE type
; /* X_Reply */
293 CARD16 sequenceNumber B16
;
301 } xOvlReadScreenReply
;
302 #define sz_xOvlReadScreenReply 32
308 /* restore these definitions back to the typedefs in X.h */
322 #endif /* _TRANSOVLSTR_H_ */