XSetStandardColormap() XSetStandardColormap()
Name
XSetStandardColormap - change the standard colormap property.
Synopsis
void XSetStandardColormap(display, w, cmap_info, property)
Display *display;
Window w;
XStandardColormap *cmap_info;
Atom property;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
w Specifies the ID of the window with which this colormap will be associated.
cmap_info
Specifies the filled colormap information structure.
property
Specifies the standard colormap property to set. The predefined standard colormaps are: XA_RGB_BEST_MAP, XA_RGB_RED_MAP,
XA_RGB_GREEN_ MAP, XA_RGB_BLUE_MAP, XA_RGB_DEFAULT_MAP, and XA_RGB_ GRAY_MAP.
Description
XSetStandardColormap() has been superseded by XSetRGBColormap as of Release 4.
XSetStandardColormap() defines a standard colormap property.
See description of standard colormaps in Volume One, Chapter 7, Color.
Errors
BadAlloc
BadAtom
BadDrawable
BadWindow
Structures
typedef struct {
Colormap colormap; /* ID of colormap made by XCreateColormap */
unsigned long red_max;
unsigned long red_mult;
unsigned long green_max;
unsigned long green_mult;
unsigned long blue_max;
unsigned long blue_mult;
unsigned long base_pixel;
Visual ID visualid;
XID killid;
} XStandardColormap; /* new fields in R4 */
See Also
XDefaultColormap(), XDisplayCells(), XCopyColormapAndFree(), XCreateColormap(), XFreeColormap(), XGetStandardColormap(), XInstallCol-
ormap(), XListInstalledColormaps(), XSetWindowColormap(), XUninstallColormap().
Xlib - Colormaps XSetStandardColormap()