XInstallColormap(3X) — X Version 11
NAME
XInstallColormap, XUninstallColormap, XListInstalledColormaps − install colormaps
SYNTAX
XInstallColormap(display, cmap)
Display ∗display;
Colormap cmap;
XUninstallColormap(display, cmap)
Display ∗display;
Colormap cmap;
Colormap ∗XListInstalledColormaps(display, w, num_return)
Display ∗display;
Window w;
int ∗num_return;
ARGUMENTS
cmapSpecifies the color map ID.
displaySpecifies the connection to the X server.
num_returnReturns the list of currently installed color maps.
wSpecifies the window ID.
DESCRIPTION
The XInstallColormap function installs the specified color map for its associated screen. .PN XInstallColormap can generate a BadColor error.
The XUninstallColormap function removes the specified color map from the required list for its screen. .PN XUninstallColormap can generate a BadColor error.
The XListInstalledColormaps function returns a list of the currently installed color maps for the screen of the specified window. .PN XListInstalledColormaps can generate a BadWindow error.
DIAGNOSTICS
BadColor A value for a Colormap argument does not name a defined Colormap.
BadWindow A value for a Window argument does not name a defined Window.
SEE ALSO
Xlib − C Language X Interface
1 March 1988