annotate semiconginev2/thirdparty/x11/xcms.nim @ 1225:27cd1c21290e compiletime-tests

did: refactor resources
author sam <sam@basx.dev>
date Wed, 17 Jul 2024 22:20:59 +0700
parents 56781cc0fc7c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1191
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
1 import
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
2 x, xlib
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
3
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
4 #const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
5 # libX11* = "X11"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
6
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
7 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
8 # Automatically converted by H2Pas 0.99.15 from xcms.h
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
9 # The following command line parameters were used:
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
10 # -p
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
11 # -T
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
12 # -S
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
13 # -d
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
14 # -c
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
15 # xcms.h
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
16 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
17
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
18 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
19 XcmsFailure* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
20 XcmsSuccess* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
21 XcmsSuccessWithCompression* = 2
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
22
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
23 type
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
24 PXcmsColorFormat* = ptr XcmsColorFormat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
25 XcmsColorFormat* = int32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
26
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
27 proc XcmsUndefinedFormat*(): XcmsColorFormat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
28 proc XcmsCIEXYZFormat*(): XcmsColorFormat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
29 proc XcmsCIEuvYFormat*(): XcmsColorFormat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
30 proc XcmsCIExyYFormat*(): XcmsColorFormat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
31 proc XcmsCIELabFormat*(): XcmsColorFormat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
32 proc XcmsCIELuvFormat*(): XcmsColorFormat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
33 proc XcmsTekHVCFormat*(): XcmsColorFormat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
34 proc XcmsRGBFormat*(): XcmsColorFormat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
35 proc XcmsRGBiFormat*(): XcmsColorFormat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
36 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
37 XcmsInitNone* = 0x00000000
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
38 XcmsInitSuccess* = 0x00000001
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
39 XcmsInitFailure* = 0x000000FF
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
40
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
41 type
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
42 PXcmsFloat* = ptr XcmsFloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
43 XcmsFloat* = float64
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
44 PXcmsRGB* = ptr XcmsRGB
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
45 XcmsRGB*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
46 red*: int16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
47 green*: int16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
48 blue*: int16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
49
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
50 PXcmsRGBi* = ptr XcmsRGBi
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
51 XcmsRGBi*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
52 red*: XcmsFloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
53 green*: XcmsFloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
54 blue*: XcmsFloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
55
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
56 PXcmsCIEXYZ* = ptr XcmsCIEXYZ
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
57 XcmsCIEXYZ*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
58 X*: XcmsFloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
59 Y*: XcmsFloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
60 Z*: XcmsFloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
61
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
62 PXcmsCIEuvY* = ptr XcmsCIEuvY
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
63 XcmsCIEuvY*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
64 u_prime*: XcmsFloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
65 v_prime*: XcmsFloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
66 Y*: XcmsFloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
67
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
68 PXcmsCIExyY* = ptr XcmsCIExyY
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
69 XcmsCIExyY*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
70 x*: XcmsFloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
71 y*: XcmsFloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
72 theY*: XcmsFloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
73
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
74 PXcmsCIELab* = ptr XcmsCIELab
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
75 XcmsCIELab*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
76 L_star*: XcmsFloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
77 a_star*: XcmsFloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
78 b_star*: XcmsFloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
79
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
80 PXcmsCIELuv* = ptr XcmsCIELuv
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
81 XcmsCIELuv*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
82 L_star*: XcmsFloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
83 u_star*: XcmsFloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
84 v_star*: XcmsFloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
85
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
86 PXcmsTekHVC* = ptr XcmsTekHVC
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
87 XcmsTekHVC*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
88 H*: XcmsFloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
89 V*: XcmsFloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
90 C*: XcmsFloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
91
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
92 PXcmsPad* = ptr XcmsPad
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
93 XcmsPad*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
94 pad0*: XcmsFloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
95 pad1*: XcmsFloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
96 pad2*: XcmsFloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
97 pad3*: XcmsFloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
98
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
99 PXcmsColor* = ptr XcmsColor
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
100 XcmsColor*{.final.} = object # spec : record
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
101 # case longint of
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
102 # 0 : ( RGB : XcmsRGB );
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
103 # 1 : ( RGBi : XcmsRGBi );
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
104 # 2 : ( CIEXYZ : XcmsCIEXYZ );
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
105 # 3 : ( CIEuvY : XcmsCIEuvY );
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
106 # 4 : ( CIExyY : XcmsCIExyY );
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
107 # 5 : ( CIELab : XcmsCIELab );
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
108 # 6 : ( CIELuv : XcmsCIELuv );
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
109 # 7 : ( TekHVC : XcmsTekHVC );
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
110 # 8 : ( Pad : XcmsPad );
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
111 # end;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
112 pad*: XcmsPad
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
113 pixel*: int32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
114 format*: XcmsColorFormat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
115
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
116 PXcmsPerScrnInfo* = ptr XcmsPerScrnInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
117 XcmsPerScrnInfo*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
118 screenWhitePt*: XcmsColor
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
119 functionSet*: XPointer
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
120 screenData*: XPointer
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
121 state*: int8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
122 pad*: array[0..2, char]
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
123
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
124 PXcmsCCC* = ptr XcmsCCC
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
125 XcmsCompressionProc* = proc (para1: PXcmsCCC, para2: PXcmsColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
126 para3: int32, para4: int32, para5: PBool): Status{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
127 cdecl.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
128 XcmsWhiteAdjustProc* = proc (para1: PXcmsCCC, para2: PXcmsColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
129 para3: PXcmsColor, para4: XcmsColorFormat,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
130 para5: PXcmsColor, para6: int32, para7: PBool): Status{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
131 cdecl.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
132 XcmsCCC*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
133 dpy*: PDisplay
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
134 screenNumber*: int32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
135 visual*: PVisual
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
136 clientWhitePt*: XcmsColor
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
137 gamutCompProc*: XcmsCompressionProc
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
138 gamutCompClientData*: XPointer
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
139 whitePtAdjProc*: XcmsWhiteAdjustProc
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
140 whitePtAdjClientData*: XPointer
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
141 pPerScrnInfo*: PXcmsPerScrnInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
142
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
143 PXcmsCCCRec* = ptr XcmsCCCRec
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
144 XcmsCCCRec* = XcmsCCC
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
145
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
146 XcmsScreenInitProc* = proc (para1: PDisplay, para2: int32,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
147 para3: PXcmsPerScrnInfo): Status{.cdecl.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
148 XcmsScreenFreeProc* = proc (para1: XPointer){.cdecl.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
149
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
150 XcmsConversionProc* = proc (){.cdecl.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
151
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
152 PXcmsFuncListPtr* = ptr XcmsFuncListPtr
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
153 XcmsFuncListPtr* = XcmsConversionProc
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
154
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
155 XcmsParseStringProc* = proc (para1: cstring, para2: PXcmsColor): int32{.cdecl.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
156
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
157 PXcmsColorSpace* = ptr XcmsColorSpace
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
158 XcmsColorSpace*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
159 prefix*: cstring
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
160 id*: XcmsColorFormat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
161 parseString*: XcmsParseStringProc
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
162 to_CIEXYZ*: XcmsFuncListPtr
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
163 from_CIEXYZ*: XcmsFuncListPtr
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
164 inverse_flag*: int32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
165
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
166 PXcmsFunctionSet* = ptr XcmsFunctionSet
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
167 XcmsFunctionSet*{.final.} = object # error
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
168 # extern Status XcmsAddColorSpace (
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
169 # in declaration at line 323
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
170 DDColorSpaces*: ptr PXcmsColorSpace
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
171 screenInitProc*: XcmsScreenInitProc
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
172 screenFreeProc*: XcmsScreenFreeProc
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
173
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
174 proc XcmsAddFunctionSet*(para1: PXcmsFunctionSet): Status{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
175 dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
176 proc XcmsAllocColor*(para1: PDisplay, para2: Colormap, para3: PXcmsColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
177 para4: XcmsColorFormat): Status{.cdecl, dynlib: libX11,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
178 importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
179 proc XcmsAllocNamedColor*(para1: PDisplay, para2: Colormap, para3: cstring,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
180 para4: PXcmsColor, para5: PXcmsColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
181 para6: XcmsColorFormat): Status{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
182 dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
183 proc XcmsCCCOfColormap*(para1: PDisplay, para2: Colormap): XcmsCCC{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
184 dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
185 proc XcmsCIELabClipab*(para1: XcmsCCC, para2: PXcmsColor, para3: int32,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
186 para4: int32, para5: PBool): Status{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
187 dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
188 proc XcmsCIELabClipL*(para1: XcmsCCC, para2: PXcmsColor, para3: int32,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
189 para4: int32, para5: PBool): Status{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
190 dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
191 proc XcmsCIELabClipLab*(para1: XcmsCCC, para2: PXcmsColor, para3: int32,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
192 para4: int32, para5: PBool): Status{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
193 dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
194 proc XcmsCIELabQueryMaxC*(para1: XcmsCCC, para2: XcmsFloat, para3: XcmsFloat,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
195 para4: PXcmsColor): Status{.cdecl, dynlib: libX11,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
196 importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
197 proc XcmsCIELabQueryMaxL*(para1: XcmsCCC, para2: XcmsFloat, para3: XcmsFloat,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
198 para4: PXcmsColor): Status{.cdecl, dynlib: libX11,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
199 importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
200 proc XcmsCIELabQueryMaxLC*(para1: XcmsCCC, para2: XcmsFloat, para3: PXcmsColor): Status{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
201 cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
202 proc XcmsCIELabQueryMinL*(para1: XcmsCCC, para2: XcmsFloat, para3: XcmsFloat,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
203 para4: PXcmsColor): Status{.cdecl, dynlib: libX11,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
204 importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
205 proc XcmsCIELabToCIEXYZ*(para1: XcmsCCC, para2: PXcmsColor, para3: PXcmsColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
206 para4: int32): Status{.cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
207 proc XcmsCIELabWhiteShiftColors*(para1: XcmsCCC, para2: PXcmsColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
208 para3: PXcmsColor, para4: XcmsColorFormat,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
209 para5: PXcmsColor, para6: int32, para7: PBool): Status{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
210 cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
211 proc XcmsCIELuvClipL*(para1: XcmsCCC, para2: PXcmsColor, para3: int32,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
212 para4: int32, para5: PBool): Status{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
213 dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
214 proc XcmsCIELuvClipLuv*(para1: XcmsCCC, para2: PXcmsColor, para3: int32,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
215 para4: int32, para5: PBool): Status{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
216 dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
217 proc XcmsCIELuvClipuv*(para1: XcmsCCC, para2: PXcmsColor, para3: int32,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
218 para4: int32, para5: PBool): Status{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
219 dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
220 proc XcmsCIELuvQueryMaxC*(para1: XcmsCCC, para2: XcmsFloat, para3: XcmsFloat,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
221 para4: PXcmsColor): Status{.cdecl, dynlib: libX11,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
222 importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
223 proc XcmsCIELuvQueryMaxL*(para1: XcmsCCC, para2: XcmsFloat, para3: XcmsFloat,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
224 para4: PXcmsColor): Status{.cdecl, dynlib: libX11,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
225 importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
226 proc XcmsCIELuvQueryMaxLC*(para1: XcmsCCC, para2: XcmsFloat, para3: PXcmsColor): Status{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
227 cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
228 proc XcmsCIELuvQueryMinL*(para1: XcmsCCC, para2: XcmsFloat, para3: XcmsFloat,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
229 para4: PXcmsColor): Status{.cdecl, dynlib: libX11,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
230 importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
231 proc XcmsCIELuvToCIEuvY*(para1: XcmsCCC, para2: PXcmsColor, para3: PXcmsColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
232 para4: int32): Status{.cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
233 proc XcmsCIELuvWhiteShiftColors*(para1: XcmsCCC, para2: PXcmsColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
234 para3: PXcmsColor, para4: XcmsColorFormat,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
235 para5: PXcmsColor, para6: int32, para7: PBool): Status{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
236 cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
237 proc XcmsCIEXYZToCIELab*(para1: XcmsCCC, para2: PXcmsColor, para3: PXcmsColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
238 para4: int32): Status{.cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
239 proc XcmsCIEXYZToCIEuvY*(para1: XcmsCCC, para2: PXcmsColor, para3: PXcmsColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
240 para4: int32): Status{.cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
241 proc XcmsCIEXYZToCIExyY*(para1: XcmsCCC, para2: PXcmsColor, para3: PXcmsColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
242 para4: int32): Status{.cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
243 proc XcmsCIEXYZToRGBi*(para1: XcmsCCC, para2: PXcmsColor, para3: int32,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
244 para4: PBool): Status{.cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
245 proc XcmsCIEuvYToCIELuv*(para1: XcmsCCC, para2: PXcmsColor, para3: PXcmsColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
246 para4: int32): Status{.cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
247 proc XcmsCIEuvYToCIEXYZ*(para1: XcmsCCC, para2: PXcmsColor, para3: PXcmsColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
248 para4: int32): Status{.cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
249 proc XcmsCIEuvYToTekHVC*(para1: XcmsCCC, para2: PXcmsColor, para3: PXcmsColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
250 para4: int32): Status{.cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
251 proc XcmsCIExyYToCIEXYZ*(para1: XcmsCCC, para2: PXcmsColor, para3: PXcmsColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
252 para4: int32): Status{.cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
253 proc XcmsClientWhitePointOfCCC*(para1: XcmsCCC): PXcmsColor{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
254 dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
255 proc XcmsConvertColors*(para1: XcmsCCC, para2: PXcmsColor, para3: int32,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
256 para4: XcmsColorFormat, para5: PBool): Status{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
257 dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
258 proc XcmsCreateCCC*(para1: PDisplay, para2: int32, para3: PVisual,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
259 para4: PXcmsColor, para5: XcmsCompressionProc,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
260 para6: XPointer, para7: XcmsWhiteAdjustProc,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
261 para8: XPointer): XcmsCCC{.cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
262 proc XcmsDefaultCCC*(para1: PDisplay, para2: int32): XcmsCCC{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
263 dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
264 proc XcmsDisplayOfCCC*(para1: XcmsCCC): PDisplay{.cdecl, dynlib: libX11,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
265 importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
266 proc XcmsFormatOfPrefix*(para1: cstring): XcmsColorFormat{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
267 dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
268 proc XcmsFreeCCC*(para1: XcmsCCC){.cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
269 proc XcmsLookupColor*(para1: PDisplay, para2: Colormap, para3: cstring,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
270 para4: PXcmsColor, para5: PXcmsColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
271 para6: XcmsColorFormat): Status{.cdecl, dynlib: libX11,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
272 importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
273 proc XcmsPrefixOfFormat*(para1: XcmsColorFormat): cstring{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
274 dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
275 proc XcmsQueryBlack*(para1: XcmsCCC, para2: XcmsColorFormat, para3: PXcmsColor): Status{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
276 cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
277 proc XcmsQueryBlue*(para1: XcmsCCC, para2: XcmsColorFormat, para3: PXcmsColor): Status{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
278 cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
279 proc XcmsQueryColor*(para1: PDisplay, para2: Colormap, para3: PXcmsColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
280 para4: XcmsColorFormat): Status{.cdecl, dynlib: libX11,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
281 importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
282 proc XcmsQueryColors*(para1: PDisplay, para2: Colormap, para3: PXcmsColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
283 para4: int32, para5: XcmsColorFormat): Status{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
284 dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
285 proc XcmsQueryGreen*(para1: XcmsCCC, para2: XcmsColorFormat, para3: PXcmsColor): Status{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
286 cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
287 proc XcmsQueryRed*(para1: XcmsCCC, para2: XcmsColorFormat, para3: PXcmsColor): Status{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
288 cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
289 proc XcmsQueryWhite*(para1: XcmsCCC, para2: XcmsColorFormat, para3: PXcmsColor): Status{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
290 cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
291 proc XcmsRGBiToCIEXYZ*(para1: XcmsCCC, para2: PXcmsColor, para3: int32,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
292 para4: PBool): Status{.cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
293 proc XcmsRGBiToRGB*(para1: XcmsCCC, para2: PXcmsColor, para3: int32,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
294 para4: PBool): Status{.cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
295 proc XcmsRGBToRGBi*(para1: XcmsCCC, para2: PXcmsColor, para3: int32,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
296 para4: PBool): Status{.cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
297 proc XcmsScreenNumberOfCCC*(para1: XcmsCCC): int32{.cdecl, dynlib: libX11,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
298 importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
299 proc XcmsScreenWhitePointOfCCC*(para1: XcmsCCC): PXcmsColor{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
300 dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
301 proc XcmsSetCCCOfColormap*(para1: PDisplay, para2: Colormap, para3: XcmsCCC): XcmsCCC{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
302 cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
303 proc XcmsSetCompressionProc*(para1: XcmsCCC, para2: XcmsCompressionProc,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
304 para3: XPointer): XcmsCompressionProc{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
305 dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
306 proc XcmsSetWhiteAdjustProc*(para1: XcmsCCC, para2: XcmsWhiteAdjustProc,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
307 para3: XPointer): XcmsWhiteAdjustProc{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
308 dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
309 proc XcmsSetWhitePoint*(para1: XcmsCCC, para2: PXcmsColor): Status{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
310 dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
311 proc XcmsStoreColor*(para1: PDisplay, para2: Colormap, para3: PXcmsColor): Status{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
312 cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
313 proc XcmsStoreColors*(para1: PDisplay, para2: Colormap, para3: PXcmsColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
314 para4: int32, para5: PBool): Status{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
315 dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
316 proc XcmsTekHVCClipC*(para1: XcmsCCC, para2: PXcmsColor, para3: int32,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
317 para4: int32, para5: PBool): Status{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
318 dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
319 proc XcmsTekHVCClipV*(para1: XcmsCCC, para2: PXcmsColor, para3: int32,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
320 para4: int32, para5: PBool): Status{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
321 dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
322 proc XcmsTekHVCClipVC*(para1: XcmsCCC, para2: PXcmsColor, para3: int32,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
323 para4: int32, para5: PBool): Status{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
324 dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
325 proc XcmsTekHVCQueryMaxC*(para1: XcmsCCC, para2: XcmsFloat, para3: XcmsFloat,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
326 para4: PXcmsColor): Status{.cdecl, dynlib: libX11,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
327 importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
328 proc XcmsTekHVCQueryMaxV*(para1: XcmsCCC, para2: XcmsFloat, para3: XcmsFloat,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
329 para4: PXcmsColor): Status{.cdecl, dynlib: libX11,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
330 importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
331 proc XcmsTekHVCQueryMaxVC*(para1: XcmsCCC, para2: XcmsFloat, para3: PXcmsColor): Status{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
332 cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
333 proc XcmsTekHVCQueryMaxVSamples*(para1: XcmsCCC, para2: XcmsFloat,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
334 para3: PXcmsColor, para4: int32): Status{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
335 cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
336 proc XcmsTekHVCQueryMinV*(para1: XcmsCCC, para2: XcmsFloat, para3: XcmsFloat,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
337 para4: PXcmsColor): Status{.cdecl, dynlib: libX11,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
338 importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
339 proc XcmsTekHVCToCIEuvY*(para1: XcmsCCC, para2: PXcmsColor, para3: PXcmsColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
340 para4: int32): Status{.cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
341 proc XcmsTekHVCWhiteShiftColors*(para1: XcmsCCC, para2: PXcmsColor,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
342 para3: PXcmsColor, para4: XcmsColorFormat,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
343 para5: PXcmsColor, para6: int32, para7: PBool): Status{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
344 cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
345 proc XcmsVisualOfCCC*(para1: XcmsCCC): PVisual{.cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
346 # implementation
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
347
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
348 proc XcmsUndefinedFormat(): XcmsColorFormat =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
349 result = 0x00000000'i32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
350
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
351 proc XcmsCIEXYZFormat(): XcmsColorFormat =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
352 result = 0x00000001'i32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
353
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
354 proc XcmsCIEuvYFormat(): XcmsColorFormat =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
355 result = 0x00000002'i32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
356
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
357 proc XcmsCIExyYFormat(): XcmsColorFormat =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
358 result = 0x00000003'i32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
359
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
360 proc XcmsCIELabFormat(): XcmsColorFormat =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
361 result = 0x00000004'i32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
362
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
363 proc XcmsCIELuvFormat(): XcmsColorFormat =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
364 result = 0x00000005'i32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
365
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
366 proc XcmsTekHVCFormat(): XcmsColorFormat =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
367 result = 0x00000006'i32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
368
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
369 proc XcmsRGBFormat(): XcmsColorFormat =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
370 result = 0x80000000'i32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
371
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
372 proc XcmsRGBiFormat(): XcmsColorFormat =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
373 result = 0x80000001'i32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
374
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
375 #when defined(MACROS):
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
376 proc DisplayOfCCC(ccc: XcmsCCC): PDisplay =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
377 result = ccc.dpy
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
378
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
379 proc ScreenNumberOfCCC(ccc: XcmsCCC): int32 =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
380 result = ccc.screenNumber
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
381
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
382 proc VisualOfCCC(ccc: XcmsCCC): PVisual =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
383 result = ccc.visual
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
384
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
385 proc ClientWhitePointOfCCC(ccc: var XcmsCCC): ptr XcmsColor =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
386 result = addr(ccc.clientWhitePt)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
387
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
388 proc ScreenWhitePointOfCCC(ccc: var XcmsCCC): ptr XcmsColor =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
389 result = addr(ccc.pPerScrnInfo.screenWhitePt)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
390
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
391 proc FunctionSetOfCCC(ccc: XcmsCCC): Xpointer =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
392 result = ccc.pPerScrnInfo.functionSet
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
393