2
* $XFree86: xc/lib/Xrandr/Xrandrint.h,v 1.4 2002/10/14 18:01:40 keithp Exp $
5
* Copyright � 2000, Compaq Computer Corporation,
6
* Copyright � 2002, Hewlett Packard, Inc.
8
* Permission to use, copy, modify, distribute, and sell this software and its
9
* documentation for any purpose is hereby granted without fee, provided that
10
* the above copyright notice appear in all copies and that both that
11
* copyright notice and this permission notice appear in supporting
12
* documentation, and that the name of Compaq or HP not be used in advertising
13
* or publicity pertaining to distribution of the software without specific,
14
* written prior permission. HP makes no representations about the
15
* suitability of this software for any purpose. It is provided "as is"
16
* without express or implied warranty.
18
* HP DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
19
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL HP
20
* BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
21
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
22
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
23
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
25
* Author: Jim Gettys, HP Labs, Hewlett-Packard, Inc.
33
#include <X11/Xlibint.h>
34
#include <X11/Xutil.h>
35
#include "Xext.h" /* in ../include */
36
#include "extutil.h" /* in ../include */
39
#include "randrproto.h"
41
extern XExtensionInfo XrandrExtensionInfo;
42
extern char XrandrExtensionName[];
44
#define RRCheckExtension(dpy,i,val) \
45
XextCheckExtension (dpy, i, XRRExtensionName, val)
46
#define RRSimpleCheckExtension(dpy,i) \
47
XextSimpleCheckExtension (dpy, i, XRRExtensionName)
49
XExtDisplayInfo *XRRFindDisplay (Display *dpy);
52
/* deliberately opaque internal data structure; can be extended,
54
struct _XRRScreenConfiguration {
55
Screen *screen; /* the root window in GetScreenInfo */
58
Rotation current_rotation;
63
Time config_timestamp;
64
int subpixel_order; /* introduced in randr v0.1 */
65
short *rates; /* introduced in randr v1.1 */
70
* if a configure notify on the root is recieved, or
71
* an XRRScreenChangeNotify is recieved,
72
* XRRUpdateConfiguration should be called to update the X library's
73
* view of the screen configuration; it will also invalidate the cache
74
* provided by XRRScreenConfig and XRRConfig, and force a round trip
75
* when next used. Returns invalid status if not an event type
76
* the library routine understand.
79
/* we cache one screen configuration/screen */
81
typedef struct _XRandRInfo {
82
XRRScreenConfiguration **config;
83
int major_version, minor_version; /* major_version = -1 means we don't know */
84
Bool has_rates; /* Server supports refresh rates */
87
#endif /* _XRANDRINT_H_ */