1XINERAMA(3)                Library Functions Manual                XINERAMA(3)
2
3
4

NAME

6       Xinerama - API for Xinerama extension to X11 Protocol
7

SYNOPSIS

9       #include <X11/extensions/Xinerama.h>
10
11       Bool XineramaQueryExtension (Display *dpy,
12            int *event_basep, int *error_basep);
13
14       Status XineramaQueryVersion (Display *dpy,
15            int *major_versionp,
16            int *minor_versionp);
17
18       Bool XineramaIsActive (Display *dpy);
19
20       XineramaScreenInfo * XineramaQueryScreens (Display *dpy,
21            int *number);
22

ARGUMENTS

24       display   Specifies the connection to the X server.
25
26       event_basep
27                 Specifies  the  return  location  for the assigned base event
28                 code
29
30       error_basep
31                 Specifies the return location for  the  assigned  base  error
32                 code
33
34       major_versionp
35                 Returns the major version supported by the server
36
37       minor_versionp
38                 Returns the minor version supported by the server
39
40       number    Returns the number of entries in the returned XineramaScreen‐
41                 Info array.
42

DESCRIPTION

44       Xinerama is a simple library designed to interface the Xinerama  Exten‐
45       sion for retrieving information about physical output devices which may
46       be combined into a single logical X screen.
47
48

FUNCTIONS

50   XineramaQueryExtension()
51       The XineramaQueryExtension function queries the  Xserver  to  determine
52       the  availability of the Xinerama Extension. If the extension is avail‐
53       able, the return value is True, and event_base and error_base  are  set
54       to  the  base  event  number  and  base error number for the extension,
55       respectively. Otherwise, the return value is False, and the  values  of
56       event_base and error_base are undefined.
57
58
59
60   XineramaQueryVersion()
61       The  XineramaQueryVersion  function returns the version of the Xinerama
62       extension implemented by  the  Xserver.  The  version  is  returned  in
63       major_versionp  and  minor_versionp.  The  major version will be incre‐
64       mented for protocol incompatible changes, and the minor version will be
65       incremented for small, upwardly compatible changes.
66
67       If  the Xinerama library is compatible with the version returned by the
68       server, it returns nonzero. If the server does not support the XINERAMA
69       extension,  or  if  there  was  an error during communications with the
70       server, or if the server and library protocol versions  are  incompati‐
71       ble, it returns zero.
72
73
74
75   XineramaIsActive()
76       The  XineramaActive  function returns a Boolean operator used to deter‐
77       mine if Xinerama is activated on the screen. Returns  True  for  active
78       and False for not active.
79
80
81
82   XineramaQueryScreens()
83       The  XineramaQueryScreens() function returns info about each individual
84       output device within the Xinerama Screen.  The integer  pointed  to  by
85       the  number  argument is updated to the number of output devices listed
86       in the returned array of XineramaScreenInfo  structures.   XineramaQue‐
87       ryScreens()  returns  NULL  and  sets  number  to  0 if Xinerama is not
88       active.
89
90       The pointer returned should be released with XFree(3)  when  no  longer
91       needed.
92
93
94

NOTE

96       The  original  API provided for interacting with the XINERAMA extension
97       used function names beginning with XPanoramiX.   That API is now depre‐
98       cated and this API should be used instead in new software.
99
100
101
102
103
104
105X Version 11                   libXinerama 1.0.2                   XINERAMA(3)
Impressum