~ubuntu-branches/ubuntu/gutsy/vnc4/gutsy

« back to all changes in this revision

Viewing changes to unix/xc/doc/man/X11/XcmsClr.man

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2006-05-15 20:35:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515203517-l4lre1ku942mn26k
Tags: 4.1.1+X4.3.0-10
* Correction of critical security issue. Thanks to Martin Kogler
  <e9925248@student.tuwien.ac.at> that informed me about the issue,
  and provided the patch.
  This flaw was originally found by Steve Wiseman of intelliadmin.com.
* Applied patch from Javier Kohen <jkohen@users.sourceforge.net> that
  inform the user that only 8 first characters of the password will
  actually be used when typing more than 8 characters, closes:
  #355619.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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:
 
9
.\"
 
10
.\" The above copyright notice and this permission notice shall be included
 
11
.\" in all copies or substantial portions of the Software.
 
12
.\"
 
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.
 
20
.\"
 
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.
 
25
.\"
 
26
.\" Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991 by
 
27
.\" Digital Equipment Corporation
 
28
.\"
 
29
.\" Portions Copyright \(co 1990, 1991 by
 
30
.\" Tektronix, Inc.
 
31
.\"
 
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.
 
41
.\" 
 
42
.\" $XFree86: xc/doc/man/X11/XcmsClr.man,v 3.4 2001/01/27 18:20:06 dawes Exp $
 
43
.\"
 
44
.ds xT X Toolkit Intrinsics \- C Language Interface
 
45
.ds xW Athena X Widgets \- C Language X Toolkit Interface
 
46
.ds xL Xlib \- C Language X Interface
 
47
.ds xC Inter-Client Communication Conventions Manual
 
48
.na
 
49
.de Ds
 
50
.nf
 
51
.\\$1D \\$2 \\$1
 
52
.ft 1
 
53
.\".ps \\n(PS
 
54
.\".if \\n(VS>=40 .vs \\n(VSu
 
55
.\".if \\n(VS<=39 .vs \\n(VSp
 
56
..
 
57
.de De
 
58
.ce 0
 
