XmuGetColormapAllocation(X3xmu) X Version 11 (Release 6.1)
XmuGetColormapAllocation --
determine best allocation of colors
Synopsis
cc . . . -lXmu
#include <X11/Xmu/StdCmap.h>
Status XmuGetColormapAllocation(vinfo, property, red_max,
green_max, blue_max)
XVisualInfo *vinfo;
Atom property;
unsigned long *red_max, *green_max, *blue_max;
Arguments
- vinfo
-
Specifies visual information for a chosen visual.
- property
-
Specifies one of the standard colormap property names.
- red_max
-
Returns maximum red value.
- green_max
-
Returns maximum green value.
- blue_max
-
Returns maximum blue value.
Description
To determine the best allocation of reds, greens, and blues in a standard
colormap, use
XmuGetColormapAllocation.
XmuGetColormapAllocation
returns 0 on failure, non-zero on success. It is
assumed that the visual is appropriate for the colormap property.
References
XmuAllStandardColormaps(X3xmu),
XmuVisualStandardColormaps(X3xmu),
XmuLookupStandardColormap(X3xmu),
XmuStandardColormap(X3xmu),
XmuCreateColormap(X3xmu),
XmuDeleteStandardColormap(X3xmu)
Xlib - C Language X Interface
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.