1/*
2
3Copyright 2003 The Open Group
4
5Permission to use, copy, modify, distribute, and sell this software and its
6documentation for any purpose is hereby granted without fee, provided that
7the above copyright notice appear in all copies and that both that
8copyright notice and this permission notice appear in supporting
9documentation.
10
11The above copyright notice and this permission notice shall be included in
12all copies or substantial portions of the Software.
13
14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
21Except as contained in this notice, the name of The Open Group shall not be
22used in advertising or otherwise to promote the sale, use or other dealings
23in this Software without prior written authorization from The Open Group.
24
25*/
26
27#ifndef _Xinerama_h
28#define _Xinerama_h
29
30#include <X11/Xlib.h>
31
32typedef struct {
33 int screen_number;
34 short x_org;
35 short y_org;
36 short width;
37 short height;
38} XineramaScreenInfo;
39
40_XFUNCPROTOBEGIN
41
42Bool XineramaQueryExtension (
43 Display *dpy,
44 int *event_base,
45 int *error_base
46);
47
48Status XineramaQueryVersion(
49 Display *dpy,
50 int *major_versionp,
51 int *minor_versionp
52);
53
54Bool XineramaIsActive(Display *dpy);
55
56
57/*
58 Returns the number of heads and a pointer to an array of
59 structures describing the position and size of the individual
60 heads. Returns NULL and number = 0 if Xinerama is not active.
61
62 Returned array should be freed with XFree().
63*/
64
65XineramaScreenInfo *
66XineramaQueryScreens(
67 Display *dpy,
68 int *number
69);
70
71_XFUNCPROTOEND
72
73#endif /* _Xinerama_h */
74
75

source code of include/X11/extensions/Xinerama.h