VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/1.4/X11/extensions/randr.h@ 6202

Last change on this file since 6202 was 6202, checked in by vboxsync, 17 years ago

re-export x11

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