Debian Codegraph @

nx-X11/include/extensions/compositeproto.h

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