XListInstalledColormaps

Syntax

Colormap *XListInstalledColormaps(display, w, num_return)
      Display *display;
      Window w;
      int *num_return;

Arguments

display Specifies the connection to the X server.
w Specifies the window that determines the screen.
num_return Returns the number of currently installed colormaps.

Description

The XListInstalledColormaps() function returns a list of the currently installed colormaps for the screen of the specified window. The order of the colormaps in the list is not significant and is no explicit indication of the required list. When the allocated list is no longer needed, free it by using XFree().

XListInstalledColormaps() can generate a BadWindow error.

Diagnostics

BadWindow A value for a Window argument does not name a defined Window.

See also

XChangeWindowAttributes(), XCreateColormap(), XCreateWindow(), XFree(), XInstallColormap(), XUninstallColormap(), "Managing Installed Colormaps"
Christophe Tronche, [email protected]