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

user-dirs.conf(5) configuration for xdguserdirsupdate ......
The /etc/xdg/user-dirs.conf file is a text file that controls the behavior of the xdg-user-dirs-update command. Users can have their own ~/.config/user-dirs.con

gtnameserv-4.6(1) - Naming service - Linux manual page......
To be written ... OPTIONS -ORBInitialPort PORT Port on which naming service is to be started. -ior FILE File in which to store naming services IOR reference. St

getprotobyname(3) - get protocol entry - Linux manual page
The getprotoent() function reads the next entry from the protocols database (see protocols(5)) and returns a protoent structure containing the broken-out fields

cfmakeraw(3) - get and set terminal attributes, line control
The termios functions describe a general terminal interface that is provided to control asynchronous communications ports. The termios structure Many of the fun

gnutls_openpgp_privkey_export_subkey_rsa_raw.3 - This function will export the RSA private keys parameters found in the given structure. The new parameters will

clock_settime(2) - clock and time functions - Linux man page
The function clock_getres() finds the resolution (precision) of the specified clock clk_id, and, if res is non-NULL, stores it in the struct timespec pointed to

gitattributes(5) - defining attributes per path (Man Page)
A gitattributes file is a simple text file that gives attributes to pathnames. Each line in gitattributes file is of form: pattern attr1 attr2 ... That is, a pa

cbreak_sp(3ncurses) - curses screen-pointer extension.......
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th

FileCache(3pm) - keep more files open than the system permit
The cacheout function will make sure that theres a filehandle open for reading or writing available as the pathname you give it. It automatically closes and re-

XtProcessLock(3) - lock and unlock process - Linux man page
XtProcessLock is used to lock all process global data. XtProcessUnlock unlocks the process. SEE ALSO X Toolkit Intrinsics - C Language Interface Xlib - C Langua

mkinitrd(5) - description of modular scripts layout.........
mkinitrd creates initial ramdisk images for booting Linux. It is designed to be modular, so that functionality required by other programs can be maintained in s

Tcl_PkgProvide(3) - package version control - Linux man page
These procedures provide C-level interfaces to Tcls package and version management facilities. Tcl_PkgRequire is equivalent to the package require command, Tcl_

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