xref: /aoo41x/main/x11_extensions/inc/randr.h (revision cdf0e10c)
1*cdf0e10cSrcweir /*
2*cdf0e10cSrcweir  * $XFree86: xc/include/extensions/randr.h,v 1.4 2001/11/24 07:24:58 keithp Exp $
3*cdf0e10cSrcweir  *
4*cdf0e10cSrcweir  * Copyright © 2000, Compaq Computer Corporation,
5*cdf0e10cSrcweir  * Copyright © 2002, Hewlett Packard, Inc.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * Permission to use, copy, modify, distribute, and sell this software and its
8*cdf0e10cSrcweir  * documentation for any purpose is hereby granted without fee, provided that
9*cdf0e10cSrcweir  * the above copyright notice appear in all copies and that both that
10*cdf0e10cSrcweir  * copyright notice and this permission notice appear in supporting
11*cdf0e10cSrcweir  * documentation, and that the name of Compaq or HP not be used in advertising
12*cdf0e10cSrcweir  * or publicity pertaining to distribution of the software without specific,
13*cdf0e10cSrcweir  * written prior permission.  HP makes no representations about the
14*cdf0e10cSrcweir  * suitability of this software for any purpose.  It is provided "as is"
15*cdf0e10cSrcweir  * without express or implied warranty.
16*cdf0e10cSrcweir  *
17*cdf0e10cSrcweir  * HP DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
18*cdf0e10cSrcweir  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL HP
19*cdf0e10cSrcweir  * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
20*cdf0e10cSrcweir  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
21*cdf0e10cSrcweir  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
22*cdf0e10cSrcweir  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23*cdf0e10cSrcweir  *
24*cdf0e10cSrcweir  * Author:  Jim Gettys, HP Labs, Hewlett-Packard, Inc.
25*cdf0e10cSrcweir  */
26*cdf0e10cSrcweir 
27*cdf0e10cSrcweir #ifndef _RANDR_H_
28*cdf0e10cSrcweir #define _RANDR_H_
29*cdf0e10cSrcweir 
30*cdf0e10cSrcweir typedef unsigned short	Rotation;
31*cdf0e10cSrcweir typedef unsigned short	SizeID;
32*cdf0e10cSrcweir typedef unsigned short	SubpixelOrder;
33*cdf0e10cSrcweir 
34*cdf0e10cSrcweir #define RANDR_NAME		"RANDR"
35*cdf0e10cSrcweir #define RANDR_MAJOR		1
36*cdf0e10cSrcweir #define RANDR_MINOR		1
37*cdf0e10cSrcweir 
38*cdf0e10cSrcweir #define RRNumberErrors		0
39*cdf0e10cSrcweir #define RRNumberEvents		1
40*cdf0e10cSrcweir 
41*cdf0e10cSrcweir #define X_RRQueryVersion	0
42*cdf0e10cSrcweir /* we skip 1 to make old clients fail pretty immediately */
43*cdf0e10cSrcweir #define X_RROldGetScreenInfo	1
44*cdf0e10cSrcweir #define X_RR1_0SetScreenConfig	2
45*cdf0e10cSrcweir /* V1.0 apps share the same set screen config request id */
46*cdf0e10cSrcweir #define X_RRSetScreenConfig	2
47*cdf0e10cSrcweir #define X_RROldScreenChangeSelectInput	3
48*cdf0e10cSrcweir /* 3 used to be ScreenChangeSelectInput; deprecated */
49*cdf0e10cSrcweir #define X_RRSelectInput		4
50*cdf0e10cSrcweir #define X_RRGetScreenInfo	5
51*cdf0e10cSrcweir 
52*cdf0e10cSrcweir /* used in XRRSelectInput */
53*cdf0e10cSrcweir 
54*cdf0e10cSrcweir #define RRScreenChangeNotifyMask  (1L << 0)
55*cdf0e10cSrcweir 
56*cdf0e10cSrcweir #define RRScreenChangeNotify	0
57*cdf0e10cSrcweir 
58*cdf0e10cSrcweir /* used in the rotation field; rotation and reflection in 0.1 proto. */
59*cdf0e10cSrcweir #define RR_Rotate_0		1
60*cdf0e10cSrcweir #define RR_Rotate_90		2
61*cdf0e10cSrcweir #define RR_Rotate_180		4
62*cdf0e10cSrcweir #define RR_Rotate_270		8
63*cdf0e10cSrcweir 
64*cdf0e10cSrcweir /* new in 1.0 protocol, to allow reflection of screen */
65*cdf0e10cSrcweir 
66*cdf0e10cSrcweir #define RR_Reflect_X		16
67*cdf0e10cSrcweir #define RR_Reflect_Y		32
68*cdf0e10cSrcweir 
69*cdf0e10cSrcweir #define RRSetConfigSuccess		0
70*cdf0e10cSrcweir #define RRSetConfigInvalidConfigTime	1
71*cdf0e10cSrcweir #define RRSetConfigInvalidTime		2
72*cdf0e10cSrcweir #define RRSetConfigFailed		3
73*cdf0e10cSrcweir 
74*cdf0e10cSrcweir #endif	/* _RANDR_H_ */
75