Path: blob/master/thirdparty/linuxbsd_headers/X11/extensions/Xinerama.h
9905 views
/*12Copyright 2003 The Open Group34Permission to use, copy, modify, distribute, and sell this software and its5documentation for any purpose is hereby granted without fee, provided that6the above copyright notice appear in all copies and that both that7copyright notice and this permission notice appear in supporting8documentation.910The above copyright notice and this permission notice shall be included in11all copies or substantial portions of the Software.1213THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR14IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,15FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE16OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN17AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN18CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.1920Except as contained in this notice, the name of The Open Group shall not be21used in advertising or otherwise to promote the sale, use or other dealings22in this Software without prior written authorization from The Open Group.2324*/2526#ifndef _Xinerama_h27#define _Xinerama_h2829#include <X11/Xlib.h>3031typedef struct {32int screen_number;33short x_org;34short y_org;35short width;36short height;37} XineramaScreenInfo;3839_XFUNCPROTOBEGIN4041Bool XineramaQueryExtension (42Display *dpy,43int *event_base,44int *error_base45);4647Status XineramaQueryVersion(48Display *dpy,49int *major_versionp,50int *minor_versionp51);5253Bool XineramaIsActive(Display *dpy);545556/*57Returns the number of heads and a pointer to an array of58structures describing the position and size of the individual59heads. Returns NULL and number = 0 if Xinerama is not active.6061Returned array should be freed with XFree().62*/6364XineramaScreenInfo *65XineramaQueryScreens(66Display *dpy,67int *number68);6970_XFUNCPROTOEND7172#endif /* _Xinerama_h */73747576