VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/randrproto-1.3.0/X11/extensions/randr.h@ 47412

Last change on this file since 47412 was 22662, checked in by vboxsync, 15 years ago

export more X11 stuff to OSE

  • Property svn:eol-style set to native
File size: 5.3 KB
Line 
1/*
2 * Copyright © 2000 Compaq Computer Corporation
3 * Copyright © 2002 Hewlett Packard Company
4 * Copyright © 2006 Intel Corporation
5 * Copyright © 2008 Red Hat, Inc.
6 *
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 copyright
10 * notice and this permission notice appear in supporting documentation, and
11 * that the name of the copyright holders not be used in advertising or
12 * publicity pertaining to distribution of the software without specific,
13 * written prior permission. The copyright holders make no representations
14 * about the suitability of this software for any purpose. It is provided "as
15 * is" without express or implied warranty.
16 *
17 * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
18 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
19 * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
20 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
21 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
22 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
23 * OF THIS SOFTWARE.
24 *
25 * Author: Jim Gettys, HP Labs, Hewlett-Packard, Inc.
26 * Keith Packard, Intel Corporation
27 */
28
29#ifndef _RANDR_H_
30#define _RANDR_H_
31
32typedef unsigned short Rotation;
33typedef unsigned short SizeID;
34typedef unsigned short SubpixelOrder;
35typedef unsigned short Connection;
36typedef unsigned short XRandrRotation;
37typedef unsigned short XRandrSizeID;
38typedef unsigned short XRandrSubpixelOrder;
39typedef unsigned long XRandrModeFlags;
40
41#define RANDR_NAME "RANDR"
42#define RANDR_MAJOR 1
43#define RANDR_MINOR 3
44
45#define RRNumberErrors 3
46#define RRNumberEvents 2
47#define RRNumberRequests 32
48
49#define X_RRQueryVersion 0
50/* we skip 1 to make old clients fail pretty immediately */
51#define X_RROldGetScreenInfo 1
52#define X_RR1_0SetScreenConfig 2
53/* V1.0 apps share the same set screen config request id */
54#define X_RRSetScreenConfig 2
55#define X_RROldScreenChangeSelectInput 3
56/* 3 used to be ScreenChangeSelectInput; deprecated */
57#define X_RRSelectInput 4
58#define X_RRGetScreenInfo 5
59
60/* V1.2 additions */
61#define X_RRGetScreenSizeRange 6
62#define X_RRSetScreenSize 7
63#define X_RRGetScreenResources 8
64#define X_RRGetOutputInfo 9
65#define X_RRListOutputProperties 10
66#define X_RRQueryOutputProperty 11
67#define X_RRConfigureOutputProperty 12
68#define X_RRChangeOutputProperty 13
69#define X_RRDeleteOutputProperty 14
70#define X_RRGetOutputProperty 15
71#define X_RRCreateMode 16
72#define X_RRDestroyMode 17
73#define X_RRAddOutputMode 18
74#define X_RRDeleteOutputMode 19
75#define X_RRGetCrtcInfo 20
76#define X_RRSetCrtcConfig 21
77#define X_RRGetCrtcGammaSize 22
78#define X_RRGetCrtcGamma 23
79#define X_RRSetCrtcGamma 24
80
81/* V1.3 additions */
82#define X_RRGetScreenResourcesCurrent 25
83#define X_RRSetCrtcTransform 26
84#define X_RRGetCrtcTransform 27
85#define X_RRGetPanning 28
86#define X_RRSetPanning 29
87#define X_RRSetOutputPrimary 30
88#define X_RRGetOutputPrimary 31
89
90#define RRTransformUnit (1L << 0)
91#define RRTransformScaleUp (1L << 1)
92#define RRTransformScaleDown (1L << 2)
93#define RRTransformProjective (1L << 3)
94
95/* Event selection bits */
96#define RRScreenChangeNotifyMask (1L << 0)
97/* V1.2 additions */
98#define RRCrtcChangeNotifyMask (1L << 1)
99#define RROutputChangeNotifyMask (1L << 2)
100#define RROutputPropertyNotifyMask (1L << 3)
101
102/* Event codes */
103#define RRScreenChangeNotify 0
104/* V1.2 additions */
105#define RRNotify 1
106/* RRNotify Subcodes */
107#define RRNotify_CrtcChange 0
108#define RRNotify_OutputChange 1
109#define RRNotify_OutputProperty 2
110
111/* used in the rotation field; rotation and reflection in 0.1 proto. */
112#define RR_Rotate_0 1
113#define RR_Rotate_90 2
114#define RR_Rotate_180 4
115#define RR_Rotate_270 8
116
117/* new in 1.0 protocol, to allow reflection of screen */
118
119#define RR_Reflect_X 16
120#define RR_Reflect_Y 32
121
122#define RRSetConfigSuccess 0
123#define RRSetConfigInvalidConfigTime 1
124#define RRSetConfigInvalidTime 2
125#define RRSetConfigFailed 3
126
127/* new in 1.2 protocol */
128
129#define RR_HSyncPositive 0x00000001
130#define RR_HSyncNegative 0x00000002
131#define RR_VSyncPositive 0x00000004
132#define RR_VSyncNegative 0x00000008
133#define RR_Interlace 0x00000010
134#define RR_DoubleScan 0x00000020
135#define RR_CSync 0x00000040
136#define RR_CSyncPositive 0x00000080
137#define RR_CSyncNegative 0x00000100
138#define RR_HSkewPresent 0x00000200
139#define RR_BCast 0x00000400
140#define RR_PixelMultiplex 0x00000800
141#define RR_DoubleClock 0x00001000
142#define RR_ClockDivideBy2 0x00002000
143
144#define RR_Connected 0
145#define RR_Disconnected 1
146#define RR_UnknownConnection 2
147
148#define BadRROutput 0
149#define BadRRCrtc 1
150#define BadRRMode 2
151
152/* Conventional RandR output properties */
153
154#define RR_PROPERTY_RANDR_EDID "EDID"
155#define RR_PROPERTY_SIGNAL_FORMAT "SignalFormat"
156#define RR_PROPERTY_SIGNAL_PROPERTIES "SignalProperties"
157#define RR_PROPERTY_CONNECTOR_TYPE "ConnectorType"
158#define RR_PROPERTY_CONNECTOR_NUMBER "ConnectorNumber"
159#define RR_PROPERTY_COMPATIBILITY_LIST "CompatibilityList"
160#define RR_PROPERTY_CLONE_LIST "CloneList"
161
162#endif /* _RANDR_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