NAME
XDisplayCells, DisplayCells — query number of cells in default colormap of screen.
SYNOPSIS
int XDisplayCells(display, screen_number)
Display ∗display;
int screen_number;
ARGUMENTS
displaySpecifies 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 Reference Manual