Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ GetCmAll.Xmu() — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


 XmuGetColormapAllocation(Xmu)  6 January 1993  XmuGetColormapAllocation(Xmu)
                          X Version 11 (Release 5)


 Name

    XmuGetColormapAllocation - determine best allocation of colors

 Syntax


    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.

    redmax    Returns maximum red value.

    greenmax  Returns maximum green value.

    bluemax   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.

 See also

    XmuAllStandardColormaps(Xmu), XmuVisualStandardColormaps(Xmu),
    XmuLookupStandardColormap(Xmu), XmuStandardColormap(Xmu), XmuCre-
    ateColormap(Xmu), XmuDeleteStandardColormap(Xmu)
    Xlib - C Language X Interface


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026