59
.if \\n(BD .DF
 
60
.nr BD 0
 
61
.in \\n(OIu
 
62
.if \\n(TM .ls 2
 
63
.sp \\n(DDu
 
64
.fi
 
65
..
 
66
.de FD
 
67
.LP
 
68
.KS
 
69
.TA .5i 3i
 
70
.ta .5i 3i
 
71
.nf
 
72
..
 
73
.de FN
 
74
.fi
 
75
.KE
 
76
.LP
 
77
..
 
78
.de IN          \" send an index entry to the stderr
 
79
..
 
80
.de C{
 
81
.KS
 
82
.nf
 
83
.D
 
84
.\"
 
85
.\"     choose appropriate monospace font
 
86
.\"     the imagen conditional, 480,
 
87
.\"     may be changed to L if LB is too
 
88
.\"     heavy for your eyes...
 
89
.\"
 
90
.ie "\\*(.T"480" .ft L
 
91
.el .ie "\\*(.T"300" .ft L
 
92
.el .ie "\\*(.T"202" .ft PO
 
93
.el .ie "\\*(.T"aps" .ft CW
 
94
.el .ft R
 
95
.ps \\n(PS
 
96
.ie \\n(VS>40 .vs \\n(VSu
 
97
.el .vs \\n(VSp
 
98
..
 
99
.de C}
 
100
.DE
 
101
.R
 
102
..
 
103
.de Pn
 
104
.ie t \\$1\fB\^\\$2\^\fR\\$3
 
105
.el \\$1\fI\^\\$2\^\fP\\$3
 
106
..
 
107
.de ZN
 
108
.ie t \fB\^\\$1\^\fR\\$2
 
109
.el \fI\^\\$1\^\fP\\$2
 
110
..
 
111
.de hN
 
112
.ie t <\fB\\$1\fR>\\$2
 
113
.el <\fI\\$1\fP>\\$2
 
114
..
 
115
.de NT
 
116
.ne 7
 
117
.ds NO Note
 
118
.if \\n(.$>$1 .if !'\\$2'C' .ds NO \\$2
 
119
.if \\n(.$ .if !'\\$1'C' .ds NO \\$1
 
120
.ie n .sp
 
121
.el .sp 10p
 
122
.TB
 
123
.ce
 
124
\\*(NO
 
125
.ie n .sp
 
126
.el .sp 5p
 
127
.if '\\$1'C' .ce 99
 
128
.if '\\$2'C' .ce 99
 
129
.in +5n
 
130
.ll -5n
 
131
.R
 
132
..
 
133
.               \" Note End -- doug kraft 3/85
 
134
.de NE
 
135
.ce 0
 
136
.in -5n
 
137
.ll +5n
 
138
.ie n .sp
 
139
.el .sp 10p
 
140
..
 
141
.ny0
 
142
.TH XcmsColor 3X11 __xorgversion__ "XLIB FUNCTIONS"
 
143
.SH NAME
 
144
XcmsColor, XcmsRGB, XcmsRGBi, XcmsCIEXYZ, XcmsCIEuvY, XcmsCIExyY, XcmsCIELab, XcmsCIELuv, XcmsTekHVC, XcmsPad \- Xcms color struture
 
145
.SH STRUCTURES
 
146
The structure for
 
147
.ZN XcmsColor
 
148
contains:
 
149
.LP
 
150
.Ds 0
 
151
.TA .5i 1i 2.5i
 
152
.ta .5i 1i 2.5i
 
153
typedef unsigned long XcmsColorFormat;                  /* Color Specification Format */
 
154
 
 
155
typedef struct {
 
156
        union {
 
157
                XcmsRGB RGB;
 
158
                XcmsRGBi RGBi;
 
159
                XcmsCIEXYZ CIEXYZ;
 
160
                XcmsCIEuvY CIEuvY;
 
161
                XcmsCIExyY CIExyY;
 
162
                XcmsCIELab CIELab;
 
163
                XcmsCIELuv CIELuv;
 
164
                XcmsTekHVC TekHVC;
 
165
                XcmsPad Pad;
 
166
        } spec;
 
167
        unsigned long pixel;
 
168
        XcmsColorFormat format;
 
169
} XcmsColor;                    /* Xcms Color Structure */
 
170
.De
 
171
.LP
 
172
.Ds 0
 
173
.TA .5i 2.5i
 
174
.ta .5i 2.5i
 
175
typedef double XcmsFloat;
 
176
 
 
177
typedef struct {
 
178
        unsigned short red;     /* 0x0000 to 0xffff */
 
179
        unsigned short green;   /* 0x0000 to 0xffff */
 
180
        unsigned short blue;    /* 0x0000 to 0xffff */
 
181
} XcmsRGB;              /* RGB Device */
 
182
.De
 
183
.LP
 
184
.Ds 0
 
185
.TA .5i 2.5i
 
186
.ta .5i 2.5i
 
187
typedef struct {
 
188
        XcmsFloat red;  /* 0.0 to 1.0 */
 
189
        XcmsFloat green;        /* 0.0 to 1.0 */
 
190
        XcmsFloat blue; /* 0.0 to 1.0 */
 
191
} XcmsRGBi;             /* RGB Intensity */
 
192
.De
 
193
.LP
 
194
.Ds 0
 
195
.TA .5i 2.5i
 
196
.ta .5i 2.5i
 
197
typedef struct {
 
198
        XcmsFloat X;
 
199
        XcmsFloat Y;    /* 0.0 to 1.0 */
 
200
        XcmsFloat Z;
 
201
} XcmsCIEXYZ;           /* CIE XYZ */
 
202
.De
 
203
.LP
 
204
.Ds 0
 
205
.TA .5i 2.5i
 
206
.ta .5i 2.5i
 
207
typedef struct {
 
208
        XcmsFloat u_prime;      /* 0.0 to ~0.6 */
 
209
        XcmsFloat v_prime;      /* 0.0 to ~0.6 */
 
210
        XcmsFloat Y;    /* 0.0 to 1.0 */
 
211
} XcmsCIEuvY;           /* CIE u'v'Y */
 
212
.De
 
213
.LP
 
214
.Ds 0
 
215
.TA .5i 2.5i
 
216
.ta .5i 2.5i
 
217
typedef struct {
 
218
        XcmsFloat x;    /* 0.0 to ~.75 */
 
219
        XcmsFloat y;    /* 0.0 to ~.85 */
 
220
        XcmsFloat Y;    /* 0.0 to 1.0 */
 
221
} XcmsCIExyY;           /* CIE xyY */
 
222
.De
 
223
.LP
 
224
.Ds 0
 
225
.TA .5i 2.5i
 
226
.ta .5i 2.5i
 
227
typedef struct {
 
228
        XcmsFloat L_star;       /* 0.0 to 100.0 */
 
229
        XcmsFloat a_star;
 
230
        XcmsFloat b_star;
 
231
} XcmsCIELab;           /* CIE L*a*b* */
 
232
.De
 
233
.LP
 
234
.Ds 0
 
235
.TA .5i 2.5i
 
236
.ta .5i 2.5i
 
237
typedef struct {
 
238
        XcmsFloat L_star;       /* 0.0 to 100.0 */
 
239
        XcmsFloat u_star;
 
240
        XcmsFloat v_star;
 
241
} XcmsCIELuv;           /* CIE L*u*v* */
 
242
.De
 
243
.LP
 
244
.Ds 0
 
245
.TA .5i 2.5i
 
246
.ta .5i 2.5i
 
247
typedef struct {
 
248
        XcmsFloat H;    /* 0.0 to 360.0 */
 
249
        XcmsFloat V;    /* 0.0 to 100.0 */
 
250
        XcmsFloat C;    /* 0.0 to 100.0 */
 
251
} XcmsTekHVC;           /* TekHVC */
 
252
.De
 
253
.LP
 
254
.Ds 0
 
255
.TA .5i 2.5i
 
256
.ta .5i 2.5i
 
257
typedef struct {
 
258
        XcmsFloat pad0;
 
259
        XcmsFloat pad1;
 
260
        XcmsFloat pad2;
 
261
        XcmsFloat pad3;
 
262
} XcmsPad;              /* four doubles */
 
263
.De
 
264
.SH DESCRIPTION
 
265
The
 
266
.ZN XcmsColor
 
267
structure contains a union of substructures,
 
268
each supporting color specification encoding for a particular color space.
 
269
.SH "SEE ALSO"
 
270
XcmsAllocColor(3X11),
 
271
XcmsStoreColor(3X11),
 
272
XcmsConvertColors(3X11),
 
273
.br
 
274
\fI\*(xL\fP