Xinerama - API for Xinerama extension to X11 Protocol
Bool XineramaQueryExtension (Display *dpy, int *event_basep, int *error_basep); Status XineramaQueryVersion (Display *dpy, int *major_versionp, int *minor_versionp); Bool XineramaIsActive (Display *dpy); XineramaScreenInfo * XineramaQueryScreens (Display *dpy, int *number);
The XineramaQueryExtension function queries the Xserver to determine the availability of the Xinerama Extension. If the extension is available, the return value is True, and event_base and error_base are set to the base event number and base error number for the extension, respectively. Otherwise, the return value is False, and the values of event_base and error_base are undefined.
The XineramaQueryVersion function returns the version of the Xinerama extension implemented by the Xserver. The version is returned in major_versionp and minor_versionp. The major version will be incremented for protocol incompatible changes, and the minor version will be incremented for small, upwardly compatible changes.
If the Xinerama library is compatible with the version returned by the server, it returns nonzero. If the server does not support the XINERAMA extension, or if there was an error during communications with the server, or if the server and library protocol versions are incompatible, it returns zero.
The XineramaActive function returns a Boolean operator used to determine if Xinerama is activated on the screen. Returns True for active and False for not active.
The XineramaQueryScreens() function returns info about each individual output device within the Xinerama Screen. The integer pointed to by the number argument is updated to the number of output devices listed in the returned array of XineramaScreenInfo structures. XineramaQueryScreens() returns NULL and sets number to 0 if Xinerama is not active.
The pointer returned should be released with XFree(3) when no longer needed.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |