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