Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XSetStandaA(3x) — HP-UX 9.10

Media Vault

Software Library

Restoration Projects

Artifacts Sought

 

NAME

XSetStandardColormap − change the standard colormap property. 

Synopsis

void XSetStandardColormap(display, w, cmap_info, property)
Display *display;
Window w;
XStandardColormap *cmap_info;
Atom property;

Arguments

displaySpecifies a connection to an X server; returned from XOpenDisplay(). 

wSpecifies the ID of the window with which this colormap will be associated. 

cmap_info
Specifies the filled colormap information structure.

propertySpecifies the standard colormap property to set.  The predefined standard colormaps are: XA_RGB_BEST_MAP, XA_RGB_RED_MAP, XA_RGB_GREEN_ MAP, XA_RGB_BLUE_MAP, XA_RGB_DEFAULT_MAP, and XA_RGB_ GRAY_MAP. 

Description

XSetStandardColormap() has been superseded by XSetRGBColormap as of Release 4.  XSetStandardColormap() defines a standard colormap property.  See description of standard colormaps in Volume One, Chapter 7, Color. 

Errors

BadAlloc
BadAtom
BadDrawable
BadWindow

Structures

typedef struct {
Colormap colormap;/* ID of colormap made by XCreateColormap */
unsigned long red_max;
unsigned long red_mult;
unsigned long green_max;
unsigned long green_mult;
unsigned long blue_max;
unsigned long blue_mult;
unsigned long base_pixel;
Visual ID visualid;
XID killid;
} XStandardColormap;/* new fields in R4 */

See Also

DefaultColormap(), DisplayCells(), XCopyColormapAndFree(), XCreateColormap(), XFreeColormap(), XGetStandardColormap(), XInstallColormap(), XListInstalledColormaps(), XSetWindowColormap(), XUninstallColormap(). 

Copyright O’Reilly & Assoc.  —  

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