Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

NAME

XSetWindowColormap − set the colormap attribute for a window. 

Synopsis

XSetWindowColormap(display, w, colormap)
Display *display;
Window w;
Colormap colormap;

Arguments

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

wSpecifies the ID of the window for which you want to set the colormap. 

colormapSpecifies the colormap. 

Description

XSetWindowColormap() sets the colormap attribute of the specified window.  The colormap need not be installed to be set as an attribute.  colormap will be used to translate pixel values drawn into this window when colormap is installed in the hardware, which will be taken care of by the window manager.  In Release 3, applications must install their own colormaps if they cannot use the default colormap.  In Release 4 and Release 5, they should never do so.  The colormap must have the same visual as the window. 

Errors

BadColorInvalid colormap. 

BadMatch

BadWindow

See Also

XChangeWindowAttributes(), XGetGeometry(), XGetWindowAttributes(), XSetWindowBackground(), XSetWindowBackgroundPixmap(), XSetWindowBorder(), XSetWindowBorderPixmap(), XSetWMColormapWindows(). 

Copyright O’Reilly & Assoc.  —  

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