-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconst.go
430 lines (380 loc) · 12.9 KB
/
const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
// THE AUTOGENERATED LICENSE. ALL THE RIGHTS ARE RESERVED BY ROBOTS.
// WARNING: This file has automatically been generated on Thu, 11 Jan 2018 16:22:52 MSK.
// By https://git.io/c-for-go. DO NOT EDIT.
package cairo
/*
#include "include/cairo.h"
#include <stdlib.h>
#include "cgo_helpers.h"
*/
import "C"
const (
// HasMimeSurface as defined in cairo/<predefine>:24
HasMimeSurface = 1
// HasFcFont as defined in cairo/<predefine>:25
HasFcFont = 1
// HasGobjectFunctions as defined in cairo/<predefine>:26
HasGobjectFunctions = 1
// HasObserverSurface as defined in cairo/<predefine>:27
HasObserverSurface = 1
// HasRecordingSurface as defined in cairo/<predefine>:28
HasRecordingSurface = 1
// HasSvgSurface as defined in cairo/<predefine>:29
HasSvgSurface = 1
// HasUserFont as defined in cairo/<predefine>:30
HasUserFont = 1
// HasImageSurface as defined in cairo/<predefine>:31
HasImageSurface = 1
// HasPsSurface as defined in cairo/<predefine>:32
HasPsSurface = 1
// HasScriptSurface as defined in cairo/<predefine>:33
HasScriptSurface = 1
// HasFtFont as defined in cairo/<predefine>:34
HasFtFont = 1
// HasPdfSurface as defined in cairo/<predefine>:35
HasPdfSurface = 1
// HasPngFunctions as defined in cairo/<predefine>:36
HasPngFunctions = 1
// HasTeeSurface as defined in cairo/<predefine>:37
HasTeeSurface = 1
// Version as defined in include/cairo.h:68
Version = 11511
// TagDest as defined in include/cairo.h:1031
TagDest = "cairo.dest"
// TagLink as defined in include/cairo.h:1032
TagLink = "Link"
// MimeTypeJpeg as defined in include/cairo.h:2455
MimeTypeJpeg = "image/jpeg"
// MimeTypePng as defined in include/cairo.h:2456
MimeTypePng = "image/png"
// MimeTypeJp2 as defined in include/cairo.h:2457
MimeTypeJp2 = "image/jp2"
// MimeTypeUri as defined in include/cairo.h:2458
MimeTypeUri = "text/x-uri"
// MimeTypeUniqueId as defined in include/cairo.h:2459
MimeTypeUniqueId = "application/x-cairo.uuid"
// MimeTypeJbig2 as defined in include/cairo.h:2460
MimeTypeJbig2 = "application/x-cairo.jbig2"
// MimeTypeJbig2Global as defined in include/cairo.h:2461
MimeTypeJbig2Global = "application/x-cairo.jbig2-global"
// MimeTypeJbig2GlobalId as defined in include/cairo.h:2462
MimeTypeJbig2GlobalId = "application/x-cairo.jbig2-global-id"
// MimeTypeCcittFax as defined in include/cairo.h:2463
MimeTypeCcittFax = "image/g3fax"
// MimeTypeCcittFaxParams as defined in include/cairo.h:2464
MimeTypeCcittFaxParams = "application/x-cairo.ccitt.params"
// MimeTypeEps as defined in include/cairo.h:2465
MimeTypeEps = "application/postscript"
// MimeTypeEpsParams as defined in include/cairo.h:2466
MimeTypeEpsParams = "application/x-cairo.eps.params"
// VersionMajor as defined in include/cairo-version.h:4
VersionMajor = 1
// VersionMinor as defined in include/cairo-version.h:5
VersionMinor = 15
// VersionMicro as defined in include/cairo-version.h:6
VersionMicro = 11
// HasQuartzFont as defined in include/cairo-features.h:14
HasQuartzFont = 1
// HasQuartzSurface as defined in include/cairo-features.h:15
HasQuartzSurface = 1
// HasXlibSurface as defined in include/cairo-features.h:20
HasXlibSurface = 1
// HasXlibXrenderSurface as defined in include/cairo-features.h:21
HasXlibXrenderSurface = 1
)
// Status as declared in include/cairo.h:361
type Status int32
// Status enumeration from include/cairo.h:361
const (
StatusSuccess Status = iota
StatusNoMemory Status = 1
StatusInvalidRestore Status = 2
StatusInvalidPopGroup Status = 3
StatusNoCurrentPoint Status = 4
StatusInvalidMatrix Status = 5
StatusInvalidStatus Status = 6
StatusNullPointer Status = 7
StatusInvalidString Status = 8
StatusInvalidPathData Status = 9
StatusReadError Status = 10
StatusWriteError Status = 11
StatusSurfaceFinished Status = 12
StatusSurfaceTypeMismatch Status = 13
StatusPatternTypeMismatch Status = 14
StatusInvalidContent Status = 15
StatusInvalidFormat Status = 16
StatusInvalidVisual Status = 17
StatusFileNotFound Status = 18
StatusInvalidDash Status = 19
StatusInvalidDscComment Status = 20
StatusInvalidIndex Status = 21
StatusClipNotRepresentable Status = 22
StatusTempFileError Status = 23
StatusInvalidStride Status = 24
StatusFontTypeMismatch Status = 25
StatusUserFontImmutable Status = 26
StatusUserFontError Status = 27
StatusNegativeCount Status = 28
StatusInvalidClusters Status = 29
StatusInvalidSlant Status = 30
StatusInvalidWeight Status = 31
StatusInvalidSize Status = 32
StatusUserFontNotImplemented Status = 33
StatusDeviceTypeMismatch Status = 34
StatusDeviceError Status = 35
StatusInvalidMeshConstruction Status = 36
StatusDeviceFinished Status = 37
StatusJbig2GlobalMissing Status = 38
StatusPngError Status = 39
StatusFreetypeError Status = 40
StatusWin32GdiError Status = 41
StatusTagError Status = 42
StatusLastStatus Status = 43
)
// Content as declared in include/cairo.h:383
type Content int32
// Content enumeration from include/cairo.h:383
const (
ContentColor Content = 4096
ContentAlpha Content = 8192
ContentColorAlpha Content = 12288
)
// Format as declared in include/cairo.h:424
type Format int32
// Format enumeration from include/cairo.h:424
const (
FormatInvalid Format = -1
FormatArgb32 Format = 0
FormatRgb24 Format = 1
FormatA8 Format = 2
FormatA1 Format = 3
FormatRgb16565 Format = 4
FormatRgb30 Format = 5
)
// Operator as declared in include/cairo.h:647
type Operator int32
// Operator enumeration from include/cairo.h:647
const (
OperatorClear Operator = iota
OperatorSource Operator = 1
OperatorOver Operator = 2
OperatorIn Operator = 3
OperatorOut Operator = 4
OperatorAtop Operator = 5
OperatorDest Operator = 6
OperatorDestOver Operator = 7
OperatorDestIn Operator = 8
OperatorDestOut Operator = 9
OperatorDestAtop Operator = 10
OperatorXor Operator = 11
OperatorAdd Operator = 12
OperatorSaturate Operator = 13
OperatorMultiply Operator = 14
OperatorScreen Operator = 15
OperatorOverlay Operator = 16
OperatorDarken Operator = 17
OperatorLighten Operator = 18
OperatorColorDodge Operator = 19
OperatorColorBurn Operator = 20
OperatorHardLight Operator = 21
OperatorSoftLight Operator = 22
OperatorDifference Operator = 23
OperatorExclusion Operator = 24
OperatorHslHue Operator = 25
OperatorHslSaturation Operator = 26
OperatorHslColor Operator = 27
OperatorHslLuminosity Operator = 28
)
// Antialias as declared in include/cairo.h:721
type Antialias int32
// Antialias enumeration from include/cairo.h:721
const (
AntialiasDefault Antialias = iota
AntialiasNone Antialias = 1
AntialiasGray Antialias = 2
AntialiasSubpixel Antialias = 3
AntialiasFast Antialias = 4
AntialiasGood Antialias = 5
AntialiasBest Antialias = 6
)
// FillRule as declared in include/cairo.h:756
type FillRule int32
// FillRule enumeration from include/cairo.h:756
const (
FillRuleWinding FillRule = iota
FillRuleEvenOdd FillRule = 1
)
// LineCap as declared in include/cairo.h:780
type LineCap int32
// LineCap enumeration from include/cairo.h:780
const (
LineCapButt LineCap = iota
LineCapRound LineCap = 1
LineCapSquare LineCap = 2
)
// LineJoin as declared in include/cairo.h:804
type LineJoin int32
// LineJoin enumeration from include/cairo.h:804
const (
LineJoinMiter LineJoin = iota
LineJoinRound LineJoin = 1
LineJoinBevel LineJoin = 2
)
// TextClusterFlags as declared in include/cairo.h:1162
type TextClusterFlags int32
// TextClusterFlags enumeration from include/cairo.h:1162
const (
TextClusterFlagBackward TextClusterFlags = 1
)
// FontSlant as declared in include/cairo.h:1267
type FontSlant int32
// FontSlant enumeration from include/cairo.h:1267
const (
FontSlantNormal FontSlant = iota
FontSlantItalic FontSlant = 1
FontSlantOblique FontSlant = 2
)
// FontWeight as declared in include/cairo.h:1281
type FontWeight int32
// FontWeight enumeration from include/cairo.h:1281
const (
FontWeightNormal FontWeight = iota
FontWeightBold FontWeight = 1
)
// SubpixelOrder as declared in include/cairo.h:1308
type SubpixelOrder int32
// SubpixelOrder enumeration from include/cairo.h:1308
const (
SubpixelOrderDefault SubpixelOrder = iota
SubpixelOrderRgb SubpixelOrder = 1
SubpixelOrderBgr SubpixelOrder = 2
SubpixelOrderVrgb SubpixelOrder = 3
SubpixelOrderVbgr SubpixelOrder = 4
)
// HintStyle as declared in include/cairo.h:1340
type HintStyle int32
// HintStyle enumeration from include/cairo.h:1340
const (
HintStyleDefault HintStyle = iota
HintStyleNone HintStyle = 1
HintStyleSlight HintStyle = 2
HintStyleMedium HintStyle = 3
HintStyleFull HintStyle = 4
)
// HintMetrics as declared in include/cairo.h:1361
type HintMetrics int32
// HintMetrics enumeration from include/cairo.h:1361
const (
HintMetricsDefault HintMetrics = iota
HintMetricsOff HintMetrics = 1
HintMetricsOn HintMetrics = 2
)
// FontType as declared in include/cairo.h:1578
type FontType int32
// FontType enumeration from include/cairo.h:1578
const (
FontTypeToy FontType = iota
FontTypeFt FontType = 1
FontTypeWin32 FontType = 2
FontTypeQuartz FontType = 3
FontTypeUser FontType = 4
)
// PathDataType as declared in include/cairo.h:1998
type PathDataType int32
// PathDataType enumeration from include/cairo.h:1998
const (
PathMoveTo PathDataType = iota
PathLineTo PathDataType = 1
PathCurveTo PathDataType = 2
PathClosePath PathDataType = 3
)
// DeviceType as declared in include/cairo.h:2174
type DeviceType int32
// DeviceType enumeration from include/cairo.h:2174
const (
DeviceTypeDrm DeviceType = iota
DeviceTypeGl DeviceType = 1
DeviceTypeScript DeviceType = 2
DeviceTypeXcb DeviceType = 3
DeviceTypeXlib DeviceType = 4
DeviceTypeXml DeviceType = 5
DeviceTypeCogl DeviceType = 6
DeviceTypeWin32 DeviceType = 7
DeviceTypeInvalid DeviceType = -1
)
// SurfaceObserverMode as declared in include/cairo.h:2252
type SurfaceObserverMode int32
// SurfaceObserverMode enumeration from include/cairo.h:2252
const (
SurfaceObserverNormal SurfaceObserverMode = iota
SurfaceObserverRecordOperations SurfaceObserverMode = 1
)
// SurfaceType as declared in include/cairo.h:2424
type SurfaceType int32
// SurfaceType enumeration from include/cairo.h:2424
const (
SurfaceTypeImage SurfaceType = iota
SurfaceTypePdf SurfaceType = 1
SurfaceTypePs SurfaceType = 2
SurfaceTypeXlib SurfaceType = 3
SurfaceTypeXcb SurfaceType = 4
SurfaceTypeGlitz SurfaceType = 5
SurfaceTypeQuartz SurfaceType = 6
SurfaceTypeWin32 SurfaceType = 7
SurfaceTypeBeos SurfaceType = 8
SurfaceTypeDirectfb SurfaceType = 9
SurfaceTypeSvg SurfaceType = 10
SurfaceTypeOs2 SurfaceType = 11
SurfaceTypeWin32Printing SurfaceType = 12
SurfaceTypeQuartzImage SurfaceType = 13
SurfaceTypeScript SurfaceType = 14
SurfaceTypeQt SurfaceType = 15
SurfaceTypeRecording SurfaceType = 16
SurfaceTypeVg SurfaceType = 17
SurfaceTypeGl SurfaceType = 18
SurfaceTypeDrm SurfaceType = 19
SurfaceTypeTee SurfaceType = 20
SurfaceTypeXml SurfaceType = 21
SurfaceTypeSkia SurfaceType = 22
SurfaceTypeSubsurface SurfaceType = 23
SurfaceTypeCogl SurfaceType = 24
)
// PatternType as declared in include/cairo.h:2832
type PatternType int32
// PatternType enumeration from include/cairo.h:2832
const (
PatternTypeSolid PatternType = iota
PatternTypeSurface PatternType = 1
PatternTypeLinear PatternType = 2
PatternTypeRadial PatternType = 3
PatternTypeMesh PatternType = 4
PatternTypeRasterSource PatternType = 5
)
// Extend as declared in include/cairo.h:2922
type Extend int32
// Extend enumeration from include/cairo.h:2922
const (
ExtendNone Extend = iota
ExtendRepeat Extend = 1
ExtendReflect Extend = 2
ExtendPad Extend = 3
)
// Filter as declared in include/cairo.h:2957
type Filter int32
// Filter enumeration from include/cairo.h:2957
const (
FilterFast Filter = iota
FilterGood Filter = 1
FilterBest Filter = 2
FilterNearest Filter = 3
FilterBilinear Filter = 4
FilterGaussian Filter = 5
)
// RegionOverlap as declared in include/cairo.h:3096
type RegionOverlap int32
// RegionOverlap enumeration from include/cairo.h:3096
const (
RegionOverlapIn RegionOverlap = iota
RegionOverlapOut RegionOverlap = 1
RegionOverlapPart RegionOverlap = 2
)