1 .\" Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1994, 1996 X Consortium
2 .\" Permission is hereby granted, free of charge, to any person obtaining
3 .\" a copy of this software and associated documentation files (the
4 .\" "Software"), to deal in the Software without restriction, including
5 .\" without limitation the rights to use, copy, modify, merge, publish,
6 .\" distribute, sublicense, and/or sell copies of the Software, and to
7 .\" permit persons to whom the Software is furnished to do so, subject to
8 .\" the following conditions:
10 .\" The above copyright notice and this permission notice shall be included
11 .\" in all copies or substantial portions of the Software.
13 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
14 .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
15 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16 .\" IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
17 .\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
18 .\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
19 .\" OTHER DEALINGS IN THE SOFTWARE.
21 .\" Except as contained in this notice, the name of the X Consortium shall
22 .\" not be used in advertising or otherwise to promote the sale, use or
23 .\" other dealings in this Software without prior written authorization
24 .\" from the X Consortium.
26 .\" Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991 by
27 .\" Digital Equipment Corporation
29 .\" Portions Copyright \(co 1990, 1991 by
32 .\" Permission to use, copy, modify and distribute this documentation for
33 .\" any purpose and without fee is hereby granted, provided that the above
34 .\" copyright notice appears in all copies and that both that copyright notice
35 .\" and this permission notice appear in all copies, and that the names of
36 .\" Digital and Tektronix not be used in in advertising or publicity pertaining
37 .\" to this documentation without specific, written prior permission.
38 .\" Digital and Tektronix makes no representations about the suitability
39 .\" of this documentation for any purpose.
40 .\" It is provided ``as is'' without express or implied warranty.
43 .ds xT X Toolkit Intrinsics \- C Language Interface
44 .ds xW Athena X Widgets \- C Language X Toolkit Interface
45 .ds xL Xlib \- C Language X Interface
46 .ds xC Inter-Client Communication Conventions Manual
53 .\".if \\n(VS>=40 .vs \\n(VSu
54 .\".if \\n(VS<=39 .vs \\n(VSp
77 .de IN \" send an index entry to the stderr
84 .\" choose appropriate monospace font
85 .\" the imagen conditional, 480,
86 .\" may be changed to L if LB is too
87 .\" heavy for your eyes...
89 .ie "\\*(.T"480" .ft L
90 .el .ie "\\*(.T"300" .ft L
91 .el .ie "\\*(.T"202" .ft PO
92 .el .ie "\\*(.T"aps" .ft CW
95 .ie \\n(VS>40 .vs \\n(VSu
103 .ie t \\$1\fB\^\\$2\^\fR\\$3
104 .el \\$1\fI\^\\$2\^\fP\\$3
107 .ie t \fB\^\\$1\^\fR\\$2
108 .el \fI\^\\$1\^\fP\\$2
111 .ie t <\fB\\$1\fR>\\$2
117 .if \\n(.$>$1 .if !'\\$2'C' .ds NO \\$2
118 .if \\n(.$ .if !'\\$1'C' .ds NO \\$1
132 . \" Note End -- doug kraft 3/85
151 .TH XcmsColor __libmansuffix__ __xorgversion__ "XLIB FUNCTIONS"
153 XcmsColor, XcmsRGB, XcmsRGBi, XcmsCIEXYZ, XcmsCIEuvY, XcmsCIExyY, XcmsCIELab, XcmsCIELuv, XcmsTekHVC, XcmsPad \- Xcms color structure
160 typedef unsigned long XcmsColorFormat; /\&* Color Specification Format */
175 XcmsColorFormat format;
176 } XcmsColor; /\&* Xcms Color Structure */
180 typedef double XcmsFloat;
183 unsigned short red; /\&* 0x0000 to 0xffff */
184 unsigned short green; /\&* 0x0000 to 0xffff */
185 unsigned short blue; /\&* 0x0000 to 0xffff */
186 } XcmsRGB; /\&* RGB Device */
191 XcmsFloat red; /\&* 0.0 to 1.0 */
192 XcmsFloat green; /\&* 0.0 to 1.0 */
193 XcmsFloat blue; /\&* 0.0 to 1.0 */
194 } XcmsRGBi; /\&* RGB Intensity */
200 XcmsFloat Y; /\&* 0.0 to 1.0 */
202 } XcmsCIEXYZ; /\&* CIE XYZ */
207 XcmsFloat u_prime; /\&* 0.0 to ~0.6 */
208 XcmsFloat v_prime; /\&* 0.0 to ~0.6 */
209 XcmsFloat Y; /\&* 0.0 to 1.0 */
210 } XcmsCIEuvY; /\&* CIE u'v'Y */
215 XcmsFloat x; /\&* 0.0 to ~.75 */
216 XcmsFloat y; /\&* 0.0 to ~.85 */
217 XcmsFloat Y; /\&* 0.0 to 1.0 */
218 } XcmsCIExyY; /\&* CIE xyY */
223 XcmsFloat L_star; /\&* 0.0 to 100.0 */
226 } XcmsCIELab; /\&* CIE L*a*b* */
231 XcmsFloat L_star; /\&* 0.0 to 100.0 */
234 } XcmsCIELuv; /\&* CIE L*u*v* */
239 XcmsFloat H; /\&* 0.0 to 360.0 */
240 XcmsFloat V; /\&* 0.0 to 100.0 */
241 XcmsFloat C; /\&* 0.0 to 100.0 */
242 } XcmsTekHVC; /\&* TekHVC */
251 } XcmsPad; /\&* four doubles */
256 structure contains a union of substructures,
257 each supporting color specification encoding for a particular color space.
259 XcmsAllocColor(__libmansuffix__),
260 XcmsStoreColor(__libmansuffix__),
261 XcmsConvertColors(__libmansuffix__),