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 Connection; 35 typedef unsigned short Rotation; 36 typedef unsigned short SizeID; 37 typedef unsigned short SubpixelOrder; 38 39 #define RANDR_NAME "RANDR" 40 #define RANDR_MAJOR 1 41 #define RANDR_MINOR 1 42 43 #define RRNumberErrors 0 44 #define RRNumberEvents 1 45 46 #define X_RRQueryVersion 0 47 /* we skip 1 to make old clients fail pretty immediately */ 48 #define X_RROldGetScreenInfo 1 49 #define X_RR1_0SetScreenConfig 2 50 /* V1.0 apps share the same set screen config request id */ 51 #define X_RRSetScreenConfig 2 52 #define X_RROldScreenChangeSelectInput 3 53 /* 3 used to be ScreenChangeSelectInput; deprecated */ 54 #define X_RRSelectInput 4 55 #define X_RRGetScreenInfo 5 56 57 /* used in XRRSelectInput */ 58 59 #define RRScreenChangeNotifyMask (1L << 0) 60 61 #define RRScreenChangeNotify 0 62 63 /* used in the rotation field; rotation and reflection in 0.1 proto. */ 64 #define RR_Rotate_0 1 65 #define RR_Rotate_90 2 66 #define RR_Rotate_180 4 67 #define RR_Rotate_270 8 68 69 /* new in 1.0 protocol, to allow reflection of screen */ 70 71 #define RR_Reflect_X 16 72 #define RR_Reflect_Y 32 73 74 #define RRSetConfigSuccess 0 75 #define RRSetConfigInvalidConfigTime 1 76 #define RRSetConfigInvalidTime 2 77 #define RRSetConfigFailed 3 78 79 #endif /* _RANDR_H_ */