VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/compositeproto-0.4/X11/extensions/compositeproto.h@ 17574

Last change on this file since 17574 was 17574, checked in by vboxsync, 16 years ago

Additions/x11: more X.Org headers

  • Property svn:eol-style set to native
File size: 5.5 KB
Line 
1/*
2 * $Id: compositeproto.h,v 1.4 2004/07/08 07:20:55 keithp Exp $
3 *
4 *
5 * Copyright © 2006 Sun Microsystems
6 *
7 * Permission to use, copy, modify, distribute, and sell this software and its
8 * documentation for any purpose is hereby granted without fee, provided that
9 * the above copyright notice appear in all copies and that both that
10 * copyright notice and this permission notice appear in supporting
11 * documentation, and that the name of Sun Microsystems not be used in
12 * advertising or publicity pertaining to distribution of the software without
13 * specific, written prior permission. Sun Microsystems makes no
14 * representations about the suitability of this software for any purpose. It
15 * is provided "as is" without express or implied warranty.
16 *
17 * SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
18 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
19 * EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
20 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
21 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
22 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23 * PERFORMANCE OF THIS SOFTWARE.
24 *
25 * Copyright © 2003 Keith Packard
26 *
27 * Permission to use, copy, modify, distribute, and sell this software and its
28 * documentation for any purpose is hereby granted without fee, provided that
29 * the above copyright notice appear in all copies and that both that
30 * copyright notice and this permission notice appear in supporting
31 * documentation, and that the name of Keith Packard not be used in
32 * advertising or publicity pertaining to distribution of the software without
33 * specific, written prior permission. Keith Packard makes no
34 * representations about the suitability of this software for any purpose. It
35 * is provided "as is" without express or implied warranty.
36 *
37 * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
38 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
39 * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
40 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
41 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
42 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
43 * PERFORMANCE OF THIS SOFTWARE.
44 */
45
46#ifndef _COMPOSITEPROTO_H_
47#define _COMPOSITEPROTO_H_
48
49#include <X11/Xmd.h>
50#include <X11/extensions/composite.h>
51
52#define Window CARD32
53#define Region CARD32
54
55/*
56 * requests and replies
57 */
58typedef struct {
59 CARD8 reqType;
60 CARD8 compositeReqType;
61 CARD16 length B16;
62 CARD32 majorVersion B32;
63 CARD32 minorVersion B32;
64} xCompositeQueryVersionReq;
65
66#define sz_xCompositeQueryVersionReq 12
67
68typedef struct {
69 BYTE type; /* X_Reply */
70 BYTE pad1;
71 CARD16 sequenceNumber B16;
72 CARD32 length B32;
73 CARD32 majorVersion B32;
74 CARD32 minorVersion B32;
75 CARD32 pad2 B32;
76 CARD32 pad3 B32;
77 CARD32 pad4 B32;
78 CARD32 pad5 B32;
79} xCompositeQueryVersionReply;
80
81#define sz_xCompositeQueryVersionReply 32
82
83typedef struct {
84 CARD8 reqType;
85 CARD8 compositeReqType;
86 CARD16 length B16;
87 Window window B32;
88 CARD8 update;
89 CARD8 pad1;
90 CARD16 pad2 B16;
91} xCompositeRedirectWindowReq;
92
93#define sz_xCompositeRedirectWindowReq 12
94
95typedef struct {
96 CARD8 reqType;
97 CARD8 compositeReqType;
98 CARD16 length B16;
99 Window window B32;
100 CARD8 update;
101 CARD8 pad1;
102 CARD16 pad2 B16;
103} xCompositeRedirectSubwindowsReq;
104
105#define sz_xCompositeRedirectSubwindowsReq 12
106
107typedef struct {
108 CARD8 reqType;
109 CARD8 compositeReqType;
110 CARD16 length B16;
111 Window window B32;
112 CARD8 update;
113 CARD8 pad1;
114 CARD16 pad2 B16;
115} xCompositeUnredirectWindowReq;
116
117#define sz_xCompositeUnredirectWindowReq 12
118
119typedef struct {
120 CARD8 reqType;
121 CARD8 compositeReqType;
122 CARD16 length B16;
123 Window window B32;
124 CARD8 update;
125 CARD8 pad1;
126 CARD16 pad2 B16;
127} xCompositeUnredirectSubwindowsReq;
128
129#define sz_xCompositeUnredirectSubwindowsReq 12
130
131typedef struct {
132 CARD8 reqType;
133 CARD8 compositeReqType;
134 CARD16 length B16;
135 Region region B32;
136 Window window B32;
137} xCompositeCreateRegionFromBorderClipReq;
138
139#define sz_xCompositeCreateRegionFromBorderClipReq 12
140
141/* Version 0.2 additions */
142
143typedef struct {
144 CARD8 reqType;
145 CARD8 compositeReqType;
146 CARD16 length;
147 Window window B32;
148 Pixmap pixmap B32;
149} xCompositeNameWindowPixmapReq;
150
151#define sz_xCompositeNameWindowPixmapReq 12
152
153/* Version 0.3 additions */
154
155typedef struct {
156 CARD8 reqType;
157 CARD8 compositeReqType;
158 CARD16 length B16;
159 Window window B32;
160} xCompositeGetOverlayWindowReq;
161
162#define sz_xCompositeGetOverlayWindowReq sizeof(xCompositeGetOverlayWindowReq)
163
164typedef struct {
165 BYTE type; /* X_Reply */
166 BYTE pad1;
167 CARD16 sequenceNumber B16;
168 CARD32 length B32;
169 Window overlayWin B32;
170 CARD32 pad2 B32;
171 CARD32 pad3 B32;
172 CARD32 pad4 B32;
173 CARD32 pad5 B32;
174 CARD32 pad6 B32;
175} xCompositeGetOverlayWindowReply;
176
177#define sz_xCompositeGetOverlayWindowReply sizeof(xCompositeGetOverlayWindowReply)
178
179typedef struct {
180 CARD8 reqType;
181 CARD8 compositeReqType;
182 CARD16 length B16;
183 Window window B32;
184} xCompositeReleaseOverlayWindowReq;
185
186#define sz_xCompositeReleaseOverlayWindowReq sizeof(xCompositeReleaseOverlayWindowReq)
187
188#undef Window
189#undef Region
190
191#endif /* _COMPOSITEPROTO_H_ */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette