diff options
author | jhartmann <jhartmann> | 2000-03-15 21:31:47 +0000 |
---|---|---|
committer | jhartmann <jhartmann> | 2000-03-15 21:31:47 +0000 |
commit | b364dd93deb30fdb578c6a62163e3c746982e735 (patch) | |
tree | 3559d94cc455efd57c53e9be3a5c75efb158cc6e /xc/include | |
parent | 167cb0024a04d1d6be3a7af54319c25af2e9afbc (diff) |
Initial revision
Diffstat (limited to 'xc/include')
-rw-r--r-- | xc/include/extensions/Xinerama.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/xc/include/extensions/Xinerama.h b/xc/include/extensions/Xinerama.h new file mode 100644 index 000000000..c0b369f57 --- /dev/null +++ b/xc/include/extensions/Xinerama.h @@ -0,0 +1,44 @@ +/* $XFree86: xc/include/extensions/Xinerama.h,v 3.2 2000/03/01 01:04:20 dawes Exp $ */ + +#ifndef _Xinerama_h +#define _Xinerama_h + +typedef struct { + int screen_number; + short x_org; + short y_org; + short width; + short height; +} XineramaScreenInfo; + +Bool XineramaQueryExtension ( + Display *dpy, + int *event_base, + int *error_base +); + +Status XineramaQueryVersion( + Display *dpy, + int *major, + int *minor +); + +Bool XineramaIsActive(Display *dpy); + + +/* + Returns the number of heads and a pointer to an array of + structures describing the position and size of the individual + heads. Returns NULL and number = 0 if Xinerama is not active. + + Returned array should be freed with XFree(). +*/ + +XineramaScreenInfo * +XineramaQueryScreens( + Display *dpy, + int *number +); + +#endif /* _Xinerama_h */ + |