X FUNCTIONS XCUP(3xext)
NAME
XcupGetReservedColormapEntries - list colormap entries
reserved by the systemSYNOPSIS
cc [ flag... ] file... -lXext [ library... ]
cc [ flag ... ] file ... -lXext [ library ... ]
#include
Status XcupGetReservedColormapEntries(Display *display,
int screen, XColor **colors_out, int *ncolors);
ARGUMENTS display Specifies the connection to the X server. screen Screen number on the host server.colors_out
Returns the values reserved by the server.ncolors Returns the number of items in colors_out.
DESCRIPTION
The XcupGetReservedColormapEntries function returns a list
of colormap entries (pixels) that are reserved by the sys-
tem. This list will, at a minimum, contain entries for the BlackPixel and WhitePixel of the specified screen. Use XFreeto free colors_out.
To minimize colormap flash, an application which installs its own private colormap should query the special colors by calling XCupGetReservedColormapEntries, and can then storethose entries (in the proper location) in its private color-
map using XCupStoreColors.SEE ALSO
XcupQueryVersion(3Xext), XcupStoreColors(3Xext), XFree(3X11), Colormap Utilization Policy and ExtensionATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes: X Version 11 Last change: libXext 1.1.2 1 X FUNCTIONS XCUP(3xext)____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Availability | x11/library/libxext ||_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | See XInitThreads(3X11) |
|_____________________________|_____________________________|
X Version 11 Last change: libXext 1.1.2 2