XmuCreateColormap(Xmu) X Version 11 (Release 5) XmuCreateColormap(Xmu)
6 January 1993
Name
XmuCreateColormap - create colormap
Syntax
cc . . . -lXmu
#include <X11/Xmu/StdCmap.h>
Status XmuCreateColormap(dpy, colormap)
Display *dpy;
XStandardColormap *colormap;
Arguments
dpy Specifies the connection under which the map is created.
colormap Specifies the map to be created.
Description
Resources created by this function are not made permanent; that is the
caller's responsibility.
To create any one colormap that is described by an XStandardColormap
structure, use XmuCreateColormap.
This function returns 0 on failure, and non-zero on success. The
base_pixel of the colormap is set on success. Resources created by this
function are not made permanent. No argument error checking is provided;
use at your own risk.
All colormaps are created with read-only allocations, with the exception
of read-only allocations of colors failing to return the expected pixel
value, and these are individually defined as read/write allocations.
This is done so that all the cells defined in the colormap are contiguous
for use in image processing. This typically happens with White and Black
in the default map.
Colormaps of static visuals are considered to be successfully created if
the map of the static visual matches the definition given in the standard
colormap structure.
See also
XmuAllStandardColormaps(Xmu), XmuVisualStandardColormaps(Xmu),
XmuLookupStandardColormap(Xmu), XmuGetColormapAllocation(Xmu),
XmuStandardColormap(Xmu), XmuDeleteStandardColormap(Xmu)
Xlib - C Language X Interface