-
Notifications
You must be signed in to change notification settings - Fork 4
/
types.go
182 lines (145 loc) · 5.53 KB
/
types.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
// 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"
import "unsafe"
// Bool type as declared in include/cairo.h:107
type Bool int32
// Cairo as declared in include/cairo.h:124
type Cairo C.cairo_t
// Surface as declared in include/cairo.h:153
type Surface C.cairo_surface_t
// Device as declared in include/cairo.h:171
type Device C.cairo_device_t
// Matrix as declared in include/cairo.h:196
type Matrix struct {
Xx float64
Yx float64
Xy float64
Yy float64
X0 float64
Y0 float64
ref6fd9c783 *C.cairo_matrix_t
allocs6fd9c783 interface{}
}
// Pattern as declared in include/cairo.h:220
type Pattern C.cairo_pattern_t
// DestroyFunc type as declared in include/cairo.h:232
type DestroyFunc func(data unsafe.Pointer)
// UserDataKey as declared in include/cairo.h:248
type UserDataKey struct {
Unused int32
refb2afcf30 *C.cairo_user_data_key_t
allocsb2afcf30 interface{}
}
// WriteFunc type as declared in include/cairo.h:445
type WriteFunc func(closure unsafe.Pointer, data string, length uint32) Status
// ReadFunc type as declared in include/cairo.h:467
type ReadFunc func(closure unsafe.Pointer, data *byte, length uint32) Status
// RectangleInt as declared in include/cairo.h:486
type RectangleInt struct {
X int32
Y int32
Width int32
Height int32
ref182a0d2b *C.cairo_rectangle_int_t
allocs182a0d2b interface{}
}
// Rectangle as declared in include/cairo.h:1004
type Rectangle struct {
X float64
Y float64
Width float64
Height float64
ref9b663fb6 *C.cairo_rectangle_t
allocs9b663fb6 interface{}
}
// RectangleList as declared in include/cairo.h:1021
type RectangleList struct {
Status Status
Rectangles []Rectangle
NumRectangles int32
ref149ca897 *C.cairo_rectangle_list_t
allocs149ca897 interface{}
}
// ScaledFont as declared in include/cairo.h:1059
type ScaledFont C.cairo_scaled_font_t
// FontFace as declared in include/cairo.h:1080
type FontFace C.cairo_font_face_t
// Glyph as declared in include/cairo.h:1112
type Glyph struct {
Index uint
X float64
Y float64
ref5b16733c *C.cairo_glyph_t
allocs5b16733c interface{}
}
// TextCluster as declared in include/cairo.h:1143
type TextCluster struct {
NumBytes int32
NumGlyphs int32
refd989a040 *C.cairo_text_cluster_t
allocsd989a040 interface{}
}
// TextExtents as declared in include/cairo.h:1200
type TextExtents struct {
XBearing float64
YBearing float64
Width float64
Height float64
XAdvance float64
YAdvance float64
refe2add9c7 *C.cairo_text_extents_t
allocse2add9c7 interface{}
}
// FontExtents as declared in include/cairo.h:1251
type FontExtents struct {
Ascent float64
Descent float64
Height float64
MaxXAdvance float64
MaxYAdvance float64
refbc0b0f3c *C.cairo_font_extents_t
allocsbc0b0f3c interface{}
}
// FontOptions as declared in include/cairo.h:1385
type FontOptions C.cairo_font_options_t
// UserScaledFontInitFunc type as declared in include/cairo.h:1729
type UserScaledFontInitFunc func(scaledFont *ScaledFont, cr *Cairo, extents *FontExtents) Status
// UserScaledFontRenderGlyphFunc type as declared in include/cairo.h:1776
type UserScaledFontRenderGlyphFunc func(scaledFont *ScaledFont, glyph uint, cr *Cairo, extents *TextExtents) Status
// UserScaledFontTextToGlyphsFunc type as declared in include/cairo.h:1846
type UserScaledFontTextToGlyphsFunc func(scaledFont *ScaledFont, utf8 string, utf8Len int32, glyphs []*Glyph, numGlyphs *int32, clusters []*TextCluster, numClusters *int32, clusterFlags []TextClusterFlags) Status
// UserScaledFontUnicodeToGlyphFunc type as declared in include/cairo.h:1893
type UserScaledFontUnicodeToGlyphFunc func(scaledFont *ScaledFont, unicode uint, glyphIndex *uint) Status
// PathData as declared in include/cairo.h:2068
const sizeofPathData = unsafe.Sizeof(C.cairo_path_data_t{})
type PathData [sizeofPathData]byte
// Path as declared in include/cairo.h:2104
type Path struct {
Status Status
Data []PathData
NumData int32
reffd10d41e *C.cairo_path_t
allocsfd10d41e interface{}
}
// SurfaceObserverCallback type as declared in include/cairo.h:2258
type SurfaceObserverCallback func(observer *Surface, target *Surface, data unsafe.Pointer)
// RasterSourceAcquireFunc type as declared in include/cairo.h:2629
type RasterSourceAcquireFunc func(pattern *Pattern, callbackData unsafe.Pointer, target *Surface, extents *RectangleInt) *Surface
// RasterSourceReleaseFunc type as declared in include/cairo.h:2649
type RasterSourceReleaseFunc func(pattern *Pattern, callbackData unsafe.Pointer, surface *Surface)
// RasterSourceSnapshotFunc type as declared in include/cairo.h:2670
type RasterSourceSnapshotFunc func(pattern *Pattern, callbackData unsafe.Pointer) Status
// RasterSourceCopyFunc type as declared in include/cairo.h:2688
type RasterSourceCopyFunc func(pattern *Pattern, callbackData unsafe.Pointer, other *Pattern) Status
// RasterSourceFinishFunc type as declared in include/cairo.h:2703
type RasterSourceFinishFunc func(pattern *Pattern, callbackData unsafe.Pointer)
// Region as declared in include/cairo.h:3079
type Region C.cairo_region_t