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