VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/fixesproto-4.0/X11/extensions/xfixesproto.h@ 71531

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

Additions/x11: more X.Org headers

  • Property svn:eol-style set to native
File size: 12.5 KB
Line 
1/*
2 * $XFree86: xc/include/extensions/xfixesproto.h,v 1.1 2002/11/30 06:21:43 keithp Exp $
3 *
4 * Copyright © 2006 Sun Microsystems
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 Sun Microsystems not be used in
11 * advertising or publicity pertaining to distribution of the software without
12 * specific, written prior permission. Sun Microsystems 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 * SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
17 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
18 * EVENT SHALL SUN MICROSYSTEMS 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 * Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc.
25 *
26 * Permission to use, copy, modify, distribute, and sell this software and its
27 * documentation for any purpose is hereby granted without fee, provided that
28 * the above copyright notice appear in all copies and that both that
29 * copyright notice and this permission notice appear in supporting
30 * documentation, and that the name of Keith Packard not be used in
31 * advertising or publicity pertaining to distribution of the software without
32 * specific, written prior permission. Keith Packard makes no
33 * representations about the suitability of this software for any purpose. It
34 * is provided "as is" without express or implied warranty.
35 *
36 * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
37 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
38 * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
39 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
40 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
41 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
42 * PERFORMANCE OF THIS SOFTWARE.
43 */
44
45#ifndef _XFIXESPROTO_H_
46#define _XFIXESPROTO_H_
47
48#include <X11/Xmd.h>
49#include <X11/extensions/xfixeswire.h>
50#define _SHAPE_SERVER_
51#include <X11/extensions/shape.h>
52#undef _SHAPE_SERVER_
53
54#define Window CARD32
55#define Drawable CARD32
56#define Font CARD32
57#define Pixmap CARD32
58#define Cursor CARD32
59#define Colormap CARD32
60#define GContext CARD32
61#define Atom CARD32
62#define VisualID CARD32
63#define Time CARD32
64#define KeyCode CARD8
65#define KeySym CARD32
66#define Picture CARD32
67
68/*************** Version 1 ******************/
69
70typedef struct {
71 CARD8 reqType;
72 CARD8 xfixesReqType;
73 CARD16 length B16;
74} xXFixesReq;
75
76/*
77 * requests and replies
78 */
79typedef struct {
80 CARD8 reqType;
81 CARD8 xfixesReqType;
82 CARD16 length B16;
83 CARD32 majorVersion B32;
84 CARD32 minorVersion B32;
85} xXFixesQueryVersionReq;
86
87#define sz_xXFixesQueryVersionReq 12
88
89typedef struct {
90 BYTE type; /* X_Reply */
91 BYTE pad1;
92 CARD16 sequenceNumber B16;
93 CARD32 length B32;
94 CARD32 majorVersion B32;
95 CARD32 minorVersion B32;
96 CARD32 pad2 B32;
97 CARD32 pad3 B32;
98 CARD32 pad4 B32;
99 CARD32 pad5 B32;
100} xXFixesQueryVersionReply;
101
102#define sz_xXFixesQueryVersionReply 32
103
104typedef struct {
105 CARD8 reqType;
106 CARD8 xfixesReqType;
107 CARD16 length B16;
108 BYTE mode; /* SetModeInsert/SetModeDelete*/
109 BYTE target; /* SaveSetNearest/SaveSetRoot*/
110 BYTE map; /* SaveSetMap/SaveSetUnmap */
111 BYTE pad1;
112 Window window;
113} xXFixesChangeSaveSetReq;
114
115#define sz_xXFixesChangeSaveSetReq 12
116
117typedef struct {
118 CARD8 reqType;
119 CARD8 xfixesReqType;
120 CARD16 length B16;
121 Window window B32;
122 Atom selection B32;
123 CARD32 eventMask B32;
124} xXFixesSelectSelectionInputReq;
125
126#define sz_xXFixesSelectSelectionInputReq 16
127
128typedef struct {
129 CARD8 type;
130 CARD8 subtype;
131 CARD16 sequenceNumber B16;
132 Window window B32;
133 Window owner B32;
134 Atom selection B32;
135 Time timestamp B32;
136 Time selectionTimestamp B32;
137 CARD32 pad2 B32;
138 CARD32 pad3 B32;
139} xXFixesSelectionNotifyEvent;
140
141typedef struct {
142 CARD8 reqType;
143 CARD8 xfixesReqType;
144 CARD16 length B16;
145 Window window B32;
146 CARD32 eventMask B32;
147} xXFixesSelectCursorInputReq;
148
149#define sz_xXFixesSelectCursorInputReq 12
150
151typedef struct {
152 CARD8 type;
153 CARD8 subtype;
154 CARD16 sequenceNumber B16;
155 Window window B32;
156 CARD32 cursorSerial B32;
157 Time timestamp;
158 Atom name B32; /* Version 2 */
159 CARD32 pad1 B32;
160 CARD32 pad2 B32;
161 CARD32 pad3 B32;
162} xXFixesCursorNotifyEvent;
163
164typedef struct {
165 CARD8 reqType;
166 CARD8 xfixesReqType;
167 CARD16 length B16;
168} xXFixesGetCursorImageReq;
169
170#define sz_xXFixesGetCursorImageReq 4
171
172typedef struct {
173 BYTE type; /* X_Reply */
174 BYTE pad1;
175 CARD16 sequenceNumber B16;
176 CARD32 length B32;
177 INT16 x B16;
178 INT16 y B16;
179 CARD16 width B16;
180 CARD16 height B16;
181 CARD16 xhot B16;
182 CARD16 yhot B16;
183 CARD32 cursorSerial B32;
184 CARD32 pad2 B32;
185 CARD32 pad3 B32;
186} xXFixesGetCursorImageReply;
187
188#define sz_xXFixesGetCursorImageReply 32
189
190/*************** Version 2 ******************/
191
192#define Region CARD32
193
194typedef struct {
195 CARD8 reqType;
196 CARD8 xfixesReqType;
197 CARD16 length B16;
198 Region region B32;
199 /* LISTofRECTANGLE */
200} xXFixesCreateRegionReq;
201
202#define sz_xXFixesCreateRegionReq 8
203
204typedef struct {
205 CARD8 reqType;
206 CARD8 xfixesReqType;
207 CARD16 length B16;
208 Region region B32;
209 Pixmap bitmap B32;
210} xXFixesCreateRegionFromBitmapReq;
211
212#define sz_xXFixesCreateRegionFromBitmapReq 12
213
214typedef struct {
215 CARD8 reqType;
216 CARD8 xfixesReqType;
217 CARD16 length B16;
218 Region region B32;
219 Window window B32;
220 CARD8 kind;
221 CARD8 pad1;
222 CARD16 pad2 B16;
223} xXFixesCreateRegionFromWindowReq;
224
225#define sz_xXFixesCreateRegionFromWindowReq 16
226
227typedef struct {
228 CARD8 reqType;
229 CARD8 xfixesReqType;
230 CARD16 length B16;
231 Region region B32;
232 GContext gc B32;
233} xXFixesCreateRegionFromGCReq;
234
235#define sz_xXFixesCreateRegionFromGCReq 12
236
237typedef struct {
238 CARD8 reqType;
239 CARD8 xfixesReqType;
240 CARD16 length B16;
241 Region region B32;
242 Picture picture B32;
243} xXFixesCreateRegionFromPictureReq;
244
245#define sz_xXFixesCreateRegionFromPictureReq 12
246
247typedef struct {
248 CARD8 reqType;
249 CARD8 xfixesReqType;
250 CARD16 length B16;
251 Region region B32;
252} xXFixesDestroyRegionReq;
253
254#define sz_xXFixesDestroyRegionReq 8
255
256typedef struct {
257 CARD8 reqType;
258 CARD8 xfixesReqType;
259 CARD16 length B16;
260 Region region B32;
261 /* LISTofRECTANGLE */
262} xXFixesSetRegionReq;
263
264#define sz_xXFixesSetRegionReq 8
265
266typedef struct {
267 CARD8 reqType;
268 CARD8 xfixesReqType;
269 CARD16 length B16;
270 Region source B32;
271 Region destination B32;
272} xXFixesCopyRegionReq;
273
274#define sz_xXFixesCopyRegionReq 12
275
276typedef struct {
277 CARD8 reqType;
278 CARD8 xfixesReqType;
279 CARD16 length B16;
280 Region source1 B32;
281 Region source2 B32;
282 Region destination B32;
283} xXFixesCombineRegionReq,
284 xXFixesUnionRegionReq,
285 xXFixesIntersectRegionReq,
286 xXFixesSubtractRegionReq;
287
288#define sz_xXFixesCombineRegionReq 16
289#define sz_xXFixesUnionRegionReq sz_xXFixesCombineRegionReq
290#define sz_xXFixesIntersectRegionReq sz_xXFixesCombineRegionReq
291#define sz_xXFixesSubtractRegionReq sz_xXFixesCombineRegionReq
292
293typedef struct {
294 CARD8 reqType;
295 CARD8 xfixesReqType;
296 CARD16 length B16;
297 Region source B32;
298 INT16 x B16, y B16;
299 CARD16 width B16, height B16;
300 Region destination B32;
301} xXFixesInvertRegionReq;
302
303#define sz_xXFixesInvertRegionReq 20
304
305typedef struct {
306 CARD8 reqType;
307 CARD8 xfixesReqType;
308 CARD16 length B16;
309 Region region B32;
310 INT16 dx B16, dy B16;
311} xXFixesTranslateRegionReq;
312
313#define sz_xXFixesTranslateRegionReq 12
314
315typedef struct {
316 CARD8 reqType;
317 CARD8 xfixesReqType;
318 CARD16 length B16;
319 Region source B32;
320 Region destination B32;
321} xXFixesRegionExtentsReq;
322
323#define sz_xXFixesRegionExtentsReq 12
324
325typedef struct {
326 CARD8 reqType;
327 CARD8 xfixesReqType;
328 CARD16 length B16;
329 Region region B32;
330} xXFixesFetchRegionReq;
331
332#define sz_xXFixesFetchRegionReq 8
333
334typedef struct {
335 BYTE type; /* X_Reply */
336 BYTE pad1;
337 CARD16 sequenceNumber B16;
338 CARD32 length B32;
339 INT16 x B16, y B16;
340 CARD16 width B16, height B16;
341 CARD32 pad2 B32;
342 CARD32 pad3 B32;
343 CARD32 pad4 B32;
344 CARD32 pad5 B32;
345} xXFixesFetchRegionReply;
346
347#define sz_xXFixesFetchRegionReply 32
348
349typedef struct {
350 CARD8 reqType;
351 CARD8 xfixesReqType;
352 CARD16 length B16;
353 GContext gc B32;
354 Region region B32;
355 INT16 xOrigin B16, yOrigin B16;
356} xXFixesSetGCClipRegionReq;
357
358#define sz_xXFixesSetGCClipRegionReq 16
359
360typedef struct {
361 CARD8 reqType;
362 CARD8 xfixesReqType;
363 CARD16 length B16;
364 Window dest;
365 BYTE destKind;
366 CARD8 pad1;
367 CARD16 pad2 B16;
368 INT16 xOff B16, yOff B16;
369 Region region;
370} xXFixesSetWindowShapeRegionReq;
371
372#define sz_xXFixesSetWindowShapeRegionReq 20
373
374typedef struct {
375 CARD8 reqType;
376 CARD8 xfixesReqType;
377 CARD16 length B16;
378 Picture picture B32;
379 Region region B32;
380 INT16 xOrigin B16, yOrigin B16;
381} xXFixesSetPictureClipRegionReq;
382
383#define sz_xXFixesSetPictureClipRegionReq 16
384
385typedef struct {
386 CARD8 reqType;
387 CARD8 xfixesReqType;
388 CARD16 length B16;
389 Cursor cursor B32;
390 CARD16 nbytes B16;
391 CARD16 pad B16;
392} xXFixesSetCursorNameReq;
393
394#define sz_xXFixesSetCursorNameReq 12
395
396typedef struct {
397 CARD8 reqType;
398 CARD8 xfixesReqType;
399 CARD16 length B16;
400 Cursor cursor B32;
401} xXFixesGetCursorNameReq;
402
403#define sz_xXFixesGetCursorNameReq 8
404
405typedef struct {
406 BYTE type; /* X_Reply */
407 BYTE pad1;
408 CARD16 sequenceNumber B16;
409 CARD32 length B32;
410 Atom atom B32;
411 CARD16 nbytes B16;
412 CARD16 pad2 B16;
413 CARD32 pad3 B32;
414 CARD32 pad4 B32;
415 CARD32 pad5 B32;
416 CARD32 pad6 B32;
417} xXFixesGetCursorNameReply;
418
419#define sz_xXFixesGetCursorNameReply 32
420
421typedef struct {
422 CARD8 reqType;
423 CARD8 xfixesReqType;
424 CARD16 length B16;
425} xXFixesGetCursorImageAndNameReq;
426
427#define sz_xXFixesGetCursorImageAndNameReq 4
428
429typedef struct {
430 BYTE type; /* X_Reply */
431 BYTE pad1;
432 CARD16 sequenceNumber B16;
433 CARD32 length B32;
434 INT16 x B16;
435 INT16 y B16;
436 CARD16 width B16;
437 CARD16 height B16;
438 CARD16 xhot B16;
439 CARD16 yhot B16;
440 CARD32 cursorSerial B32;
441 Atom cursorName B32;
442 CARD16 nbytes B16;
443 CARD16 pad B16;
444} xXFixesGetCursorImageAndNameReply;
445
446#define sz_xXFixesGetCursorImageAndNameReply 32
447
448typedef struct {
449 CARD8 reqType;
450 CARD8 xfixesReqType;
451 CARD16 length B16;
452 Cursor source B32;
453 Cursor destination B32;
454} xXFixesChangeCursorReq;
455
456#define sz_xXFixesChangeCursorReq 12
457
458typedef struct {
459 CARD8 reqType;
460 CARD8 xfixesReqType;
461 CARD16 length B16;
462 Cursor source B32;
463 CARD16 nbytes;
464 CARD16 pad;
465} xXFixesChangeCursorByNameReq;
466
467#define sz_xXFixesChangeCursorByNameReq 12
468
469/*************** Version 3 ******************/
470
471typedef struct {
472 CARD8 reqType;
473 CARD8 xfixesReqType;
474 CARD16 length B16;
475 Region source B32;
476 Region destination B32;
477 CARD16 left B16;
478 CARD16 right B16;
479 CARD16 top B16;
480 CARD16 bottom B16;
481} xXFixesExpandRegionReq;
482
483#define sz_xXFixesExpandRegionReq 20
484
485/*************** Version 4.0 ******************/
486
487typedef struct {
488 CARD8 reqType;
489 CARD8 xfixesReqType;
490 CARD16 length B16;
491 Window window B32;
492} xXFixesHideCursorReq;
493
494#define sz_xXFixesHideCursorReq sizeof(xXFixesHideCursorReq)
495
496typedef struct {
497 CARD8 reqType;
498 CARD8 xfixesReqType;
499 CARD16 length B16;
500 Window window B32;
501} xXFixesShowCursorReq;
502
503#define sz_xXFixesShowCursorReq sizeof(xXFixesShowCursorReq)
504
505#undef Region
506#undef Picture
507#undef Window
508#undef Drawable
509#undef Font
510#undef Pixmap
511#undef Cursor
512#undef Colormap
513#undef GContext
514#undef Atom
515#undef VisualID
516#undef Time
517#undef KeyCode
518#undef KeySym
519
520#endif /* _XFIXESPROTO_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