2 * $XFree86: xc/include/extensions/randr.h,v 1.4 2001/11/24 07:24:58 keithp Exp $
4 * Copyright © 2000, Compaq Computer Corporation,
5 * Copyright © 2002, Hewlett Packard, Inc.
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. 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 HP
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, HP Labs, Hewlett-Packard, Inc.
30 typedef unsigned short Rotation
;
31 typedef unsigned short SizeID
;
32 typedef unsigned short SubpixelOrder
;
34 #define RANDR_NAME "RANDR"
38 #define RRNumberErrors 0
39 #define RRNumberEvents 1
41 #define X_RRQueryVersion 0
42 /* we skip 1 to make old clients fail pretty immediately */
43 #define X_RROldGetScreenInfo 1
44 #define X_RR1_0SetScreenConfig 2
45 /* V1.0 apps share the same set screen config request id */
46 #define X_RRSetScreenConfig 2
47 #define X_RROldScreenChangeSelectInput 3
48 /* 3 used to be ScreenChangeSelectInput; deprecated */
49 #define X_RRSelectInput 4
50 #define X_RRGetScreenInfo 5
52 /* used in XRRSelectInput */
54 #define RRScreenChangeNotifyMask (1L << 0)
56 #define RRScreenChangeNotify 0
58 /* used in the rotation field; rotation and reflection in 0.1 proto. */
60 #define RR_Rotate_90 2
61 #define RR_Rotate_180 4
62 #define RR_Rotate_270 8
64 /* new in 1.0 protocol, to allow reflection of screen */
66 #define RR_Reflect_X 16
67 #define RR_Reflect_Y 32
69 #define RRSetConfigSuccess 0
70 #define RRSetConfigInvalidConfigTime 1
71 #define RRSetConfigInvalidTime 2
72 #define RRSetConfigFailed 3
74 #endif /* _RANDR_H_ */