VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/7.0/X11/extensions/Xinerama.h@ 17234

Last change on this file since 17234 was 17234, checked in by vboxsync, 16 years ago

Additions/x11/x11include: blast! Corrected svn:keywords property on all files as per http://linserv.germany/vbox/wiki/SvnKeywords

  • Property svn:eol-style set to native
File size: 2.1 KB
Line 
1/* $XdotOrg: xc/include/extensions/Xinerama.h,v 1.2 2004/04/23 18:43:06 eich Exp $ */
2/*
3
4Copyright 2003 The Open Group
5
6Permission to use, copy, modify, distribute, and sell this software and its
7documentation for any purpose is hereby granted without fee, provided that
8the above copyright notice appear in all copies and that both that
9copyright notice and this permission notice appear in supporting
10documentation.
11
12The above copyright notice and this permission notice shall be included in
13all copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
22Except as contained in this notice, the name of The Open Group shall not be
23used in advertising or otherwise to promote the sale, use or other dealings
24in 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
34typedef 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
44Bool XineramaQueryExtension (
45 Display *dpy,
46 int *event_base,
47 int *error_base
48);
49
50Status XineramaQueryVersion(
51 Display *dpy,
52 int *major_versionp,
53 int *minor_versionp
54);
55
56Bool 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
67XineramaScreenInfo *
68XineramaQueryScreens(
69 Display *dpy,
70 int *number
71);
72
73_XFUNCPROTOEND
74
75#endif /* _Xinerama_h */
76
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette