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