VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/4.2/include/extensions/randrproto.h@ 17240

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

Additions/x11/x11include: blast! Done it again. Reverted r43561.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.1 KB
Line 
1/*
2 * $XFree86: xc/include/extensions/randrproto.h,v 1.5 2001/08/01 00:44:35 tsi Exp $
3 *
4 * Copyright © 2000 Compaq Computer Corporation
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 Compaq not be used in advertising or
11 * publicity pertaining to distribution of the software without specific,
12 * written prior permission. Compaq makes no representations about the
13 * suitability of this software for any purpose. It is provided "as is"
14 * without express or implied warranty.
15 *
16 * COMPAQ DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
17 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL COMPAQ
18 * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
20 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
21 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
22 *
23 * Author: Jim Gettys, Compaq Computer Corporation, Inc.
24 */
25
26#ifndef _XRANDRP_H_
27#define _XRANDRP_H_
28
29#include <X11/extensions/randr.h>
30
31#define Window CARD32
32#define Drawable CARD32
33#define Font CARD32
34#define Pixmap CARD32
35#define Cursor CARD32
36#define Colormap CARD32
37#define GContext CARD32
38#define Atom CARD32
39#define VisualID CARD32
40#define Time CARD32
41#define KeyCode CARD8
42#define KeySym CARD32
43
44#define Rotation CARD16
45#define VisualGroupID CARD16
46#define GroupOfVisualGroupID CARD16
47#define SizeID CARD16
48
49/*
50 * data structures
51 */
52
53typedef struct {
54 CARD16 widthInPixels B16;
55 CARD16 heightInPixels B16;
56 CARD16 widthInMillimeters B16;
57 CARD16 heightInMillimeters B16;
58 GroupOfVisualGroupID visualGroup B16;
59 CARD16 pad1 B16;
60} xScreenSizes;
61#define sz_xScreenSizes 12
62
63
64
65/*
66 * requests and replies
67 */
68
69typedef struct {
70 CARD8 reqType;
71 CARD8 randrReqType;
72 CARD16 length B16;
73 CARD32 majorVersion B32;
74 CARD32 minorVersion B32;
75} xRRQueryVersionReq;
76#define sz_xRRQueryVersionReq 12
77
78typedef struct {
79 BYTE type; /* X_Reply */
80 BYTE pad1;
81 CARD16 sequenceNumber B16;
82 CARD32 length B32;
83 CARD32 majorVersion B32;
84 CARD32 minorVersion B32;
85 CARD32 pad2 B32;
86 CARD32 pad3 B32;
87 CARD32 pad4 B32;
88 CARD32 pad5 B32;
89} xRRQueryVersionReply;
90#define sz_xRRQueryVersionReply 32
91
92typedef struct {
93 CARD8 reqType;
94 CARD8 randrReqType;
95 CARD16 length B16;
96 Window window B32;
97} xRRGetScreenInfoReq;
98#define sz_xRRGetScreenInfoReq 8
99
100typedef struct {
101 BYTE type; /* X_Reply */
102 BYTE setOfRotations;
103 CARD16 sequenceNumber B16;
104 CARD32 length B32;
105 Window root B32;
106 Time timestamp B32;
107 Time configTimestamp B32;
108 CARD16 nVisualGroups B16;
109 CARD16 nGroupsOfVisualGroups B16;
110 CARD16 nSizes B16;
111 SizeID sizeID B16;
112 VisualGroupID visualGroupID B16;
113 Rotation rotation B16;
114} xRRGetScreenInfoReply;
115#define sz_xRRGetScreenInfoReply 32
116
117typedef struct {
118 CARD8 reqType;
119 CARD8 randrReqType;
120 CARD16 length B16;
121 Drawable drawable B32;
122 Time timestamp B32;
123 Time configTimestamp B32;
124 SizeID sizeID B16;
125 Rotation rotation B16;
126 VisualGroupID visualGroupID B16;
127 CARD16 pad B16;
128} xRRSetScreenConfigReq;
129#define sz_xRRSetScreenConfigReq 24
130
131typedef struct {
132 BYTE type; /* X_Reply */
133 CARD8 status;
134 CARD16 sequenceNumber B16;
135 CARD32 length B32;
136 Time newTimestamp B32;
137 Time newConfigTimestamp B32;
138 Window root;
139 CARD32 pad4 B32;
140 CARD32 pad5 B32;
141 CARD32 pad6 B32;
142} xRRSetScreenConfigReply;
143#define sz_xRRSetScreenConfigReply 32
144
145typedef struct {
146 CARD8 reqType;
147 CARD8 randrReqType;
148 CARD16 length B16;
149 Window window B32;
150 BYTE enable; /* xTrue -> send events */
151 BYTE pad1;
152 CARD16 pad2 B16;
153} xRRScreenChangeSelectInputReq;
154#define sz_xRRScreenChangeSelectInputReq 12
155
156/*
157 * event
158 */
159typedef struct {
160 CARD8 type; /* always evBase + ScreenChangeNotify */
161 CARD8 rotation; /* new rotation */
162 CARD16 sequenceNumber B16;
163 Time timestamp B32; /* time screen was changed */
164 Time configTimestamp B32; /* time config data was changed */
165 Window root B32; /* root window */
166 Window window B32; /* window requesting notification */
167 SizeID sizeID B16; /* new size ID */
168 VisualGroupID visualGroupID B16; /* new visual group ID */
169 CARD16 widthInPixels B16; /* new size */
170 CARD16 heightInPixels B16;
171 CARD16 widthInMillimeters B16;
172 CARD16 heightInMillimeters B16;
173} xRRScreenChangeNotifyEvent;
174#define sz_xRRScreenChangeNotifyEvent 32
175
176#undef Window
177#undef Drawable
178#undef Font
179#undef Pixmap
180#undef Cursor
181#undef Colormap
182#undef GContext
183#undef Atom
184#undef VisualID
185#undef Time
186#undef KeyCode
187#undef KeySym
188#undef Rotation
189#undef VisualGroupID
190#undef GroupOfVisualGroupID
191#undef SizeID
192
193#endif /* _XRANDRP_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