• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* $XFree86: xc/include/extensions/Xinerama.h,v 3.2 2000/03/01 01:04:20 dawes Exp $ */
2 
3 #ifndef _Xinerama_h
4 #define _Xinerama_h
5 
6 #include "SDL_name.h"
7 
8 typedef struct {
9    int   screen_number;
10    short x_org;
11    short y_org;
12    short width;
13    short height;
14 } SDL_NAME(XineramaScreenInfo);
15 
16 Bool SDL_NAME(XineramaQueryExtension) (
17    Display *dpy,
18    int     *event_base,
19    int     *error_base
20 );
21 
22 Status SDL_NAME(XineramaQueryVersion)(
23    Display *dpy,
24    int     *major,
25    int     *minor
26 );
27 
28 Bool SDL_NAME(XineramaIsActive)(Display *dpy);
29 
30 
31 /*
32    Returns the number of heads and a pointer to an array of
33    structures describing the position and size of the individual
34    heads.  Returns NULL and number = 0 if Xinerama is not active.
35 
36    Returned array should be freed with XFree().
37 */
38 
39 SDL_NAME(XineramaScreenInfo) *
40 SDL_NAME(XineramaQueryScreens)(
41    Display *dpy,
42    int     *number
43 );
44 
45 #endif /* _Xinerama_h */
46 
47