XScreen()XScreen()Name
XScreenCount, XScreenNumberOfScreen, XScreenOfDisplay, ScreenCount,
ScreenNumberOfScreen, ScreenOfDisplay – get screen information.
Synopsis
int XScreenCount(display)
Display *display;
int XScreenNumberOfScreen(screen)
Screen *screen;
Screen *XScreenOfDisplay(display, screen_number)
Display *display;
int screen_number;
Arguments
display Specifies a connection to an X server; returned from
XOpenDisplay().
screen Specifies the appropriate Screen structure.
screen_number
Specifies the appropriate screen number on the host server.
Returns
The number of screens, a screen number, or a Screen structure.
DescriptionXScreenCount() returns the number of screens on the specified display.
XScreenNumberOfScreen() returns a screen number given a pointer to a
Screen structure. XScreenOfDisplay() returns pointer to a Screen
structure given the screen number. XScreenNumberOfScreen() and
XScreenOfDisplay() are opposites.
The C language macros ScreenCount(), ScreenNumberOfScreen(), and
ScreenOfDisplay() are equivalent and slightly more efficient.
See AlsoXDefaultScreenOfDisplay(), XDefaultScreen*().
Xlib - Macro Equivalents XScreen()