XDisplayCells() XDisplayCells()
Name
XDisplayCells, DisplayCells - query number of cells in default colormap of screen.
Synopsis
int XDisplayCells(display, screen_number)
Display *display;
int screen_number;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
screen_number
Specifies the appropriate screen number on the host server.
Returns
The number of colorcells in a colormap.
Description
XDisplayCells() returns the number of entries in the default colormap of the specified screen.
The C language macro DisplayCells() is equivalent and slightly more efficient.
This function is misnamed; it should really be XScreenCells().
See Also
XDisplayPlanes(), XDefaultColormap*().
Xlib - Macro Equivalents XDisplayCells()