2 * $XFree86: xc/include/extensions/randrproto.h,v 1.6 2002/09/29 23:39:43 keithp Exp $
4 * Copyright © 2000 Compaq Computer Corporation
5 * Copyright © 2002 Hewlett-Packard Company
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 Compaq or HP not be used in advertising
12 * or publicity pertaining to distribution of the software without specific,
13 * written prior permission. Compaq and HP makes no representations about the
14 * suitability of this software for any purpose. It is provided "as is"
15 * without express or implied warranty.
17 * HP DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL COMPAQ
19 * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
20 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
21 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
22 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
24 * Author: Jim Gettys, Hewlett-Packard Company, Inc.
27 /* note that RANDR 1.0 is incompatible with version 0.0, or 0.1 */
28 /* V1.0 removes depth switching from the protocol */
32 #include <X11/extensions/randr.h>
35 #define Drawable CARD32
39 #define Colormap CARD32
40 #define GContext CARD32
46 #define Rotation CARD16
48 #define SubpixelOrder CARD16
55 CARD16 widthInPixels B16
;
56 CARD16 heightInPixels B16
;
57 CARD16 widthInMillimeters B16
;
58 CARD16 heightInMillimeters B16
;
60 #define sz_xScreenSizes 8
63 * requests and replies
70 CARD32 majorVersion B32
;
71 CARD32 minorVersion B32
;
73 #define sz_xRRQueryVersionReq 12
76 BYTE type
; /* X_Reply */
78 CARD16 sequenceNumber B16
;
80 CARD32 majorVersion B32
;
81 CARD32 minorVersion B32
;
86 } xRRQueryVersionReply
;
87 #define sz_xRRQueryVersionReply 32
94 } xRRGetScreenInfoReq
;
95 #define sz_xRRGetScreenInfoReq 8
98 * the xRRScreenInfoReply structure is followed by:
100 * the size information
105 BYTE type
; /* X_Reply */
107 CARD16 sequenceNumber B16
;
111 Time configTimestamp B32
;
114 Rotation rotation B16
;
116 CARD16 nrateEnts B16
;
118 } xRRGetScreenInfoReply
;
119 #define sz_xRRGetScreenInfoReply 32
125 Drawable drawable B32
;
127 Time configTimestamp B32
;
129 Rotation rotation B16
;
130 } xRR1_0SetScreenConfigReq
;
131 #define sz_xRR1_0SetScreenConfigReq 20
137 Drawable drawable B32
;
139 Time configTimestamp B32
;
141 Rotation rotation B16
;
144 } xRRSetScreenConfigReq
;
145 #define sz_xRRSetScreenConfigReq 24
148 BYTE type
; /* X_Reply */
150 CARD16 sequenceNumber B16
;
152 Time newTimestamp B32
;
153 Time newConfigTimestamp B32
;
155 CARD16 subpixelOrder B16
;
159 } xRRSetScreenConfigReply
;
160 #define sz_xRRSetScreenConfigReply 32
170 #define sz_xRRSelectInputReq 12
172 #define sz_xRRSelectInputReq 12
178 CARD8 type
; /* always evBase + ScreenChangeNotify */
179 CARD8 rotation
; /* new rotation */
180 CARD16 sequenceNumber B16
;
181 Time timestamp B32
; /* time screen was changed */
182 Time configTimestamp B32
; /* time config data was changed */
183 Window root B32
; /* root window */
184 Window window B32
; /* window requesting notification */
185 SizeID sizeID B16
; /* new size ID */
186 CARD16 subpixelOrder B16
; /* subpixel order */
187 CARD16 widthInPixels B16
; /* new size */
188 CARD16 heightInPixels B16
;
189 CARD16 widthInMillimeters B16
;
190 CARD16 heightInMillimeters B16
;
191 } xRRScreenChangeNotifyEvent
;
192 #define sz_xRRScreenChangeNotifyEvent 32
209 #endif /* _XRANDRP_H_ */