XInstallColormap
NAMESYNTAX
ARGUMENTS
DESCRIPTION
DIAGNOSTICS
SEE ALSO
NAME
XInstallColormap, XUninstallColormap, XListInstalledColormaps − control colormaps
SYNTAX
int XInstallColormap(Display *display, Colormap colormap); | |
int XUninstallColormap(Display *display, Colormap colormap); | |
Colormap *XListInstalledColormaps(Display *display, Window w, int *num_return); |
ARGUMENTS
colormap |
Specifies the colormap. |
|||
display |
Specifies the connection to the X server. |
num_return
Returns the number of currently installed colormaps.
w |
Specifies the window that determines the screen. |
DESCRIPTION
The XInstallColormap function installs the specified colormap for its associated screen. All windows associated with this colormap immediately display with true colors. You associated the windows with this colormap when you created them by calling XCreateWindow, XCreateSimpleWindow, XChangeWindowAttributes, or XSetWindowColormap.
If the specified colormap is not already an installed colormap, the X server generates a ColormapNotify event on each window that has that colormap. In addition, for every other colormap that is installed as a result of a call to XInstallColormap, the X server generates a ColormapNotify event on each window that has that colormap.
XInstallColormap can generate a BadColor error.
The XUninstallColormap function removes the specified colormap from the required list for its screen. As a result, the specified colormap might be uninstalled, and the X server might implicitly install or uninstall additional colormaps. Which colormaps get installed or uninstalled is server dependent except that the required list must remain installed.
If the specified colormap becomes uninstalled, the X server generates a ColormapNotify event on each window that has that colormap. In addition, for every other colormap that is installed or uninstalled as a result of a call to XUninstallColormap, the X server generates a ColormapNotify event on each window that has that colormap.
XUninstallColormap can generate a BadColor error.
The XListInstalledColormaps function returns a list of the currently installed colormaps for the screen of the specified window. The order of the colormaps in the list is not significant and is no explicit indication of the required list. When the allocated list is no longer needed, free it by using XFree.
XListInstalledColormaps can generate a BadWindow error.
DIAGNOSTICS
BadColor |
A value for a Colormap argument does not name a defined Colormap. | ||
BadWindow |
A value for a Window argument does not name a defined Window. |
SEE ALSO
XChangeWindowAttributes(3),
XCreateColormap(3), XCreateWindow(3), XFree(3)
Xlib − C Language X Interface
More Linux Commands
manpages/ldap_dn2ufn.3.html
ldap_dn2ufn(3) - LDAP DN handling routines - Linux man page
These routines allow LDAP entry names (Distinguished Names, or DNs) to be obtained, parsed, converted to a user-friendly form, and tested. A DN has the form des
manpages/git-checkout-index.1.html
git-checkout-index(1) - Copy files from the index to the wor
Will copy all files listed from the index to the working directory (not overwriting existing files). OPTIONS -u, --index update stat information for the checked
manpages/addch.3ncurses.html
addch(3ncurses) - add a character (with attributes) to a cur
The addch, waddch, mvaddch and mvwaddch routines put the character ch into the given window at its current window position, which is then advanced. They are ana
manpages/XtCreateApplicationShell.3.html
XtCreateApplicationShell(3) - create top-level widget instan
The procedure XtCreateApplicationShell calls XtAppCreateShell with the application NULL, the application class passed to XtInitialize, and the default applicati
manpages/SQL::Dialects::Role.3pm.html
SQL::Dialects::Role(3pm) - The role of being a SQL::Dialect
This adds the role of being a SQL::Dialect to your class. Requirements You must implement... get_config my $config = $class->get_config; Returns information abo
manpages/pwunconv.8.html
pwunconv(8) - convert from shadow account - Linux man page
The pwconv command creates shadow from passwd and an optionally existing shadow. The pwunconv command creates passwd from passwd and shadow and then removes sha
manpages/FcConfigGetFonts.3.html
FcConfigGetFonts(3) - Get config font set - Linux man page
Returns one of the two sets of fonts from the configuration as specified by set. This font set is owned by the library and must not be modified or freed. If con
manpages/sasl_encode.3.html
sasl_encode(3) - Encode data for transport to authenticated
sasl_encode encodes data to be sent to be sent to a remote host who weve had a successful authentication session with. If there is a negotiated security the dat
manpages/Tcl_UniCharIsAlnum.3.html
Tcl_UniCharIsAlnum(3) - routines for classification of Tcl_U
All of the routines described examine Tcl_UniChars and return a boolean value. A non-zero return value means that the character does belong to the character cla
manpages/gnutls_pkcs11_privkey_import_url.3.html
gnutls_pkcs11_privkey_import_url(3) - API function (ManPage)
This function will import a PKCS 11 URL identifying a private key to the gnutls_pkcs11_privkey_t structure. In reality since in most cases keys cannot be export
manpages/cosh.3.html
cosh(3) - hyperbolic cosine function - Linux manual page....
The cosh() function returns the hyperbolic cosine of x, which is defined mathematically as: cosh(x) = (exp(x) + exp(-x)) / 2 RETURN VALUE On success, these func
manpages/XkbSARedirectVModsMask.3.html
XkbSARedirectVModsMask(3) - Returns the vmods_mask0 and vmod
XkbSARedirectVModsMask.3 - Actions associated with the XkbRedirectKeyAction structure generate KeyPress and KeyRelease events containing a keycode different fro
