Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.122
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
x11proto-xext-dev /
Delete
Unzip
Name
Size
Permission
Date
Action
appgrp.html
49.82
KB
-rw-r--r--
2014-01-06 10:39
appgrp.txt.gz
7.08
KB
-rw-r--r--
2014-01-06 10:39
changelog.Debian.gz
2.23
KB
-rw-r--r--
2014-01-06 10:39
copyright
10.06
KB
-rw-r--r--
2014-01-06 10:39
dbe.html
47.71
KB
-rw-r--r--
2014-01-06 10:39
dbe.txt.gz
8.02
KB
-rw-r--r--
2014-01-06 10:39
dpms.html
27
KB
-rw-r--r--
2014-01-06 10:39
dpms.txt.gz
3.76
KB
-rw-r--r--
2014-01-06 10:39
evi.html
23.45
KB
-rw-r--r--
2014-01-06 10:39
evi.txt.gz
3.22
KB
-rw-r--r--
2014-01-06 10:39
geproto.html
14.4
KB
-rw-r--r--
2014-01-06 10:39
geproto.txt.gz
1.86
KB
-rw-r--r--
2014-01-06 10:39
lbx.html
172.9
KB
-rw-r--r--
2014-01-06 10:39
lbx.txt.gz
23.22
KB
-rw-r--r--
2014-01-06 10:39
multibuf.html
62.89
KB
-rw-r--r--
2014-01-06 10:39
multibuf.txt.gz
11.25
KB
-rw-r--r--
2014-01-06 10:39
security.html
58.59
KB
-rw-r--r--
2014-01-06 10:39
security.txt.gz
9.6
KB
-rw-r--r--
2014-01-06 10:39
shape.html
46.25
KB
-rw-r--r--
2014-01-06 10:39
shape.txt.gz
6.4
KB
-rw-r--r--
2014-01-06 10:39
shm.html
25.95
KB
-rw-r--r--
2014-01-06 10:39
shm.txt.gz
4.9
KB
-rw-r--r--
2014-01-06 10:39
sync.html
58.78
KB
-rw-r--r--
2014-01-06 10:39
sync.txt.gz
9.84
KB
-rw-r--r--
2014-01-06 10:39
tog-cup.html
25.94
KB
-rw-r--r--
2014-01-06 10:39
tog-cup.txt.gz
3.92
KB
-rw-r--r--
2014-01-06 10:39
xtest.html
28.98
KB
-rw-r--r--
2014-01-06 10:39
xtest.txt.gz
4.52
KB
-rw-r--r--
2014-01-06 10:39
Save
Rename
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Colormap Utilization Policy and Extension</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1" /><style xmlns="" type="text/css">/* * Copyright (c) 2011 Gaetan Nadon * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice (including the next * paragraph) shall be included in all copies or substantial portions of the * Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ /* * Shared stylesheet for X.Org documentation translated to HTML format * http://www.sagehill.net/docbookxsl/UsingCSS.html * http://www.w3schools.com/css/default.asp * https://addons.mozilla.org/en-US/firefox/addon/web-developer/developers * https://addons.mozilla.org/en-US/firefox/addon/font-finder/ */ /* * The sans-serif fonts are considered more legible on a computer screen * http://dry.sailingissues.com/linux-equivalents-verdana-arial.html * */ body { font-family: "Bitstream Vera Sans", "DejaVu Sans", Tahoma, Geneva, Arial, Sans-serif; /* In support of using "em" font size unit, the w3c recommended method */ font-size: 100%; } /* * Selection: all elements requiring mono spaced fonts. * * The family names attempt to match the proportionally spaced font * family names such that the same font name is used for both. * We'd like to use Bitstream, for example, in both proportionally and * mono spaced font text. */ .command, .errorcode, .errorname, .errortype, .filename, .funcsynopsis, .function, .parameter, .programlisting, .property, .screen, .structname, .symbol, .synopsis, .type { font-family: "Bitstream Vera Sans Mono", "DejaVu Sans Mono", Courier, "Liberation Mono", Monospace; } /* * Books have a title page, a preface, some chapters and appendices, * a glossary, an index and a bibliography, in that order. * * An Article has no preface and no chapters. It has sections, appendices, * a glossary, an index and a bibliography. */ /* * Selection: book main title and subtitle */ div.book>div.titlepage h1.title, div.book>div.titlepage h2.subtitle { text-align: center; } /* * Selection: article main title and subtitle */ div.article>div.titlepage h2.title, div.article>div.titlepage h3.subtitle, div.article>div.sect1>div.titlepage h2.title, div.article>div.section>div.titlepage h2.title { text-align: center; } /* * Selection: various types of authors and collaborators, individuals or corporate * * These authors are not always contained inside an authorgroup. * They can be contained inside a lot of different parent types where they might * not be centered. * Reducing the margin at the bottom makes a visual separation between authors * We specify here the ones on the title page, others may be added based on merit. */ div.titlepage .authorgroup, div.titlepage .author, div.titlepage .collab, div.titlepage .corpauthor, div.titlepage .corpcredit, div.titlepage .editor, div.titlepage .othercredit { text-align: center; margin-bottom: 0.25em; } /* * Selection: the affiliation of various types of authors and collaborators, * individuals or corporate. */ div.titlepage .affiliation { text-align: center; } /* * Selection: product release information (X Version 11, Release 7) * * The releaseinfo element can be contained inside a lot of different parent * types where it might not be centered. * We specify here the one on the title page, others may be added based on merit. */ div.titlepage p.releaseinfo { font-weight: bold; text-align: center; } /* * Selection: publishing date */ div.titlepage .pubdate { text-align: center; } /* * The legal notices are displayed in smaller sized fonts * Justification is only supported in IE and therefore not requested. * */ .legalnotice { font-size: small; font-style: italic; } /* * For documentation having multiple licenses, the copyright and legalnotice * elements sequence cannot instantiated multiple times. * The copyright notice and license text are therefore coded inside a legalnotice * element. The role attribute on the paragraph is used to allow styling of the * copyright notice text which should not be italicized. */ p.multiLicensing { font-style: normal; font-size: medium; } /* * Selection: book or article main ToC title * A paragraph is generated for the title rather than a level 2 heading. * We do not want to select chapters sub table of contents, only the main one */ div.book>div.toc>p, div.article>div.toc>p { font-size: 1.5em; text-align: center; } /* * Selection: major sections of a book or an article * * Unlike books, articles do not have a titlepage element for appendix. * Using the selector "div.titlepage h2.title" would be too general. */ div.book>div.preface>div.titlepage h2.title, div.book>div.chapter>div.titlepage h2.title, div.article>div.sect1>div.titlepage h2.title, div.article>div.section>div.titlepage h2.title, div.book>div.appendix>div.titlepage h2.title, div.article>div.appendix h2.title, div.glossary>div.titlepage h2.title, div.index>div.titlepage h2.title, div.bibliography>div.titlepage h2.title { /* Add a border top over the major parts, just like printed books */ /* The Gray color is already used for the ruler over the main ToC. */ border-top-style: solid; border-top-width: 2px; border-top-color: Gray; /* Put some space between the border and the title */ padding-top: 0.2em; text-align: center; } /* * A Screen is a verbatim environment for displaying text that the user might * see on a computer terminal. It is often used to display the results of a command. * * http://www.css3.info/preview/rounded-border/ */ .screen { background: #e0ffff; border-width: 1px; border-style: solid; border-color: #B0C4DE; border-radius: 1.0em; /* Browser's vendor properties prior to CSS 3 */ -moz-border-radius: 1.0em; -webkit-border-radius: 1.0em; -khtml-border-radius: 1.0em; margin-left: 1.0em; margin-right: 1.0em; padding: 0.5em; } /* * Emphasis program listings with a light shade of gray similar to what * DocBook XSL guide does: http://www.sagehill.net/docbookxsl/ProgramListings.html * Found many C API docs on the web using like shades of gray. */ .programlisting { background: #F4F4F4; border-width: 1px; border-style: solid; border-color: Gray; padding: 0.5em; } /* * Emphasis functions synopsis using a darker shade of gray. * Add a border such that it stands out more. * Set the padding so the text does not touch the border. */ .funcsynopsis, .synopsis { background: #e6e6fa; border-width: 1px; border-style: solid; border-color: Gray; clear: both; margin: 0.5em; padding: 0.25em; } /* * Selection: paragraphs inside synopsis * * Removes the default browser margin, let the container set the padding. * Paragraphs are not always used in synopsis */ .funcsynopsis p, .synopsis p { margin: 0; padding: 0; } /* * Selection: variable lists, informal tables and tables * * Note the parameter name "variablelist.as.table" in xorg-xhtml.xsl * A table with rows and columns is constructed inside div.variablelist * * Set the left margin so it is indented to the right * Display informal tables with single line borders */ table { margin-left: 0.5em; border-collapse: collapse; } /* * Selection: paragraphs inside tables * * Removes the default browser margin, let the container set the padding. * Paragraphs are not always used in tables */ td p { margin: 0; padding: 0; } /* * Add some space between the left and right column. * The vertical alignment helps the reader associate a term * with a multi-line definition. */ td, th { padding-left: 1.0em; padding-right: 1.0em; vertical-align: top; } .warning { border: 1px solid red; background: #FFFF66; padding-left: 0.5em; } </style></head><body><div class="book"><div class="titlepage"><div><div><h1 class="title"><a id="tog-cup"></a>Colormap Utilization Policy and Extension</h1></div><div><h2 class="subtitle">X Project Team Standard</h2></div><div><div class="authorgroup"><div class="author"><h3 class="author"><span class="firstname">Kaleb</span> <span class="othername">S.</span> <span class="surname">Keithley</span></h3><div class="affiliation"><span class="orgname">The Open Group<br /></span></div></div></div></div><div><p class="releaseinfo">X Version 11, Release 7.7</p></div><div><p class="releaseinfo">Version 1.0</p></div><div><p class="copyright">Copyright © 1986-1997 The Open Group</p></div><div><div class="legalnotice"><a id="idp50624032"></a><p> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to use the Software without restriction, including, without limitation, the rights to copy, modify, merge, publish, distribute and sublicense the Software, to make, have made, license and distribute derivative works thereof, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: </p><p> The above copyright notice and the following permission notice shall be included in all copies of the Software: </p><p> THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON- INFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNNECTION WITH THE SOFTWARE OR THE USE OF OTHER DEALINGS IN THE SOFTWARE. </p><p> Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the use or other dealings in this Software without prior written authorization from The Open Group. </p><p> X Window System is a trademark of The Open Group. </p></div></div></div><hr /></div><div class="toc"><p><strong>Table of Contents</strong></p><dl class="toc"><dt><span class="chapter"><a href="#Overview">1. Overview</a></span></dt><dt><span class="chapter"><a href="#Requests">2. Requests</a></span></dt><dt><span class="chapter"><a href="#Events_and_Errors">3. Events and Errors</a></span></dt><dt><span class="chapter"><a href="#Changes_to_existing_protocol">4. Changes to existing protocol.</a></span></dt><dt><span class="chapter"><a href="#Encoding">5. Encoding</a></span></dt><dt><span class="chapter"><a href="#C_Language_Binding">6. C Language Binding</a></span></dt><dt><span class="chapter"><a href="#Using_the_TOG_CUP_extension_and_Colormap_Utilization_Policy">7. Using the TOG-CUP extension and Colormap Utilization Policy</a></span></dt></dl></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="Overview"></a>Chapter 1. Overview</h1></div></div></div><p> This extension has three purposes: a) to provide mechanism for a special application (a colormap manager) to discover any special colormap requirements, e.g. the colormap entries that are nominally reserved for desktop colors in the MS-Windows environment and initialize the default colormap so that it can be more easily shared; and b) to encourage colormap sharing and reduce colormap flashing on low-end 8-bit frame buffers by providing a policy for sharing; and c) when colormaps aren't shared, define a behavior in the X server color allocation scheme to reduce colormap flashing. </p><p> To encourage colormap sharing and accomodate special colormap requirements two new protocols are defined: the first provides a way to query the server for a list of reserved colormap entries, and the second is a way to initialize read-only (shareable) colormap entries at specific locations in a colormap. </p><p> To minimize colormap flashing when the root window's default visual is one of GrayScale, PseudoColor, or DirectColor, and a private colormap for the default visual is being used, a minor (but compatible) change to the server implementation of the AllocColor and AllocNamedColor requests is required. Where the core protocol says nothing about the pixel values returned, when this extension is in effect, the AllocColor and AllocNamedColor requests will first look for a matching color in the default colormap, and, if a match is found and the same cell in the private colormap has not already been allocated, the color will be allocated in the private colormap at the same locaton as in the default colormap (instead of in the first available location.) </p></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="Requests"></a>Chapter 2. Requests</h1></div></div></div><p> <code class="function">QueryVersion</code> </p><div class="informaltable"><table border="0"><colgroup><col align="left" class="c1" /></colgroup><tbody><tr><td align="left"> client_major_version: CARD16 </td></tr><tr><td align="left"> client_minor_version: CARD16 </td></tr><tr><td align="left"> => </td></tr><tr><td align="left"> server_major_version: CARD16 </td></tr><tr><td align="left"> server_minor_version: CARD16 </td></tr></tbody></table></div><p> If supplied, the client_major_version and client_minor_version indicate what version of the protocol the client wants the server to implement. The server version numbers returned indicate the protocol this extension actually supports. This might not equal the version sent by the client. An implementation can (but need not) support more than one version simultaneously. The server_major_version and the server_minor_version are a mechanism to support future revisions of the TOG-CUP protocol that may be necessary. In general, the major version would increment for incompatible changes, and the minor version would increment for small upward-compatible changes. Servers that support the protocol defined in this document will return a server_major_version of one (1), and a server_minor_version of zero (0). </p><p> <code class="function">GetReservedColormapEntries</code> </p><div class="informaltable"><table border="0"><colgroup><col align="left" class="c1" /></colgroup><tbody><tr><td align="left"> screen: CARD32 </td></tr><tr><td align="left"> => </td></tr><tr><td align="left"> entries: LISTofCOLORITEM </td></tr></tbody></table></div><p> This request returns a list of colormap entries (pixels) that are reserved by the system, e.g. MS-Windows reserved desktop colors. This list will, at a minimum, contain entries for the BlackPixel and WhitePixel of the specified screen. The do-red, do-green, and do-blue elements of the COLORITEMs are unused in this reply. </p><p> Rationale: There are colormap entries (pixels) that, e.g., MS-Windows desktop reserves as desktop colors, that should not be altered. If they are altered then X programs will cause colormap flashing between X and MS-Windows applications running/displaying on the same desktop. </p><p> <code class="function">StoreColors</code> </p><div class="informaltable"><table border="0"><colgroup><col align="left" class="c1" /></colgroup><tbody><tr><td align="left"> cmap: COLORMAP </td></tr><tr><td align="left"> items: LISTofCOLORITEM </td></tr><tr><td align="left"> => </td></tr><tr><td align="left"> items: LISTofCOLORITEM </td></tr></tbody></table></div><p> This request changes the colormap entries of the specified pixels. The colormap entries are allocated as if by an AllocColor request. The do-red, do-green, and do-blue elements of the COLORITEMs are unused in this request. A boolean alloc-ok element (a bit) is returned indicating whether the particular pixel was successfully allocated or not. If successfully allocated the RGB and pixel are returned. </p><p> A Value error is generated if a pixel is not a valid index into cmap. A BadMatch error is generated if if cmap does not belong to a GrayScale, PseudoColor, or DirectColor visual. </p></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="Events_and_Errors"></a>Chapter 3. Events and Errors</h1></div></div></div><p> No new events or errors are defined by this extension. </p></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="Changes_to_existing_protocol"></a>Chapter 4. Changes to existing protocol.</h1></div></div></div><p> None. </p></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="Encoding"></a>Chapter 5. Encoding</h1></div></div></div><p> The name of this extension is "TOG-CUP". </p><p> The conventions used here are the same as those for the core X11 Protocol Encoding. </p><pre class="literallayout"> <code class="function">QueryVersion</code> 1 CARD8 opcode 1 0 TOG-CUP opcode 2 2 request length 2 CARD16 client_major_version 2 CARD16 client_minor_version => 1 1 reply 1 unused 2 CARD16 sequence number 4 0 length 2 CARD16 server_major_version 2 CARD16 server_minor_number 20 unused </pre><pre class="literallayout"> <code class="function">GetReservedColormapEntries</code> 1 CARD8 opcode 1 1 TOG-CUP opcode 2 2 request length 4 CARD32 screen => 1 1 reply 1 unused 2 CARD16 sequence number 4 3n length 24 unused 12n LISTofCOLORITEM items </pre><pre class="literallayout"> <code class="function">StoreColors</code> 1 CARD8 opcode 1 2 TOG-CUP opcode 2 2+3n request length 4 COLORMAP cmap 12n LISTofCOLORITEM items => 1 1 reply 1 unused 2 CARD16 sequence number 4 3n length 24 unused 12n LISTofCOLORITEM items </pre><p> (The definition of COLORITEM here is only for the purpose of defining the additional alloc-ok member in the CUPStoreColors reply.) </p><pre class="literallayout"> COLORITEM 4 CARD32 pixel 2 CARD16 red 2 CARD16 green 2 CARD16 blue 1 alloc-ok #x07 unused #x08 alloc-ok (1 is True, 0 is False) #xF0 unused 1 unused </pre></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="C_Language_Binding"></a>Chapter 6. C Language Binding</h1></div></div></div><p> The C functions provide direct access to the protocol and add no additional semantics. For complete details on the effects of these functions, refer to the appropriate protocol request, which can be derived by deleting XCup at the start of the function. All functions that have return type Status will return nonzero for success and zero for failure. </p><p> The include file for this extension is <code class="function"><X11/extensions/Xcup.h></code>. </p><div class="funcsynopsis"><a id="XCupQueryVersion"></a><p><code class="funcdef">Status <strong class="fsfunc"> XCupQueryVersion</strong>(</code>Display*<var class="pdparam"> display</var>, int*<var class="pdparam"> major_version_return</var>, int*<var class="pdparam"> minor_version_return</var><code>)</code>;</p></div><div class="variablelist"><table border="0" class="variablelist"><colgroup><col align="left" valign="top" /><col /></colgroup><tbody><tr><td><p><span class="term"> <span class="emphasis"><em>display</em></span> </span></p></td><td><p> Specifies the connection to the X server. </p></td></tr><tr><td><p><span class="term"> <span class="emphasis"><em>major_version_return</em></span> </span></p></td><td><p> Returns the major version supported by the server. </p></td></tr><tr><td><p><span class="term"> <span class="emphasis"><em>minor_version_return</em></span> </span></p></td><td><p> Returns the minor version supported by the server. </p></td></tr></tbody></table></div><p> XCupQueryVersions sets major_version_return and minor_version_return to the major and minor TOG-CUP protocol version supported by the server. If the TOG-CUP library is compatible with the version returned by the server, it returns nonzero. If dpy does not support the TOG-CUP extension, or if there was an error during communication with the server, or if the server and library protocol versions are incompatible, it returns zero. No other XCup functions may be called before this function. If a client violates this rule, the effects of all subsequent XCup calls that it makes are undefined. </p><p> To get the list of reserved colormap entries, use XCupGetReservedColormapEntries. </p><div class="funcsynopsis"><a id="XCupGetReservedColormapEntries"></a><p><code class="funcdef">Status <strong class="fsfunc"> XCupGetReservedColormapEntries</strong>(</code>Display*<var class="pdparam"> display</var>, int<var class="pdparam"> screen</var>, XColor**<var class="pdparam"> colors_out</var>, int*<var class="pdparam"> ncolors</var><code>)</code>;</p></div><div class="variablelist"><table border="0" class="variablelist"><colgroup><col align="left" valign="top" /><col /></colgroup><tbody><tr><td><p><span class="term"> <span class="emphasis"><em>display</em></span> </span></p></td><td><p> Specifies the connection to the X server. </p></td></tr><tr><td><p><span class="term"> <span class="emphasis"><em>colors_out</em></span> </span></p></td><td><p> Returns the values reserved by the server. </p></td></tr><tr><td><p><span class="term"> <span class="emphasis"><em>ncolors</em></span> </span></p></td><td><p> Returns the number of items in colors_out. </p></td></tr></tbody></table></div><p> The XCupGetReservedColormapEntries function gets system specific colormap entries. E.g. the MS-Windows desktop uses N colormap entries at the beginning (0..N) and end (256-N..255) of the colormap. Use XFree to free colors_out. </p><p> To allocate one or more read-only color cells with RGB values, use XCupStoreColors. </p><div class="funcsynopsis"><a id="XCupStoreColors"></a><p><code class="funcdef">Status <strong class="fsfunc"> XCupStoreColors</strong>(</code>Display*<var class="pdparam"> display</var>, Colormap<var class="pdparam"> colormap</var>, XColor*<var class="pdparam"> colors_in_out</var>, int<var class="pdparam"> ncolors</var><code>)</code>;</p></div><div class="variablelist"><table border="0" class="variablelist"><colgroup><col align="left" valign="top" /><col /></colgroup><tbody><tr><td><p><span class="term"> <span class="emphasis"><em>display</em></span> </span></p></td><td><p> Specifies the connection to the X server. </p></td></tr><tr><td><p><span class="term"> <span class="emphasis"><em>colormap</em></span> </span></p></td><td><p> Specifies the colormap. </p></td></tr><tr><td><p><span class="term"> <span class="emphasis"><em>colors_in_out</em></span> </span></p></td><td><p> Specifies and returns the values actually used in the colormap. </p></td></tr><tr><td><p><span class="term"> <span class="emphasis"><em>ncolors</em></span> </span></p></td><td><p> Specifies the number of items in colors_in_out. </p></td></tr></tbody></table></div><p> The XCupStoreColors function changes the colormap entries of the pixel values specified in the pixel members of the XColor structures. The colormap entries are allocated as if an AllocColor had been used instead, i.e. the colors are read-only (shareable). XCupStoreColors returns the number of colors that were successfully allocated in the colormap. </p></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="Using_the_TOG_CUP_extension_and_Colormap_Utilization_Policy"></a>Chapter 7. Using the TOG-CUP extension and Colormap Utilization Policy</h1></div></div></div><p> The X server preallocates any hardware or desktop special colors in the default colormap; e.g. UNIX X servers preallocate Black and White pixels. PC X servers should also preallocate the MS-Windows desktop colors. (Note to implementors: in the Sample Implementation special colors are allocated in the default colormap in cfbCreateDefColormap for dumb memory framebuffers.) </p><p> To minimize colormap flash an application which installs its own private colormap should query the special colors by calling XCupGetReservedColormapEntries, and can then store those entries (in the proper location) in its private colormap using XCupStoreColors. </p><p> Applications which allocate many colors in a screen's default colormap, e.g. a color-cube or a gray-ramp, should allocate them with XCupStoreColors. 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. </p></div></div></body></html>