Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xcupgetreservedcolormapentries(3) [x11r4 man page]

XCUP(3) 							    X FUNCTIONS 							   XCUP(3)

NAME
XcupGetReservedColormapEntries - list colormap entries reserved by the system SYNOPSIS
cc [ flag ... ] file ... -lXext [ library ... ] #include <X11/extensions/Xcup.h> Status XcupGetReservedColormapEntries(Display *display, int screen, XColor **colors_out, int *ncolors); ARGUMENTS
display Specifies the connection to the X server. screen Screen number on the host server. colors_out Returns the values reserved by the server. ncolors Returns the number of items in colors_out. DESCRIPTION
The XcupGetReservedColormapEntries function returns a list of colormap entries (pixels) that are reserved by the system. This list will, at a minimum, contain entries for the BlackPixel and WhitePixel of the specified screen. Use XFree to free colors_out. To minimize colormap flash, an application which installs its own private colormap should query the special colors by calling XCupGetRe- servedColormapEntries, and can then store those entries (in the proper location) in its private colormap using XCupStoreColors. SEE ALSO
XcupQueryVersion(3Xext), XcupStoreColors(3Xext), XFree(3X11), Colormap Utilization Policy and Extension X Version 11 libXext 1.0.5 XCUP(3)

Check Out this Related Man Page

XcupStoreColors(3)						    X FUNCTIONS 						XcupStoreColors(3)

NAME
XcupStoreColors - initialize shareable colormap entries at specific locations SYNOPSIS
cc [ flag ... ] file ... -lXext [ library ... ] #include <X11/extensions/Xcup.h> Status XcupStoreColors(Display *display, Colormap colormap, XColor *colors_in_out, int ncolors); ARGUMENTS
display Specifies the connection to the X server colormap Specifies the colormap colors_in_out Specifies and returns the values actually used in the colormap ncolors Specifies the number of items in colors_in_out DESCRIPTION
The XcupStoreColors function changes the colormap entries of the pixel values in the pixel members of the XColor structures. The colormap entries are allocated as if an AllocColor has been used instead, i.e. the colors are read-only (shareable). XcupStoreColors returns the number of colors that were successfully allocated in the colormap. A Value error is generated if a pixel is not a valid index into the colormap. A BadMatch error is generated if the colormap does not belong to a GrayScale, PseudoColor, or DirectColor visual. Applications which allocate many colors in a screen's default colormap, e.g. a color-cube or a gray-ramp, should allocate them with XCup- StoreColors. By using XCupStoreColors the colors will be allocated sharable (read-only) and any other application which allocates the same color will share that color cell. SEE ALSO
XcupQueryVersion(3Xext), XcupGetReservedColormapEntries(3Xext), Colormap Utilization Policy and Extension X Version 11 libXext 1.3.2 XcupStoreColors(3)
Man Page

We Also Found This Discussion For You

1. UNIX for Advanced & Expert Users

Shopt -s histappend

What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file. # When the shell exits, append to the history file instead of overwriting it shopt -s histappend (3 Replies)
Discussion started by: cokedude
3 Replies