Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ VisStCm.Xmu.z() — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


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


 Name

    XmuVisualStandardColormaps - define standard colormap properties for
    given visual

 Syntax


    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:  RGBDEFAULTMAP,
    RGBBESTMAP, RGBREDMAP, RGBGREENMAP, RGBBLUEMAP, and RGBGRAYMAP.
    For TrueColor and StaticColor the routine checks:  RGBBESTMAP.  For
    GrayScale and StaticGray, the routine checks:  RGBGRAYMAP.

 See also

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


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