X Version 11 (Release 6.1)

XmuVisualStandardColormaps(X3xmu)


XmuVisualStandardColormaps -- define standard colormap properties for given visual

Synopsis

cc . . . -lXmu

#include <X11/Xmu/StdCmap.h>

Status XmuVisualStandardColormaps(dpy, screen, visualid, depth, replace, retain) Display *dpy; int screen; VisualID visualid; unsigned int depth; Bool replace; Bool retain;

Arguments


dpy
Specifies the connection to the X server.

screen
Specifies the screen of the display.

visualid
Specifies the visual type.

depth
Specifies the visual depth.

replace
Specifies whether or not to replace.

retain
Specifies whether or not to retain.

Description

The XmuVisualStandardColormaps function defines all appropriate standard colormap properties for the given visual.

If replace is True, any previous definition will be removed. If retain is True, If replace is True, If replace is True, If replace is True, new properties will be retained for the duration of the server session. This function returns 0 on failure, non-zero on success. On failure, no new properties will be defined, but old ones may have been removed if replace was True.

Not all standard colormaps are meaningful to all visual classes. This routine will check and define the following properties for the following classes, provided that the size of the colormap is not too small. For DirectColor and PseudoColor the routine checks: RGB_DEFAULT_MAP, RGB_BEST_MAP, RGB_RED_MAP, RGB_GREEN_MAP, RGB_BLUE_MAP, and RGB_GRAY_MAP. For TrueColor and StaticColor the routine checks: RGB_BEST_MAP. For GrayScale and StaticGray, the routine checks: RGB_GRAY_MAP.

References

XmuAllStandardColormaps(X3xmu), XmuLookupStandardColormap(X3xmu), XmuGetColormapAllocation(X3xmu), XmuStandardColormap(X3xmu), XmuCreateColormap(X3xmu), XmuDeleteStandardColormap(X3xmu)
Xlib - C Language X Interface
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004