XcupStoreColors man page on QNX

Man page or keyword search:  
man Server   4347 pages
apropos Keyword Search (all sections)
Output format
QNX logo
[printable version]

XcupStoreColors(3)		  X FUNCTIONS		    XcupStoreColors(3)

       XcupStoreColors	-  initialize  shareable  colormap entries at specific

       cc [ flag ... ] file ... -lXext [ library ... ]
       #include <X11/extensions/Xcup.h>

       Status XcupStoreColors(Display *display, Colormap colormap,
	      XColor *colors_in_out, int ncolors);

       display	 Specifies the connection to the X server

       colormap	 Specifies the colormap

		 Specifies and returns the values actually used	 in  the  col‐

       ncolors	 Specifies the number of items in colors_in_out

       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 num‐
       ber 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 XCupStore‐
       Colors.	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.

       XcupQueryVersion(3Xext), XcupGetReservedColormapEntries(3Xext),
       Colormap Utilization Policy and Extension

X Version 11			 libXext 1.1.1		    XcupStoreColors(3)
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server QNX

List of man pages available for QNX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net