BlackPixelOfScreen, WhitePixelOfScreen, CellsOfScreen, DefaultColormapOfScreen, DefaultDepthOfScreen, DefaultGCOfScreen, DefaultVisualOfScreen, DoesBackingStore, DoesSaveUnders, DisplayOfScreen, XScreenNumberOfScreen, EventMaskOfScreen, HeightOfScreen, HeightMMOfScreen, MaxCmapsOfScreen, MinCmapsOfScreen, PlanesOfScreen, RootWindowOfScreen, WidthOfScreen, WidthMMOfScreen − screen information functions and macros


unsigned long BlackPixelOfScreen(Screen *screen);

unsigned long WhitePixelOfScreen(Screen *screen);

int CellsOfScreen(Screen *screen);

Colormap DefaultColormapOfScreen(Screen *screen);

int DefaultDepthOfScreen(Screen *screen);

GC DefaultGCOfScreen(Screen *screen);

Visual *DefaultVisualOfScreen(Screen *screen);

int DoesBackingStore(Screen *screen);

Bool DoesSaveUnders(Screen *screen);

Display *DisplayOfScreen(Screen *screen);

int XScreenNumberOfScreen(Screen *screen);

long EventMaskOfScreen(Screen *screen);

int HeightOfScreen(Screen *screen);

int HeightMMOfScreen(Screen *screen);

int MaxCmapsOfScreen(Screen *screen);

int MinCmapsOfScreen(Screen *screen);

int PlanesOfScreen(Screen *screen);

Window RootWindowOfScreen(Screen *screen);

int WidthOfScreen(Screen *screen);

int WidthMMOfScreen(Screen *screen);



Specifies the appropriate Screen structure.


The BlackPixelOfScreen macro returns the black pixel value of the specified screen.

The WhitePixelOfScreen macro returns the white pixel value of the specified screen.

The CellsOfScreen macro returns the number of colormap cells in the default colormap of the specified screen.

The DefaultColormapOfScreen macro returns the default colormap of the specified screen.

The DefaultDepthOfScreen macro returns the default depth of the root window of the specified screen.

The DefaultGCOfScreen macro returns the default GC of the specified screen, which has the same depth as the root window of the screen.

The DefaultVisualOfScreen macro returns the default visual of the specified screen.

The DoesBackingStore macro returns WhenMapped, NotUseful, or Always, which indicate whether the screen supports backing stores.

The DoesSaveUnders macro returns a Boolean value indicating whether the screen supports save unders.

The DisplayOfScreen macro returns the display of the specified screen.

The XScreenNumberOfScreen function returns the screen index number of the specified screen.

The EventMaskOfScreen macro returns the root event mask of the root window for the specified screen at connection setup.

The HeightOfScreen macro returns the height of the specified screen.

The HeightMMOfScreen macro returns the height of the specified screen in millimeters.

The MaxCmapsOfScreen macro returns the maximum number of installed colormaps supported by the specified screen.

The MinCmapsOfScreen macro returns the minimum number of installed colormaps supported by the specified screen.

The PlanesOfScreen macro returns the number of planes in the root window of the specified screen.

The RootWindowOfScreen macro returns the root window of the specified screen.

The WidthOfScreen macro returns the width of the specified screen.

The WidthMMOfScreen macro returns the width of the specified screen in millimeters.


AllPlanes(3), ImageByteOrder(3), IsCursorKey(3)
Xlib − C Language X Interface

More Linux Commands

ifplugd(8) - A link detection daemon for ethernet devices...
ifplugd is a daemon which will automatically configure your ethernet device when a cable is plugged in and automatically unconfigure it if the cable is pulled.

git-p4(1) Import from and submit to Perforce repositories...
This command provides a way to interact with p4 repositories using Git. Create a new Git repository from an existing p4 repository using git p4 clone, giving it

Tk_GetCursor(3) - maintain database of cursors (Man Page)...
These procedures manage a collection of cursors being used by an application. The procedures allow cursors to be re-used efficiently, thereby avoiding server ov

gtk-query-immodules-2.0(1) - Input method module registratio
gtk-query-immodules-2.0 collects information about loadable input method modules for GTK+ and writes it to the default cache file location, or to stdout. If cal

fstatat(2) - get file status relative to a directory file de
These functions return information about a file, in the buffer pointed to by stat. No permissions are required on the file itself, but-in the case of stat(), fs

Tcl_ChannelWatchProc(3) - procedures for creating and manipu
Tcl uses a two-layered channel architecture. It provides a generic upper layer to enable C and Tcl programs to perform input and output using the same APIs for

unregister_app_config_handler(3) - netsnmp_config_api functi
The functions are a fairly extensible system of parsing various configuration files at the run time of an application. The configuration file flow is broken int

endhostent(3) - get network host entry - Linux manual page
The gethostbyname*(), gethostbyaddr*(), herror(), and hstrerror() functions are obsolete. Applications should use getaddrinfo(3), getnameinfo(3), and gai_strerr

Tcl_Seek(3) - buffered I/O facilities using channels........
The Tcl channel mechanism provides a device-independent and platform-independent mechanism for performing buffered input and output operations on a variety of f

XCompositeUnredirectSubwindows(3) - X Composite Extension li
The composite extension provides several related mechanisms: Per-hierarchy storage The rendering of an entire hierarchy of windows is redirected to off-screen s

XIGrabDevice(3) - grab or ungrab the device - Linux man page
XIGrabDevice actively grabs control of the device. Further device events are reported only to the grabbing client. XIGrabDevice overrides any active device grab

add_wchnstr(3ncurses) - add an array of complex characters (
add_wchnstr.3ncurses - These functions copy the (null-terminated) array of complex characters wchstr into the window image structure starting at the current cur

We can't live, work or learn in freedom unless the software we use is free.