Debian Codegraph @

src/freetype.rs

raw symbols ◀ ▶
Source reconstructed at patch state 1 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 /* automatically generated by rust-bindgen */
2
3 pub type FT_Int16 = i16;
4 pub type FT_UInt16 = u16;
5 pub type FT_Int32 = i32;
6 pub type FT_UInt32 = u32;
7 pub type FT_Int64= i64;
8 pub type FT_UInt64= u64;
9 pub use FT_Error;
10
11 #[repr(C)]
12 pub struct __BindgenUnionField<T>(::std::marker::PhantomData<T>);
13 impl <T> __BindgenUnionField<T> {
14 #[inline]
15 pub fn new() -> Self { __BindgenUnionField(::std::marker::PhantomData) }
16 #[inline]
17 pub unsafe fn as_ref(&self) -> &T { ::std::mem::transmute(self) }
18 #[inline]
19 pub unsafe fn as_mut(&mut self) -> &mut T { ::std::mem::transmute(self) }
20 }
21 impl <T> ::std::default::Default for __BindgenUnionField<T> {
22 #[inline]
23 fn default() -> Self { Self::new() }
24 }
25 impl <T> ::std::clone::Clone for __BindgenUnionField<T> {
26 #[inline]
27 fn clone(&self) -> Self { Self::new() }
28 }
29 impl <T> ::std::marker::Copy for __BindgenUnionField<T> { }
30 impl <T> ::std::fmt::Debug for __BindgenUnionField<T> {
31 fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
32 fmt.write_str("__BindgenUnionField")
33 }
34 }
35 pub const FT_RENDER_POOL_SIZE: ::std::os::raw::c_uint = 16384;
36 pub const FT_MAX_MODULES: ::std::os::raw::c_uint = 32;
37 pub const FT_OUTLINE_NONE: ::std::os::raw::c_uint = 0;
38 pub const FT_OUTLINE_OWNER: ::std::os::raw::c_uint = 1;
39 pub const FT_OUTLINE_EVEN_ODD_FILL: ::std::os::raw::c_uint = 2;
40 pub const FT_OUTLINE_REVERSE_FILL: ::std::os::raw::c_uint = 4;
41 pub const FT_OUTLINE_IGNORE_DROPOUTS: ::std::os::raw::c_uint = 8;
42 pub const FT_OUTLINE_SMART_DROPOUTS: ::std::os::raw::c_uint = 16;
43 pub const FT_OUTLINE_INCLUDE_STUBS: ::std::os::raw::c_uint = 32;
44 pub const FT_OUTLINE_HIGH_PRECISION: ::std::os::raw::c_uint = 256;
45 pub const FT_OUTLINE_SINGLE_PASS: ::std::os::raw::c_uint = 512;
46 pub const FT_CURVE_TAG_ON: ::std::os::raw::c_uint = 1;
47 pub const FT_CURVE_TAG_CONIC: ::std::os::raw::c_uint = 0;
48 pub const FT_CURVE_TAG_CUBIC: ::std::os::raw::c_uint = 2;
49 pub const FT_CURVE_TAG_HAS_SCANMODE: ::std::os::raw::c_uint = 4;
50 pub const FT_CURVE_TAG_TOUCH_X: ::std::os::raw::c_uint = 8;
51 pub const FT_CURVE_TAG_TOUCH_Y: ::std::os::raw::c_uint = 16;
52 pub const FT_CURVE_TAG_TOUCH_BOTH: ::std::os::raw::c_uint = 24;
53 pub const FT_Curve_Tag_On: ::std::os::raw::c_uint = 1;
54 pub const FT_Curve_Tag_Conic: ::std::os::raw::c_uint = 0;
55 pub const FT_Curve_Tag_Cubic: ::std::os::raw::c_uint = 2;
56 pub const FT_Curve_Tag_Touch_X: ::std::os::raw::c_uint = 8;
57 pub const FT_Curve_Tag_Touch_Y: ::std::os::raw::c_uint = 16;
58 pub const FT_RASTER_FLAG_DEFAULT: ::std::os::raw::c_uint = 0;
59 pub const FT_RASTER_FLAG_AA: ::std::os::raw::c_uint = 1;
60 pub const FT_RASTER_FLAG_DIRECT: ::std::os::raw::c_uint = 2;
61 pub const FT_RASTER_FLAG_CLIP: ::std::os::raw::c_uint = 4;
62 pub const FT_ERR_BASE: ::std::os::raw::c_uint = 0;
63 pub const FT_FACE_FLAG_SCALABLE: ::std::os::raw::c_uint = 1;
64 pub const FT_FACE_FLAG_FIXED_SIZES: ::std::os::raw::c_uint = 2;
65 pub const FT_FACE_FLAG_FIXED_WIDTH: ::std::os::raw::c_uint = 4;
66 pub const FT_FACE_FLAG_SFNT: ::std::os::raw::c_uint = 8;
67 pub const FT_FACE_FLAG_HORIZONTAL: ::std::os::raw::c_uint = 16;
68 pub const FT_FACE_FLAG_VERTICAL: ::std::os::raw::c_uint = 32;
69 pub const FT_FACE_FLAG_KERNING: ::std::os::raw::c_uint = 64;
70 pub const FT_FACE_FLAG_FAST_GLYPHS: ::std::os::raw::c_uint = 128;
71 pub const FT_FACE_FLAG_MULTIPLE_MASTERS: ::std::os::raw::c_uint = 256;
72 pub const FT_FACE_FLAG_GLYPH_NAMES: ::std::os::raw::c_uint = 512;
73 pub const FT_FACE_FLAG_EXTERNAL_STREAM: ::std::os::raw::c_uint = 1024;
74 pub const FT_FACE_FLAG_HINTER: ::std::os::raw::c_uint = 2048;
75 pub const FT_FACE_FLAG_CID_KEYED: ::std::os::raw::c_uint = 4096;
76 pub const FT_FACE_FLAG_TRICKY: ::std::os::raw::c_uint = 8192;
77 pub const FT_FACE_FLAG_COLOR: ::std::os::raw::c_uint = 16384;
78 pub const FT_STYLE_FLAG_ITALIC: ::std::os::raw::c_uint = 1;
79 pub const FT_STYLE_FLAG_BOLD: ::std::os::raw::c_uint = 2;
80 pub const FT_OPEN_MEMORY: ::std::os::raw::c_uint = 1;
81 pub const FT_OPEN_STREAM: ::std::os::raw::c_uint = 2;
82 pub const FT_OPEN_PATHNAME: ::std::os::raw::c_uint = 4;
83 pub const FT_OPEN_DRIVER: ::std::os::raw::c_uint = 8;
84 pub const FT_OPEN_PARAMS: ::std::os::raw::c_uint = 16;
85 pub const FT_LOAD_DEFAULT: ::std::os::raw::c_uint = 0;
86 pub const FT_LOAD_NO_SCALE: ::std::os::raw::c_uint = 1;
87 pub const FT_LOAD_NO_HINTING: ::std::os::raw::c_uint = 2;
88 pub const FT_LOAD_RENDER: ::std::os::raw::c_uint = 4;
89 pub const FT_LOAD_NO_BITMAP: ::std::os::raw::c_uint = 8;
90 pub const FT_LOAD_VERTICAL_LAYOUT: ::std::os::raw::c_uint = 16;
91 pub const FT_LOAD_FORCE_AUTOHINT: ::std::os::raw::c_uint = 32;
92 pub const FT_LOAD_CROP_BITMAP: ::std::os::raw::c_uint = 64;
93 pub const FT_LOAD_PEDANTIC: ::std::os::raw::c_uint = 128;
94 pub const FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH: ::std::os::raw::c_uint = 512;
95 pub const FT_LOAD_NO_RECURSE: ::std::os::raw::c_uint = 1024;
96 pub const FT_LOAD_IGNORE_TRANSFORM: ::std::os::raw::c_uint = 2048;
97 pub const FT_LOAD_MONOCHROME: ::std::os::raw::c_uint = 4096;
98 pub const FT_LOAD_LINEAR_DESIGN: ::std::os::raw::c_uint = 8192;
99 pub const FT_LOAD_NO_AUTOHINT: ::std::os::raw::c_uint = 32768;
100 pub const FT_LOAD_COLOR: ::std::os::raw::c_uint = 1048576;
101 pub const FT_LOAD_COMPUTE_METRICS: ::std::os::raw::c_uint = 2097152;
102 pub const FT_LOAD_ADVANCE_ONLY: ::std::os::raw::c_uint = 256;
103 pub const FT_LOAD_SBITS_ONLY: ::std::os::raw::c_uint = 16384;
104 pub const FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS: ::std::os::raw::c_uint = 1;
105 pub const FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES: ::std::os::raw::c_uint = 2;
106 pub const FT_SUBGLYPH_FLAG_ROUND_XY_TO_GRID: ::std::os::raw::c_uint = 4;
107 pub const FT_SUBGLYPH_FLAG_SCALE: ::std::os::raw::c_uint = 8;
108 pub const FT_SUBGLYPH_FLAG_XY_SCALE: ::std::os::raw::c_uint = 64;
109 pub const FT_SUBGLYPH_FLAG_2X2: ::std::os::raw::c_uint = 128;
110 pub const FT_SUBGLYPH_FLAG_USE_MY_METRICS: ::std::os::raw::c_uint = 512;
111 pub const FT_FSTYPE_INSTALLABLE_EMBEDDING: ::std::os::raw::c_uint = 0;
112 pub const FT_FSTYPE_RESTRICTED_LICENSE_EMBEDDING: ::std::os::raw::c_uint = 2;
113 pub const FT_FSTYPE_PREVIEW_AND_PRINT_EMBEDDING: ::std::os::raw::c_uint = 4;
114 pub const FT_FSTYPE_EDITABLE_EMBEDDING: ::std::os::raw::c_uint = 8;
115 pub const FT_FSTYPE_NO_SUBSETTING: ::std::os::raw::c_uint = 256;
116 pub const FT_FSTYPE_BITMAP_EMBEDDING_ONLY: ::std::os::raw::c_uint = 512;
117 pub const FT_MODULE_FONT_DRIVER: ::std::os::raw::c_uint = 1;
118 pub const FT_MODULE_RENDERER: ::std::os::raw::c_uint = 2;
119 pub const FT_MODULE_HINTER: ::std::os::raw::c_uint = 4;
120 pub const FT_MODULE_STYLER: ::std::os::raw::c_uint = 8;
121 pub const FT_MODULE_DRIVER_SCALABLE: ::std::os::raw::c_uint = 256;
122 pub const FT_MODULE_DRIVER_NO_OUTLINES: ::std::os::raw::c_uint = 512;
123 pub const FT_MODULE_DRIVER_HAS_HINTER: ::std::os::raw::c_uint = 1024;
124 pub const FT_MODULE_DRIVER_HINTS_LIGHTLY: ::std::os::raw::c_uint = 2048;
125 pub type FT_Fast = ::std::os::raw::c_int;
126 pub type FT_UFast = ::std::os::raw::c_uint;
127 #[repr(C)]
128 #[derive(Debug, Copy)]
129 pub struct FT_MemoryRec_ {
130 pub user: *mut ::std::os::raw::c_void,
131 pub alloc: FT_Alloc_Func,
132 pub free: FT_Free_Func,
133 pub realloc: FT_Realloc_Func,
134 }
135 #[test]
136 #[cfg(target_pointer_width="64")]
137 fn bindgen_test_layout_FT_MemoryRec_() {
138 assert_eq!(::std::mem::size_of::<FT_MemoryRec_>() , 32usize , concat ! (
139 "Size of: " , stringify ! ( FT_MemoryRec_ ) ));
140 assert_eq! (::std::mem::align_of::<FT_MemoryRec_>() , 8usize , concat ! (
141 "Alignment of " , stringify ! ( FT_MemoryRec_ ) ));
142 assert_eq! (unsafe {
143 & ( * ( 0 as * const FT_MemoryRec_ ) ) . user as * const _ as
144 usize } , 0usize , concat ! (
145 "Alignment of field: " , stringify ! ( FT_MemoryRec_ ) , "::"
146 , stringify ! ( user ) ));
147 assert_eq! (unsafe {
148 & ( * ( 0 as * const FT_MemoryRec_ ) ) . alloc as * const _ as
149 usize } , 8usize , concat ! (
150 "Alignment of field: " , stringify ! ( FT_MemoryRec_ ) , "::"
151 , stringify ! ( alloc ) ));
152 assert_eq! (unsafe {
153 & ( * ( 0 as * const FT_MemoryRec_ ) ) . free as * const _ as
154 usize } , 16usize , concat ! (
155 "Alignment of field: " , stringify ! ( FT_MemoryRec_ ) , "::"
156 , stringify ! ( free ) ));
157 assert_eq! (unsafe {
158 & ( * ( 0 as * const FT_MemoryRec_ ) ) . realloc as * const _
159 as usize } , 24usize , concat ! (
160 "Alignment of field: " , stringify ! ( FT_MemoryRec_ ) , "::"
161 , stringify ! ( realloc ) ));
162 }
163 impl Clone for FT_MemoryRec_ {
164 fn clone(&self) -> Self { *self }
165 }
166 pub type FT_Memory = *mut FT_MemoryRec_;
167 pub type FT_Alloc_Func =
168 ::std::option::Option<unsafe extern "C" fn(memory: FT_Memory,
169 size: ::std::os::raw::c_long)
170 -> *mut ::std::os::raw::c_void>;
171 pub type FT_Free_Func =
172 ::std::option::Option<unsafe extern "C" fn(memory: FT_Memory,
173 block:
174 *mut ::std::os::raw::c_void)>;
175 pub type FT_Realloc_Func =
176 ::std::option::Option<unsafe extern "C" fn(memory: FT_Memory,
177 cur_size:
178 ::std::os::raw::c_long,
179 new_size:
180 ::std::os::raw::c_long,
181 block:
182 *mut ::std::os::raw::c_void)
183 -> *mut ::std::os::raw::c_void>;
184 #[repr(C)]
185 #[derive(Debug, Copy)]
186 pub struct FT_StreamRec_ {
187 pub base: *mut ::std::os::raw::c_uchar,
188 pub size: ::std::os::raw::c_ulong,
189 pub pos: ::std::os::raw::c_ulong,
190 pub descriptor: FT_StreamDesc,
191 pub pathname: FT_StreamDesc,
192 pub read: FT_Stream_IoFunc,
193 pub close: FT_Stream_CloseFunc,
194 pub memory: FT_Memory,
195 pub cursor: *mut ::std::os::raw::c_uchar,
196 pub limit: *mut ::std::os::raw::c_uchar,
197 }
198 #[test]
199 #[cfg(target_pointer_width="64")]
200 fn bindgen_test_layout_FT_StreamRec_() {
201 assert_eq!(::std::mem::size_of::<FT_StreamRec_>() , 80usize , concat ! (
202 "Size of: " , stringify ! ( FT_StreamRec_ ) ));
203 assert_eq! (::std::mem::align_of::<FT_StreamRec_>() , 8usize , concat ! (
204 "Alignment of " , stringify ! ( FT_StreamRec_ ) ));
205 assert_eq! (unsafe {
206 & ( * ( 0 as * const FT_StreamRec_ ) ) . base as * const _ as
207 usize } , 0usize , concat ! (
208 "Alignment of field: " , stringify ! ( FT_StreamRec_ ) , "::"
209 , stringify ! ( base ) ));
210 assert_eq! (unsafe {
211 & ( * ( 0 as * const FT_StreamRec_ ) ) . size as * const _ as
212 usize } , 8usize , concat ! (
213 "Alignment of field: " , stringify ! ( FT_StreamRec_ ) , "::"
214 , stringify ! ( size ) ));
215 assert_eq! (unsafe {
216 & ( * ( 0 as * const FT_StreamRec_ ) ) . pos as * const _ as
217 usize } , 16usize , concat ! (
218 "Alignment of field: " , stringify ! ( FT_StreamRec_ ) , "::"
219 , stringify ! ( pos ) ));
220 assert_eq! (unsafe {
221 & ( * ( 0 as * const FT_StreamRec_ ) ) . descriptor as * const
222 _ as usize } , 24usize , concat ! (
223 "Alignment of field: " , stringify ! ( FT_StreamRec_ ) , "::"
224 , stringify ! ( descriptor ) ));
225 assert_eq! (unsafe {
226 & ( * ( 0 as * const FT_StreamRec_ ) ) . pathname as * const _
227 as usize } , 32usize , concat ! (
228 "Alignment of field: " , stringify ! ( FT_StreamRec_ ) , "::"
229 , stringify ! ( pathname ) ));
230 assert_eq! (unsafe {
231 & ( * ( 0 as * const FT_StreamRec_ ) ) . read as * const _ as
232 usize } , 40usize , concat ! (
233 "Alignment of field: " , stringify ! ( FT_StreamRec_ ) , "::"
234 , stringify ! ( read ) ));
235 assert_eq! (unsafe {
236 & ( * ( 0 as * const FT_StreamRec_ ) ) . close as * const _ as
237 usize } , 48usize , concat ! (
238 "Alignment of field: " , stringify ! ( FT_StreamRec_ ) , "::"
239 , stringify ! ( close ) ));
240 assert_eq! (unsafe {
241 & ( * ( 0 as * const FT_StreamRec_ ) ) . memory as * const _
242 as usize } , 56usize , concat ! (
243 "Alignment of field: " , stringify ! ( FT_StreamRec_ ) , "::"
244 , stringify ! ( memory ) ));
245 assert_eq! (unsafe {
246 & ( * ( 0 as * const FT_StreamRec_ ) ) . cursor as * const _
247 as usize } , 64usize , concat ! (
248 "Alignment of field: " , stringify ! ( FT_StreamRec_ ) , "::"
249 , stringify ! ( cursor ) ));
250 assert_eq! (unsafe {
251 & ( * ( 0 as * const FT_StreamRec_ ) ) . limit as * const _ as
252 usize } , 72usize , concat ! (
253 "Alignment of field: " , stringify ! ( FT_StreamRec_ ) , "::"
254 , stringify ! ( limit ) ));
255 }
256 impl Clone for FT_StreamRec_ {
257 fn clone(&self) -> Self { *self }
258 }
259 pub type FT_Stream = *mut FT_StreamRec_;
260 #[repr(C)]
261 #[derive(Debug, Copy)]
262 pub struct FT_StreamDesc_ {
263 pub value: __BindgenUnionField<::std::os::raw::c_long>,
264 pub pointer: __BindgenUnionField<*mut ::std::os::raw::c_void>,
265 pub bindgen_union_field: u64,
266 }
267 #[test]
268 #[cfg(target_pointer_width="64")]
269 fn bindgen_test_layout_FT_StreamDesc_() {
270 assert_eq!(::std::mem::size_of::<FT_StreamDesc_>() , 8usize , concat ! (
271 "Size of: " , stringify ! ( FT_StreamDesc_ ) ));
272 assert_eq! (::std::mem::align_of::<FT_StreamDesc_>() , 8usize , concat ! (
273 "Alignment of " , stringify ! ( FT_StreamDesc_ ) ));
274 assert_eq! (unsafe {
275 & ( * ( 0 as * const FT_StreamDesc_ ) ) . value as * const _
276 as usize } , 0usize , concat ! (
277 "Alignment of field: " , stringify ! ( FT_StreamDesc_ ) , "::"
278 , stringify ! ( value ) ));
279 assert_eq! (unsafe {
280 & ( * ( 0 as * const FT_StreamDesc_ ) ) . pointer as * const _
281 as usize } , 0usize , concat ! (
282 "Alignment of field: " , stringify ! ( FT_StreamDesc_ ) , "::"
283 , stringify ! ( pointer ) ));
284 }
285 impl Clone for FT_StreamDesc_ {
286 fn clone(&self) -> Self { *self }
287 }
288 pub type FT_StreamDesc = FT_StreamDesc_;
289 pub type FT_Stream_IoFunc =
290 ::std::option::Option<unsafe extern "C" fn(stream: FT_Stream,
291 offset:
292 ::std::os::raw::c_ulong,
293 buffer:
294 *mut ::std::os::raw::c_uchar,
295 count: ::std::os::raw::c_ulong)
296 -> ::std::os::raw::c_ulong>;
297 pub type FT_Stream_CloseFunc =
298 ::std::option::Option<unsafe extern "C" fn(stream: FT_Stream)>;
299 pub type FT_StreamRec = FT_StreamRec_;
300 pub type FT_Pos = ::std::os::raw::c_long;
301 #[repr(C)]
302 #[derive(Debug, Copy)]
303 pub struct FT_Vector_ {
304 pub x: FT_Pos,
305 pub y: FT_Pos,
306 }
307 #[test]
308 #[cfg(target_pointer_width="64")]
309 fn bindgen_test_layout_FT_Vector_() {
310 assert_eq!(::std::mem::size_of::<FT_Vector_>() , 16usize , concat ! (
311 "Size of: " , stringify ! ( FT_Vector_ ) ));
312 assert_eq! (::std::mem::align_of::<FT_Vector_>() , 8usize , concat ! (
313 "Alignment of " , stringify ! ( FT_Vector_ ) ));
314 assert_eq! (unsafe {
315 & ( * ( 0 as * const FT_Vector_ ) ) . x as * const _ as usize
316 } , 0usize , concat ! (
317 "Alignment of field: " , stringify ! ( FT_Vector_ ) , "::" ,
318 stringify ! ( x ) ));
319 assert_eq! (unsafe {
320 & ( * ( 0 as * const FT_Vector_ ) ) . y as * const _ as usize
321 } , 8usize , concat ! (
322 "Alignment of field: " , stringify ! ( FT_Vector_ ) , "::" ,
323 stringify ! ( y ) ));
324 }
325 impl Clone for FT_Vector_ {
326 fn clone(&self) -> Self { *self }
327 }
328 pub type FT_Vector = FT_Vector_;
329 #[repr(C)]
330 #[derive(Debug, Copy)]
331 pub struct FT_BBox_ {
332 pub xMin: FT_Pos,
333 pub yMin: FT_Pos,
334 pub xMax: FT_Pos,
335 pub yMax: FT_Pos,
336 }
337 #[test]
338 #[cfg(target_pointer_width="64")]
339 fn bindgen_test_layout_FT_BBox_() {
340 assert_eq!(::std::mem::size_of::<FT_BBox_>() , 32usize , concat ! (
341 "Size of: " , stringify ! ( FT_BBox_ ) ));
342 assert_eq! (::std::mem::align_of::<FT_BBox_>() , 8usize , concat ! (
343 "Alignment of " , stringify ! ( FT_BBox_ ) ));
344 assert_eq! (unsafe {
345 & ( * ( 0 as * const FT_BBox_ ) ) . xMin as * const _ as usize
346 } , 0usize , concat ! (
347 "Alignment of field: " , stringify ! ( FT_BBox_ ) , "::" ,
348 stringify ! ( xMin ) ));
349 assert_eq! (unsafe {
350 & ( * ( 0 as * const FT_BBox_ ) ) . yMin as * const _ as usize
351 } , 8usize , concat ! (
352 "Alignment of field: " , stringify ! ( FT_BBox_ ) , "::" ,
353 stringify ! ( yMin ) ));
354 assert_eq! (unsafe {
355 & ( * ( 0 as * const FT_BBox_ ) ) . xMax as * const _ as usize
356 } , 16usize , concat ! (
357 "Alignment of field: " , stringify ! ( FT_BBox_ ) , "::" ,
358 stringify ! ( xMax ) ));
359 assert_eq! (unsafe {
360 & ( * ( 0 as * const FT_BBox_ ) ) . yMax as * const _ as usize
361 } , 24usize , concat ! (
362 "Alignment of field: " , stringify ! ( FT_BBox_ ) , "::" ,
363 stringify ! ( yMax ) ));
364 }
365 impl Clone for FT_BBox_ {
366 fn clone(&self) -> Self { *self }
367 }
368 pub type FT_BBox = FT_BBox_;
369 #[repr(u32)]
370 #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
371 pub enum FT_Pixel_Mode_ {
372 FT_PIXEL_MODE_NONE = 0,
373 FT_PIXEL_MODE_MONO = 1,
374 FT_PIXEL_MODE_GRAY = 2,
375 FT_PIXEL_MODE_GRAY2 = 3,
376 FT_PIXEL_MODE_GRAY4 = 4,
377 FT_PIXEL_MODE_LCD = 5,
378 FT_PIXEL_MODE_LCD_V = 6,
379 FT_PIXEL_MODE_BGRA = 7,
380 FT_PIXEL_MODE_MAX = 8,
381 }
382 pub use self::FT_Pixel_Mode_ as FT_Pixel_Mode;
383 #[repr(C)]
384 #[derive(Debug, Copy)]
385 pub struct FT_Bitmap_ {
386 pub rows: ::std::os::raw::c_uint,
387 pub width: ::std::os::raw::c_uint,
388 pub pitch: ::std::os::raw::c_int,
389 pub buffer: *mut ::std::os::raw::c_uchar,
390 pub num_grays: ::std::os::raw::c_ushort,
391 pub pixel_mode: ::std::os::raw::c_uchar,
392 pub palette_mode: ::std::os::raw::c_uchar,
393 pub palette: *mut ::std::os::raw::c_void,
394 }
395 #[test]
396 #[cfg(target_pointer_width="64")]
397 fn bindgen_test_layout_FT_Bitmap_() {
398 assert_eq!(::std::mem::size_of::<FT_Bitmap_>() , 40usize , concat ! (
399 "Size of: " , stringify ! ( FT_Bitmap_ ) ));
400 assert_eq! (::std::mem::align_of::<FT_Bitmap_>() , 8usize , concat ! (
401 "Alignment of " , stringify ! ( FT_Bitmap_ ) ));
402 assert_eq! (unsafe {
403 & ( * ( 0 as * const FT_Bitmap_ ) ) . rows as * const _ as
404 usize } , 0usize , concat ! (
405 "Alignment of field: " , stringify ! ( FT_Bitmap_ ) , "::" ,
406 stringify ! ( rows ) ));
407 assert_eq! (unsafe {
408 & ( * ( 0 as * const FT_Bitmap_ ) ) . width as * const _ as
409 usize } , 4usize , concat ! (
410 "Alignment of field: " , stringify ! ( FT_Bitmap_ ) , "::" ,
411 stringify ! ( width ) ));
412 assert_eq! (unsafe {
413 & ( * ( 0 as * const FT_Bitmap_ ) ) . pitch as * const _ as
414 usize } , 8usize , concat ! (
415 "Alignment of field: " , stringify ! ( FT_Bitmap_ ) , "::" ,
416 stringify ! ( pitch ) ));
417 assert_eq! (unsafe {
418 & ( * ( 0 as * const FT_Bitmap_ ) ) . buffer as * const _ as
419 usize } , 16usize , concat ! (
420 "Alignment of field: " , stringify ! ( FT_Bitmap_ ) , "::" ,
421 stringify ! ( buffer ) ));
422 assert_eq! (unsafe {
423 & ( * ( 0 as * const FT_Bitmap_ ) ) . num_grays as * const _
424 as usize } , 24usize , concat ! (
425 "Alignment of field: " , stringify ! ( FT_Bitmap_ ) , "::" ,
426 stringify ! ( num_grays ) ));
427 assert_eq! (unsafe {
428 & ( * ( 0 as * const FT_Bitmap_ ) ) . pixel_mode as * const _
429 as usize } , 26usize , concat ! (
430 "Alignment of field: " , stringify ! ( FT_Bitmap_ ) , "::" ,
431 stringify ! ( pixel_mode ) ));
432 assert_eq! (unsafe {
433 & ( * ( 0 as * const FT_Bitmap_ ) ) . palette_mode as * const
434 _ as usize } , 27usize , concat ! (
435 "Alignment of field: " , stringify ! ( FT_Bitmap_ ) , "::" ,
436 stringify ! ( palette_mode ) ));
437 assert_eq! (unsafe {
438 & ( * ( 0 as * const FT_Bitmap_ ) ) . palette as * const _ as
439 usize } , 32usize , concat ! (
440 "Alignment of field: " , stringify ! ( FT_Bitmap_ ) , "::" ,
441 stringify ! ( palette ) ));
442 }
443 impl Clone for FT_Bitmap_ {
444 fn clone(&self) -> Self { *self }
445 }
446 pub type FT_Bitmap = FT_Bitmap_;
447 #[repr(C)]
448 #[derive(Debug, Copy)]
449 pub struct FT_Outline_ {
450 pub n_contours: ::std::os::raw::c_short,
451 pub n_points: ::std::os::raw::c_short,
452 pub points: *mut FT_Vector,
453 pub tags: *mut ::std::os::raw::c_char,
454 pub contours: *mut ::std::os::raw::c_short,
455 pub flags: ::std::os::raw::c_int,
456 }
457 #[test]
458 #[cfg(target_pointer_width="64")]
459 fn bindgen_test_layout_FT_Outline_() {
460 assert_eq!(::std::mem::size_of::<FT_Outline_>() , 40usize , concat ! (
461 "Size of: " , stringify ! ( FT_Outline_ ) ));
462 assert_eq! (::std::mem::align_of::<FT_Outline_>() , 8usize , concat ! (
463 "Alignment of " , stringify ! ( FT_Outline_ ) ));
464 assert_eq! (unsafe {
465 & ( * ( 0 as * const FT_Outline_ ) ) . n_contours as * const _
466 as usize } , 0usize , concat ! (
467 "Alignment of field: " , stringify ! ( FT_Outline_ ) , "::" ,
468 stringify ! ( n_contours ) ));
469 assert_eq! (unsafe {
470 & ( * ( 0 as * const FT_Outline_ ) ) . n_points as * const _
471 as usize } , 2usize , concat ! (
472 "Alignment of field: " , stringify ! ( FT_Outline_ ) , "::" ,
473 stringify ! ( n_points ) ));
474 assert_eq! (unsafe {
475 & ( * ( 0 as * const FT_Outline_ ) ) . points as * const _ as
476 usize } , 8usize , concat ! (
477 "Alignment of field: " , stringify ! ( FT_Outline_ ) , "::" ,
478 stringify ! ( points ) ));
479 assert_eq! (unsafe {
480 & ( * ( 0 as * const FT_Outline_ ) ) . tags as * const _ as
481 usize } , 16usize , concat ! (
482 "Alignment of field: " , stringify ! ( FT_Outline_ ) , "::" ,
483 stringify ! ( tags ) ));
484 assert_eq! (unsafe {
485 & ( * ( 0 as * const FT_Outline_ ) ) . contours as * const _
486 as usize } , 24usize , concat ! (
487 "Alignment of field: " , stringify ! ( FT_Outline_ ) , "::" ,
488 stringify ! ( contours ) ));
489 assert_eq! (unsafe {
490 & ( * ( 0 as * const FT_Outline_ ) ) . flags as * const _ as
491 usize } , 32usize , concat ! (
492 "Alignment of field: " , stringify ! ( FT_Outline_ ) , "::" ,
493 stringify ! ( flags ) ));
494 }
495 impl Clone for FT_Outline_ {
496 fn clone(&self) -> Self { *self }
497 }
498 pub type FT_Outline = FT_Outline_;
499 pub type FT_Outline_MoveToFunc =
500 ::std::option::Option<unsafe extern "C" fn(to: *const FT_Vector,
501 user:
502 *mut ::std::os::raw::c_void)
503 -> ::std::os::raw::c_int>;
504 pub type FT_Outline_LineToFunc =
505 ::std::option::Option<unsafe extern "C" fn(to: *const FT_Vector,
506 user:
507 *mut ::std::os::raw::c_void)
508 -> ::std::os::raw::c_int>;
509 pub type FT_Outline_ConicToFunc =
510 ::std::option::Option<unsafe extern "C" fn(control: *const FT_Vector,
511 to: *const FT_Vector,
512 user:
513 *mut ::std::os::raw::c_void)
514 -> ::std::os::raw::c_int>;
515 pub type FT_Outline_CubicToFunc =
516 ::std::option::Option<unsafe extern "C" fn(control1: *const FT_Vector,
517 control2: *const FT_Vector,
518 to: *const FT_Vector,
519 user:
520 *mut ::std::os::raw::c_void)
521 -> ::std::os::raw::c_int>;
522 #[repr(C)]
523 #[derive(Debug, Copy)]
524 pub struct FT_Outline_Funcs_ {
525 pub move_to: FT_Outline_MoveToFunc,
526 pub line_to: FT_Outline_LineToFunc,
527 pub conic_to: FT_Outline_ConicToFunc,
528 pub cubic_to: FT_Outline_CubicToFunc,
529 pub shift: ::std::os::raw::c_int,
530 pub delta: FT_Pos,
531 }
532 #[test]
533 #[cfg(target_pointer_width="64")]
534 fn bindgen_test_layout_FT_Outline_Funcs_() {
535 assert_eq!(::std::mem::size_of::<FT_Outline_Funcs_>() , 48usize , concat !
536 ( "Size of: " , stringify ! ( FT_Outline_Funcs_ ) ));
537 assert_eq! (::std::mem::align_of::<FT_Outline_Funcs_>() , 8usize , concat
538 ! ( "Alignment of " , stringify ! ( FT_Outline_Funcs_ ) ));
539 assert_eq! (unsafe {
540 & ( * ( 0 as * const FT_Outline_Funcs_ ) ) . move_to as *
541 const _ as usize } , 0usize , concat ! (
542 "Alignment of field: " , stringify ! ( FT_Outline_Funcs_ ) ,
543 "::" , stringify ! ( move_to ) ));
544 assert_eq! (unsafe {
545 & ( * ( 0 as * const FT_Outline_Funcs_ ) ) . line_to as *
546 const _ as usize } , 8usize , concat ! (
547 "Alignment of field: " , stringify ! ( FT_Outline_Funcs_ ) ,
548 "::" , stringify ! ( line_to ) ));
549 assert_eq! (unsafe {
550 & ( * ( 0 as * const FT_Outline_Funcs_ ) ) . conic_to as *
551 const _ as usize } , 16usize , concat ! (
552 "Alignment of field: " , stringify ! ( FT_Outline_Funcs_ ) ,
553 "::" , stringify ! ( conic_to ) ));
554 assert_eq! (unsafe {
555 & ( * ( 0 as * const FT_Outline_Funcs_ ) ) . cubic_to as *
556 const _ as usize } , 24usize , concat ! (
557 "Alignment of field: " , stringify ! ( FT_Outline_Funcs_ ) ,
558 "::" , stringify ! ( cubic_to ) ));
559 assert_eq! (unsafe {
560 & ( * ( 0 as * const FT_Outline_Funcs_ ) ) . shift as * const
561 _ as usize } , 32usize , concat ! (
562 "Alignment of field: " , stringify ! ( FT_Outline_Funcs_ ) ,
563 "::" , stringify ! ( shift ) ));
564 assert_eq! (unsafe {
565 & ( * ( 0 as * const FT_Outline_Funcs_ ) ) . delta as * const
566 _ as usize } , 40usize , concat ! (
567 "Alignment of field: " , stringify ! ( FT_Outline_Funcs_ ) ,
568 "::" , stringify ! ( delta ) ));
569 }
570 impl Clone for FT_Outline_Funcs_ {
571 fn clone(&self) -> Self { *self }
572 }
573 pub type FT_Outline_Funcs = FT_Outline_Funcs_;
574 #[repr(u32)]
575 #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
576 pub enum FT_Glyph_Format_ {
577 FT_GLYPH_FORMAT_NONE = 0,
578 FT_GLYPH_FORMAT_COMPOSITE = 1668246896,
579 FT_GLYPH_FORMAT_BITMAP = 1651078259,
580 FT_GLYPH_FORMAT_OUTLINE = 1869968492,
581 FT_GLYPH_FORMAT_PLOTTER = 1886154612,
582 }
583 pub use self::FT_Glyph_Format_ as FT_Glyph_Format;
584 #[repr(C)]
585 #[derive(Debug, Copy, Clone)]
586 pub struct FT_RasterRec_ {
587 _unused: [u8; 0],
588 }
589 pub type FT_Raster = *mut FT_RasterRec_;
590 #[repr(C)]
591 #[derive(Debug, Copy)]
592 pub struct FT_Span_ {
593 pub x: ::std::os::raw::c_short,
594 pub len: ::std::os::raw::c_ushort,
595 pub coverage: ::std::os::raw::c_uchar,
596 }
597 #[test]
598 fn bindgen_test_layout_FT_Span_() {
599 assert_eq!(::std::mem::size_of::<FT_Span_>() , 6usize , concat ! (
600 "Size of: " , stringify ! ( FT_Span_ ) ));
601 assert_eq! (::std::mem::align_of::<FT_Span_>() , 2usize , concat ! (
602 "Alignment of " , stringify ! ( FT_Span_ ) ));
603 assert_eq! (unsafe {
604 & ( * ( 0 as * const FT_Span_ ) ) . x as * const _ as usize }
605 , 0usize , concat ! (
606 "Alignment of field: " , stringify ! ( FT_Span_ ) , "::" ,
607 stringify ! ( x ) ));
608 assert_eq! (unsafe {
609 & ( * ( 0 as * const FT_Span_ ) ) . len as * const _ as usize
610 } , 2usize , concat ! (
611 "Alignment of field: " , stringify ! ( FT_Span_ ) , "::" ,
612 stringify ! ( len ) ));
613 assert_eq! (unsafe {
614 & ( * ( 0 as * const FT_Span_ ) ) . coverage as * const _ as
615 usize } , 4usize , concat ! (
616 "Alignment of field: " , stringify ! ( FT_Span_ ) , "::" ,
617 stringify ! ( coverage ) ));
618 }
619 impl Clone for FT_Span_ {
620 fn clone(&self) -> Self { *self }
621 }
622 pub type FT_Span = FT_Span_;
623 pub type FT_SpanFunc =
624 ::std::option::Option<unsafe extern "C" fn(y: ::std::os::raw::c_int,
625 count: ::std::os::raw::c_int,
626 spans: *const FT_Span,
627 user:
628 *mut ::std::os::raw::c_void)>;
629 pub type FT_Raster_BitTest_Func =
630 ::std::option::Option<unsafe extern "C" fn(y: ::std::os::raw::c_int,
631 x: ::std::os::raw::c_int,
632 user:
633 *mut ::std::os::raw::c_void)
634 -> ::std::os::raw::c_int>;
635 pub type FT_Raster_BitSet_Func =
636 ::std::option::Option<unsafe extern "C" fn(y: ::std::os::raw::c_int,
637 x: ::std::os::raw::c_int,
638 user:
639 *mut ::std::os::raw::c_void)>;
640 #[repr(C)]
641 #[derive(Debug, Copy)]
642 pub struct FT_Raster_Params_ {
643 pub target: *const FT_Bitmap,
644 pub source: *const ::std::os::raw::c_void,
645 pub flags: ::std::os::raw::c_int,
646 pub gray_spans: FT_SpanFunc,
647 pub black_spans: FT_SpanFunc,
648 pub bit_test: FT_Raster_BitTest_Func,
649 pub bit_set: FT_Raster_BitSet_Func,
650 pub user: *mut ::std::os::raw::c_void,
651 pub clip_box: FT_BBox,
652 }
653 #[test]
654 #[cfg(target_pointer_width="64")]
655 fn bindgen_test_layout_FT_Raster_Params_() {
656 assert_eq!(::std::mem::size_of::<FT_Raster_Params_>() , 96usize , concat !
657 ( "Size of: " , stringify ! ( FT_Raster_Params_ ) ));
658 assert_eq! (::std::mem::align_of::<FT_Raster_Params_>() , 8usize , concat
659 ! ( "Alignment of " , stringify ! ( FT_Raster_Params_ ) ));
660 assert_eq! (unsafe {
661 & ( * ( 0 as * const FT_Raster_Params_ ) ) . target as * const
662 _ as usize } , 0usize , concat ! (
663 "Alignment of field: " , stringify ! ( FT_Raster_Params_ ) ,
664 "::" , stringify ! ( target ) ));
665 assert_eq! (unsafe {
666 & ( * ( 0 as * const FT_Raster_Params_ ) ) . source as * const
667 _ as usize } , 8usize , concat ! (
668 "Alignment of field: " , stringify ! ( FT_Raster_Params_ ) ,
669 "::" , stringify ! ( source ) ));
670 assert_eq! (unsafe {
671 & ( * ( 0 as * const FT_Raster_Params_ ) ) . flags as * const
672 _ as usize } , 16usize , concat ! (
673 "Alignment of field: " , stringify ! ( FT_Raster_Params_ ) ,
674 "::" , stringify ! ( flags ) ));
675 assert_eq! (unsafe {
676 & ( * ( 0 as * const FT_Raster_Params_ ) ) . gray_spans as *
677 const _ as usize } , 24usize , concat ! (
678 "Alignment of field: " , stringify ! ( FT_Raster_Params_ ) ,
679 "::" , stringify ! ( gray_spans ) ));
680 assert_eq! (unsafe {
681 & ( * ( 0 as * const FT_Raster_Params_ ) ) . black_spans as *
682 const _ as usize } , 32usize , concat ! (
683 "Alignment of field: " , stringify ! ( FT_Raster_Params_ ) ,
684 "::" , stringify ! ( black_spans ) ));
685 assert_eq! (unsafe {
686 & ( * ( 0 as * const FT_Raster_Params_ ) ) . bit_test as *
687 const _ as usize } , 40usize , concat ! (
688 "Alignment of field: " , stringify ! ( FT_Raster_Params_ ) ,
689 "::" , stringify ! ( bit_test ) ));
690 assert_eq! (unsafe {
691 & ( * ( 0 as * const FT_Raster_Params_ ) ) . bit_set as *
692 const _ as usize } , 48usize , concat ! (
693 "Alignment of field: " , stringify ! ( FT_Raster_Params_ ) ,
694 "::" , stringify ! ( bit_set ) ));
695 assert_eq! (unsafe {
696 & ( * ( 0 as * const FT_Raster_Params_ ) ) . user as * const _
697 as usize } , 56usize , concat ! (
698 "Alignment of field: " , stringify ! ( FT_Raster_Params_ ) ,
699 "::" , stringify ! ( user ) ));
700 assert_eq! (unsafe {
701 & ( * ( 0 as * const FT_Raster_Params_ ) ) . clip_box as *
702 const _ as usize } , 64usize , concat ! (
703 "Alignment of field: " , stringify ! ( FT_Raster_Params_ ) ,
704 "::" , stringify ! ( clip_box ) ));
705 }
706 impl Clone for FT_Raster_Params_ {
707 fn clone(&self) -> Self { *self }
708 }
709 pub type FT_Raster_Params = FT_Raster_Params_;
710 pub type FT_Raster_NewFunc =
711 ::std::option::Option<unsafe extern "C" fn(memory:
712 *mut ::std::os::raw::c_void,
713 raster: *mut FT_Raster)
714 -> ::std::os::raw::c_int>;
715 pub type FT_Raster_DoneFunc =
716 ::std::option::Option<unsafe extern "C" fn(raster: FT_Raster)>;
717 pub type FT_Raster_ResetFunc =
718 ::std::option::Option<unsafe extern "C" fn(raster: FT_Raster,
719 pool_base:
720 *mut ::std::os::raw::c_uchar,
721 pool_size:
722 ::std::os::raw::c_ulong)>;
723 pub type FT_Raster_SetModeFunc =
724 ::std::option::Option<unsafe extern "C" fn(raster: FT_Raster,
725 mode: ::std::os::raw::c_ulong,
726 args:
727 *mut ::std::os::raw::c_void)
728 -> ::std::os::raw::c_int>;
729 pub type FT_Raster_RenderFunc =
730 ::std::option::Option<unsafe extern "C" fn(raster: FT_Raster,
731 params:
732 *const FT_Raster_Params)
733 -> ::std::os::raw::c_int>;
734 #[repr(C)]
735 #[derive(Debug, Copy)]
736 pub struct FT_Raster_Funcs_ {
737 pub glyph_format: FT_Glyph_Format,
738 pub raster_new: FT_Raster_NewFunc,
739 pub raster_reset: FT_Raster_ResetFunc,
740 pub raster_set_mode: FT_Raster_SetModeFunc,
741 pub raster_render: FT_Raster_RenderFunc,
742 pub raster_done: FT_Raster_DoneFunc,
743 }
744 #[test]
745 #[cfg(target_pointer_width="64")]
746 fn bindgen_test_layout_FT_Raster_Funcs_() {
747 assert_eq!(::std::mem::size_of::<FT_Raster_Funcs_>() , 48usize , concat !
748 ( "Size of: " , stringify ! ( FT_Raster_Funcs_ ) ));
749 assert_eq! (::std::mem::align_of::<FT_Raster_Funcs_>() , 8usize , concat !
750 ( "Alignment of " , stringify ! ( FT_Raster_Funcs_ ) ));
751 assert_eq! (unsafe {
752 & ( * ( 0 as * const FT_Raster_Funcs_ ) ) . glyph_format as *
753 const _ as usize } , 0usize , concat ! (
754 "Alignment of field: " , stringify ! ( FT_Raster_Funcs_ ) ,
755 "::" , stringify ! ( glyph_format ) ));
756 assert_eq! (unsafe {
757 & ( * ( 0 as * const FT_Raster_Funcs_ ) ) . raster_new as *
758 const _ as usize } , 8usize , concat ! (
759 "Alignment of field: " , stringify ! ( FT_Raster_Funcs_ ) ,
760 "::" , stringify ! ( raster_new ) ));
761 assert_eq! (unsafe {
762 & ( * ( 0 as * const FT_Raster_Funcs_ ) ) . raster_reset as *
763 const _ as usize } , 16usize , concat ! (
764 "Alignment of field: " , stringify ! ( FT_Raster_Funcs_ ) ,
765 "::" , stringify ! ( raster_reset ) ));
766 assert_eq! (unsafe {
767 & ( * ( 0 as * const FT_Raster_Funcs_ ) ) . raster_set_mode as
768 * const _ as usize } , 24usize , concat ! (
769 "Alignment of field: " , stringify ! ( FT_Raster_Funcs_ ) ,
770 "::" , stringify ! ( raster_set_mode ) ));
771 assert_eq! (unsafe {
772 & ( * ( 0 as * const FT_Raster_Funcs_ ) ) . raster_render as *
773 const _ as usize } , 32usize , concat ! (
774 "Alignment of field: " , stringify ! ( FT_Raster_Funcs_ ) ,
775 "::" , stringify ! ( raster_render ) ));
776 assert_eq! (unsafe {
777 & ( * ( 0 as * const FT_Raster_Funcs_ ) ) . raster_done as *
778 const _ as usize } , 40usize , concat ! (
779 "Alignment of field: " , stringify ! ( FT_Raster_Funcs_ ) ,
780 "::" , stringify ! ( raster_done ) ));
781 }
782 impl Clone for FT_Raster_Funcs_ {
783 fn clone(&self) -> Self { *self }
784 }
785 pub type FT_Raster_Funcs = FT_Raster_Funcs_;
786 pub type FT_Bool = ::std::os::raw::c_uchar;
787 pub type FT_FWord = ::std::os::raw::c_short;
788 pub type FT_UFWord = ::std::os::raw::c_ushort;
789 pub type FT_Char = ::std::os::raw::c_schar;
790 pub type FT_Byte = ::std::os::raw::c_uchar;
791 pub type FT_Bytes = *const FT_Byte;
792 pub type FT_Tag = FT_UInt32;
793 pub type FT_String = ::std::os::raw::c_char;
794 pub type FT_Short = ::std::os::raw::c_short;
795 pub type FT_UShort = ::std::os::raw::c_ushort;
796 pub type FT_Int = ::std::os::raw::c_int;
797 pub type FT_UInt = ::std::os::raw::c_uint;
798 pub type FT_Long = ::std::os::raw::c_long;
799 pub type FT_ULong = ::std::os::raw::c_ulong;
800 pub type FT_F2Dot14 = ::std::os::raw::c_short;
801 pub type FT_F26Dot6 = ::std::os::raw::c_long;
802 pub type FT_Fixed = ::std::os::raw::c_long;
803 pub type FT_Pointer = *mut ::std::os::raw::c_void;
804 pub type FT_Offset = usize;
805 pub type FT_PtrDist = isize;
806 #[repr(C)]
807 #[derive(Debug, Copy)]
808 pub struct FT_UnitVector_ {
809 pub x: FT_F2Dot14,
810 pub y: FT_F2Dot14,
811 }
812 #[test]
813 fn bindgen_test_layout_FT_UnitVector_() {
814 assert_eq!(::std::mem::size_of::<FT_UnitVector_>() , 4usize , concat ! (
815 "Size of: " , stringify ! ( FT_UnitVector_ ) ));
816 assert_eq! (::std::mem::align_of::<FT_UnitVector_>() , 2usize , concat ! (
817 "Alignment of " , stringify ! ( FT_UnitVector_ ) ));
818 assert_eq! (unsafe {
819 & ( * ( 0 as * const FT_UnitVector_ ) ) . x as * const _ as
820 usize } , 0usize , concat ! (
821 "Alignment of field: " , stringify ! ( FT_UnitVector_ ) , "::"
822 , stringify ! ( x ) ));
823 assert_eq! (unsafe {
824 & ( * ( 0 as * const FT_UnitVector_ ) ) . y as * const _ as
825 usize } , 2usize , concat ! (
826 "Alignment of field: " , stringify ! ( FT_UnitVector_ ) , "::"
827 , stringify ! ( y ) ));
828 }
829 impl Clone for FT_UnitVector_ {
830 fn clone(&self) -> Self { *self }
831 }
832 pub type FT_UnitVector = FT_UnitVector_;
833 #[repr(C)]
834 #[derive(Debug, Copy)]
835 pub struct FT_Matrix_ {
836 pub xx: FT_Fixed,
837 pub xy: FT_Fixed,
838 pub yx: FT_Fixed,
839 pub yy: FT_Fixed,
840 }
841 #[test]
842 #[cfg(target_pointer_width="64")]
843 fn bindgen_test_layout_FT_Matrix_() {
844 assert_eq!(::std::mem::size_of::<FT_Matrix_>() , 32usize , concat ! (
845 "Size of: " , stringify ! ( FT_Matrix_ ) ));
846 assert_eq! (::std::mem::align_of::<FT_Matrix_>() , 8usize , concat ! (
847 "Alignment of " , stringify ! ( FT_Matrix_ ) ));
848 assert_eq! (unsafe {
849 & ( * ( 0 as * const FT_Matrix_ ) ) . xx as * const _ as usize
850 } , 0usize , concat ! (
851 "Alignment of field: " , stringify ! ( FT_Matrix_ ) , "::" ,
852 stringify ! ( xx ) ));
853 assert_eq! (unsafe {
854 & ( * ( 0 as * const FT_Matrix_ ) ) . xy as * const _ as usize
855 } , 8usize , concat ! (
856 "Alignment of field: " , stringify ! ( FT_Matrix_ ) , "::" ,
857 stringify ! ( xy ) ));
858 assert_eq! (unsafe {
859 & ( * ( 0 as * const FT_Matrix_ ) ) . yx as * const _ as usize
860 } , 16usize , concat ! (
861 "Alignment of field: " , stringify ! ( FT_Matrix_ ) , "::" ,
862 stringify ! ( yx ) ));
863 assert_eq! (unsafe {
864 & ( * ( 0 as * const FT_Matrix_ ) ) . yy as * const _ as usize
865 } , 24usize , concat ! (
866 "Alignment of field: " , stringify ! ( FT_Matrix_ ) , "::" ,
867 stringify ! ( yy ) ));
868 }
869 impl Clone for FT_Matrix_ {
870 fn clone(&self) -> Self { *self }
871 }
872 pub type FT_Matrix = FT_Matrix_;
873 #[repr(C)]
874 #[derive(Debug, Copy)]
875 pub struct FT_Data_ {
876 pub pointer: *const FT_Byte,
877 pub length: FT_Int,
878 }
879 #[test]
880 #[cfg(target_pointer_width="64")]
881 fn bindgen_test_layout_FT_Data_() {
882 assert_eq!(::std::mem::size_of::<FT_Data_>() , 16usize , concat ! (
883 "Size of: " , stringify ! ( FT_Data_ ) ));
884 assert_eq! (::std::mem::align_of::<FT_Data_>() , 8usize , concat ! (
885 "Alignment of " , stringify ! ( FT_Data_ ) ));
886 assert_eq! (unsafe {
887 & ( * ( 0 as * const FT_Data_ ) ) . pointer as * const _ as
888 usize } , 0usize , concat ! (
889 "Alignment of field: " , stringify ! ( FT_Data_ ) , "::" ,
890 stringify ! ( pointer ) ));
891 assert_eq! (unsafe {
892 & ( * ( 0 as * const FT_Data_ ) ) . length as * const _ as
893 usize } , 8usize , concat ! (
894 "Alignment of field: " , stringify ! ( FT_Data_ ) , "::" ,
895 stringify ! ( length ) ));
896 }
897 impl Clone for FT_Data_ {
898 fn clone(&self) -> Self { *self }
899 }
900 pub type FT_Data = FT_Data_;
901 pub type FT_Generic_Finalizer =
902 ::std::option::Option<unsafe extern "C" fn(object:
903 *mut ::std::os::raw::c_void)>;
904 #[repr(C)]
905 #[derive(Debug, Copy)]
906 pub struct FT_Generic_ {
907 pub data: *mut ::std::os::raw::c_void,
908 pub finalizer: FT_Generic_Finalizer,
909 }
910 #[test]
911 #[cfg(target_pointer_width="64")]
912 fn bindgen_test_layout_FT_Generic_() {
913 assert_eq!(::std::mem::size_of::<FT_Generic_>() , 16usize , concat ! (
914 "Size of: " , stringify ! ( FT_Generic_ ) ));
915 assert_eq! (::std::mem::align_of::<FT_Generic_>() , 8usize , concat ! (
916 "Alignment of " , stringify ! ( FT_Generic_ ) ));
917 assert_eq! (unsafe {
918 & ( * ( 0 as * const FT_Generic_ ) ) . data as * const _ as
919 usize } , 0usize , concat ! (
920 "Alignment of field: " , stringify ! ( FT_Generic_ ) , "::" ,
921 stringify ! ( data ) ));
922 assert_eq! (unsafe {
923 & ( * ( 0 as * const FT_Generic_ ) ) . finalizer as * const _
924 as usize } , 8usize , concat ! (
925 "Alignment of field: " , stringify ! ( FT_Generic_ ) , "::" ,
926 stringify ! ( finalizer ) ));
927 }
928 impl Clone for FT_Generic_ {
929 fn clone(&self) -> Self { *self }
930 }
931 pub type FT_Generic = FT_Generic_;
932 #[repr(C)]
933 #[derive(Debug, Copy)]
934 pub struct FT_ListNodeRec_ {
935 pub prev: FT_ListNode,
936 pub next: FT_ListNode,
937 pub data: *mut ::std::os::raw::c_void,
938 }
939 #[test]
940 #[cfg(target_pointer_width="64")]
941 fn bindgen_test_layout_FT_ListNodeRec_() {
942 assert_eq!(::std::mem::size_of::<FT_ListNodeRec_>() , 24usize , concat ! (
943 "Size of: " , stringify ! ( FT_ListNodeRec_ ) ));
944 assert_eq! (::std::mem::align_of::<FT_ListNodeRec_>() , 8usize , concat !
945 ( "Alignment of " , stringify ! ( FT_ListNodeRec_ ) ));
946 assert_eq! (unsafe {
947 & ( * ( 0 as * const FT_ListNodeRec_ ) ) . prev as * const _
948 as usize } , 0usize , concat ! (
949 "Alignment of field: " , stringify ! ( FT_ListNodeRec_ ) ,
950 "::" , stringify ! ( prev ) ));
951 assert_eq! (unsafe {
952 & ( * ( 0 as * const FT_ListNodeRec_ ) ) . next as * const _
953 as usize } , 8usize , concat ! (
954 "Alignment of field: " , stringify ! ( FT_ListNodeRec_ ) ,
955 "::" , stringify ! ( next ) ));
956 assert_eq! (unsafe {
957 & ( * ( 0 as * const FT_ListNodeRec_ ) ) . data as * const _
958 as usize } , 16usize , concat ! (
959 "Alignment of field: " , stringify ! ( FT_ListNodeRec_ ) ,
960 "::" , stringify ! ( data ) ));
961 }
962 impl Clone for FT_ListNodeRec_ {
963 fn clone(&self) -> Self { *self }
964 }
965 pub type FT_ListNode = *mut FT_ListNodeRec_;
966 #[repr(C)]
967 #[derive(Debug, Copy)]
968 pub struct FT_ListRec_ {
969 pub head: FT_ListNode,
970 pub tail: FT_ListNode,
971 }
972 #[test]
973 #[cfg(target_pointer_width="64")]
974 fn bindgen_test_layout_FT_ListRec_() {
975 assert_eq!(::std::mem::size_of::<FT_ListRec_>() , 16usize , concat ! (
976 "Size of: " , stringify ! ( FT_ListRec_ ) ));
977 assert_eq! (::std::mem::align_of::<FT_ListRec_>() , 8usize , concat ! (
978 "Alignment of " , stringify ! ( FT_ListRec_ ) ));
979 assert_eq! (unsafe {
980 & ( * ( 0 as * const FT_ListRec_ ) ) . head as * const _ as
981 usize } , 0usize , concat ! (
982 "Alignment of field: " , stringify ! ( FT_ListRec_ ) , "::" ,
983 stringify ! ( head ) ));
984 assert_eq! (unsafe {
985 & ( * ( 0 as * const FT_ListRec_ ) ) . tail as * const _ as
986 usize } , 8usize , concat ! (
987 "Alignment of field: " , stringify ! ( FT_ListRec_ ) , "::" ,
988 stringify ! ( tail ) ));
989 }
990 impl Clone for FT_ListRec_ {
991 fn clone(&self) -> Self { *self }
992 }
993 pub type FT_List = *mut FT_ListRec_;
994 pub type FT_ListNodeRec = FT_ListNodeRec_;
995 pub type FT_ListRec = FT_ListRec_;
996 pub const FT_Mod_Err_Base: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
997 pub const FT_Mod_Err_Autofit: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
998 pub const FT_Mod_Err_BDF: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
999 pub const FT_Mod_Err_Bzip2: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
1000 pub const FT_Mod_Err_Cache: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
1001 pub const FT_Mod_Err_CFF: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
1002 pub const FT_Mod_Err_CID: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
1003 pub const FT_Mod_Err_Gzip: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
1004 pub const FT_Mod_Err_LZW: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
1005 pub const FT_Mod_Err_OTvalid: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
1006 pub const FT_Mod_Err_PCF: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
1007 pub const FT_Mod_Err_PFR: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
1008 pub const FT_Mod_Err_PSaux: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
1009 pub const FT_Mod_Err_PShinter: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
1010 pub const FT_Mod_Err_PSnames: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
1011 pub const FT_Mod_Err_Raster: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
1012 pub const FT_Mod_Err_SFNT: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
1013 pub const FT_Mod_Err_Smooth: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
1014 pub const FT_Mod_Err_TrueType: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
1015 pub const FT_Mod_Err_Type1: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
1016 pub const FT_Mod_Err_Type42: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
1017 pub const FT_Mod_Err_Winfonts: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
1018 pub const FT_Mod_Err_GXvalid: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
1019 pub const FT_Mod_Err_Max: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Max;
1020 #[repr(u32)]
1021 #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
1022 pub enum _bindgen_ty_1 { FT_Mod_Err_Base = 0, FT_Mod_Err_Max = 1, }
1023 pub const FT_Err_Ok: _bindgen_ty_2 = _bindgen_ty_2::FT_Err_Ok;
1024 pub const FT_Err_Cannot_Open_Resource: _bindgen_ty_2 =
1025 _bindgen_ty_2::FT_Err_Cannot_Open_Resource;
1026 pub const FT_Err_Unknown_File_Format: _bindgen_ty_2 =
1027 _bindgen_ty_2::FT_Err_Unknown_File_Format;
1028 pub const FT_Err_Invalid_File_Format: _bindgen_ty_2 =
1029 _bindgen_ty_2::FT_Err_Invalid_File_Format;
1030 pub const FT_Err_Invalid_Version: _bindgen_ty_2 =
1031 _bindgen_ty_2::FT_Err_Invalid_Version;
1032 pub const FT_Err_Lower_Module_Version: _bindgen_ty_2 =
1033 _bindgen_ty_2::FT_Err_Lower_Module_Version;
1034 pub const FT_Err_Invalid_Argument: _bindgen_ty_2 =
1035 _bindgen_ty_2::FT_Err_Invalid_Argument;
1036 pub const FT_Err_Unimplemented_Feature: _bindgen_ty_2 =
1037 _bindgen_ty_2::FT_Err_Unimplemented_Feature;
1038 pub const FT_Err_Invalid_Table: _bindgen_ty_2 =
1039 _bindgen_ty_2::FT_Err_Invalid_Table;
1040 pub const FT_Err_Invalid_Offset: _bindgen_ty_2 =
1041 _bindgen_ty_2::FT_Err_Invalid_Offset;
1042 pub const FT_Err_Array_Too_Large: _bindgen_ty_2 =
1043 _bindgen_ty_2::FT_Err_Array_Too_Large;
1044 pub const FT_Err_Missing_Module: _bindgen_ty_2 =
1045 _bindgen_ty_2::FT_Err_Missing_Module;
1046 pub const FT_Err_Missing_Property: _bindgen_ty_2 =
1047 _bindgen_ty_2::FT_Err_Missing_Property;
1048 pub const FT_Err_Invalid_Glyph_Index: _bindgen_ty_2 =
1049 _bindgen_ty_2::FT_Err_Invalid_Glyph_Index;
1050 pub const FT_Err_Invalid_Character_Code: _bindgen_ty_2 =
1051 _bindgen_ty_2::FT_Err_Invalid_Character_Code;
1052 pub const FT_Err_Invalid_Glyph_Format: _bindgen_ty_2 =
1053 _bindgen_ty_2::FT_Err_Invalid_Glyph_Format;
1054 pub const FT_Err_Cannot_Render_Glyph: _bindgen_ty_2 =
1055 _bindgen_ty_2::FT_Err_Cannot_Render_Glyph;
1056 pub const FT_Err_Invalid_Outline: _bindgen_ty_2 =
1057 _bindgen_ty_2::FT_Err_Invalid_Outline;
1058 pub const FT_Err_Invalid_Composite: _bindgen_ty_2 =
1059 _bindgen_ty_2::FT_Err_Invalid_Composite;
1060 pub const FT_Err_Too_Many_Hints: _bindgen_ty_2 =
1061 _bindgen_ty_2::FT_Err_Too_Many_Hints;
1062 pub const FT_Err_Invalid_Pixel_Size: _bindgen_ty_2 =
1063 _bindgen_ty_2::FT_Err_Invalid_Pixel_Size;
1064 pub const FT_Err_Invalid_Handle: _bindgen_ty_2 =
1065 _bindgen_ty_2::FT_Err_Invalid_Handle;
1066 pub const FT_Err_Invalid_Library_Handle: _bindgen_ty_2 =
1067 _bindgen_ty_2::FT_Err_Invalid_Library_Handle;
1068 pub const FT_Err_Invalid_Driver_Handle: _bindgen_ty_2 =
1069 _bindgen_ty_2::FT_Err_Invalid_Driver_Handle;
1070 pub const FT_Err_Invalid_Face_Handle: _bindgen_ty_2 =
1071 _bindgen_ty_2::FT_Err_Invalid_Face_Handle;
1072 pub const FT_Err_Invalid_Size_Handle: _bindgen_ty_2 =
1073 _bindgen_ty_2::FT_Err_Invalid_Size_Handle;
1074 pub const FT_Err_Invalid_Slot_Handle: _bindgen_ty_2 =
1075 _bindgen_ty_2::FT_Err_Invalid_Slot_Handle;
1076 pub const FT_Err_Invalid_CharMap_Handle: _bindgen_ty_2 =
1077 _bindgen_ty_2::FT_Err_Invalid_CharMap_Handle;
1078 pub const FT_Err_Invalid_Cache_Handle: _bindgen_ty_2 =
1079 _bindgen_ty_2::FT_Err_Invalid_Cache_Handle;
1080 pub const FT_Err_Invalid_Stream_Handle: _bindgen_ty_2 =
1081 _bindgen_ty_2::FT_Err_Invalid_Stream_Handle;
1082 pub const FT_Err_Too_Many_Drivers: _bindgen_ty_2 =
1083 _bindgen_ty_2::FT_Err_Too_Many_Drivers;
1084 pub const FT_Err_Too_Many_Extensions: _bindgen_ty_2 =
1085 _bindgen_ty_2::FT_Err_Too_Many_Extensions;
1086 pub const FT_Err_Out_Of_Memory: _bindgen_ty_2 =
1087 _bindgen_ty_2::FT_Err_Out_Of_Memory;
1088 pub const FT_Err_Unlisted_Object: _bindgen_ty_2 =
1089 _bindgen_ty_2::FT_Err_Unlisted_Object;
1090 pub const FT_Err_Cannot_Open_Stream: _bindgen_ty_2 =
1091 _bindgen_ty_2::FT_Err_Cannot_Open_Stream;
1092 pub const FT_Err_Invalid_Stream_Seek: _bindgen_ty_2 =
1093 _bindgen_ty_2::FT_Err_Invalid_Stream_Seek;
1094 pub const FT_Err_Invalid_Stream_Skip: _bindgen_ty_2 =
1095 _bindgen_ty_2::FT_Err_Invalid_Stream_Skip;
1096 pub const FT_Err_Invalid_Stream_Read: _bindgen_ty_2 =
1097 _bindgen_ty_2::FT_Err_Invalid_Stream_Read;
1098 pub const FT_Err_Invalid_Stream_Operation: _bindgen_ty_2 =
1099 _bindgen_ty_2::FT_Err_Invalid_Stream_Operation;
1100 pub const FT_Err_Invalid_Frame_Operation: _bindgen_ty_2 =
1101 _bindgen_ty_2::FT_Err_Invalid_Frame_Operation;
1102 pub const FT_Err_Nested_Frame_Access: _bindgen_ty_2 =
1103 _bindgen_ty_2::FT_Err_Nested_Frame_Access;
1104 pub const FT_Err_Invalid_Frame_Read: _bindgen_ty_2 =
1105 _bindgen_ty_2::FT_Err_Invalid_Frame_Read;
1106 pub const FT_Err_Raster_Uninitialized: _bindgen_ty_2 =
1107 _bindgen_ty_2::FT_Err_Raster_Uninitialized;
1108 pub const FT_Err_Raster_Corrupted: _bindgen_ty_2 =
1109 _bindgen_ty_2::FT_Err_Raster_Corrupted;
1110 pub const FT_Err_Raster_Overflow: _bindgen_ty_2 =
1111 _bindgen_ty_2::FT_Err_Raster_Overflow;
1112 pub const FT_Err_Raster_Negative_Height: _bindgen_ty_2 =
1113 _bindgen_ty_2::FT_Err_Raster_Negative_Height;
1114 pub const FT_Err_Too_Many_Caches: _bindgen_ty_2 =
1115 _bindgen_ty_2::FT_Err_Too_Many_Caches;
1116 pub const FT_Err_Invalid_Opcode: _bindgen_ty_2 =
1117 _bindgen_ty_2::FT_Err_Invalid_Opcode;
1118 pub const FT_Err_Too_Few_Arguments: _bindgen_ty_2 =
1119 _bindgen_ty_2::FT_Err_Too_Few_Arguments;
1120 pub const FT_Err_Stack_Overflow: _bindgen_ty_2 =
1121 _bindgen_ty_2::FT_Err_Stack_Overflow;
1122 pub const FT_Err_Code_Overflow: _bindgen_ty_2 =
1123 _bindgen_ty_2::FT_Err_Code_Overflow;
1124 pub const FT_Err_Bad_Argument: _bindgen_ty_2 =
1125 _bindgen_ty_2::FT_Err_Bad_Argument;
1126 pub const FT_Err_Divide_By_Zero: _bindgen_ty_2 =
1127 _bindgen_ty_2::FT_Err_Divide_By_Zero;
1128 pub const FT_Err_Invalid_Reference: _bindgen_ty_2 =
1129 _bindgen_ty_2::FT_Err_Invalid_Reference;
1130 pub const FT_Err_Debug_OpCode: _bindgen_ty_2 =
1131 _bindgen_ty_2::FT_Err_Debug_OpCode;
1132 pub const FT_Err_ENDF_In_Exec_Stream: _bindgen_ty_2 =
1133 _bindgen_ty_2::FT_Err_ENDF_In_Exec_Stream;
1134 pub const FT_Err_Nested_DEFS: _bindgen_ty_2 =
1135 _bindgen_ty_2::FT_Err_Nested_DEFS;
1136 pub const FT_Err_Invalid_CodeRange: _bindgen_ty_2 =
1137 _bindgen_ty_2::FT_Err_Invalid_CodeRange;
1138 pub const FT_Err_Execution_Too_Long: _bindgen_ty_2 =
1139 _bindgen_ty_2::FT_Err_Execution_Too_Long;
1140 pub const FT_Err_Too_Many_Function_Defs: _bindgen_ty_2 =
1141 _bindgen_ty_2::FT_Err_Too_Many_Function_Defs;
1142 pub const FT_Err_Too_Many_Instruction_Defs: _bindgen_ty_2 =
1143 _bindgen_ty_2::FT_Err_Too_Many_Instruction_Defs;
1144 pub const FT_Err_Table_Missing: _bindgen_ty_2 =
1145 _bindgen_ty_2::FT_Err_Table_Missing;
1146 pub const FT_Err_Horiz_Header_Missing: _bindgen_ty_2 =
1147 _bindgen_ty_2::FT_Err_Horiz_Header_Missing;
1148 pub const FT_Err_Locations_Missing: _bindgen_ty_2 =
1149 _bindgen_ty_2::FT_Err_Locations_Missing;
1150 pub const FT_Err_Name_Table_Missing: _bindgen_ty_2 =
1151 _bindgen_ty_2::FT_Err_Name_Table_Missing;
1152 pub const FT_Err_CMap_Table_Missing: _bindgen_ty_2 =
1153 _bindgen_ty_2::FT_Err_CMap_Table_Missing;
1154 pub const FT_Err_Hmtx_Table_Missing: _bindgen_ty_2 =
1155 _bindgen_ty_2::FT_Err_Hmtx_Table_Missing;
1156 pub const FT_Err_Post_Table_Missing: _bindgen_ty_2 =
1157 _bindgen_ty_2::FT_Err_Post_Table_Missing;
1158 pub const FT_Err_Invalid_Horiz_Metrics: _bindgen_ty_2 =
1159 _bindgen_ty_2::FT_Err_Invalid_Horiz_Metrics;
1160 pub const FT_Err_Invalid_CharMap_Format: _bindgen_ty_2 =
1161 _bindgen_ty_2::FT_Err_Invalid_CharMap_Format;
1162 pub const FT_Err_Invalid_PPem: _bindgen_ty_2 =
1163 _bindgen_ty_2::FT_Err_Invalid_PPem;
1164 pub const FT_Err_Invalid_Vert_Metrics: _bindgen_ty_2 =
1165 _bindgen_ty_2::FT_Err_Invalid_Vert_Metrics;
1166 pub const FT_Err_Could_Not_Find_Context: _bindgen_ty_2 =
1167 _bindgen_ty_2::FT_Err_Could_Not_Find_Context;
1168 pub const FT_Err_Invalid_Post_Table_Format: _bindgen_ty_2 =
1169 _bindgen_ty_2::FT_Err_Invalid_Post_Table_Format;
1170 pub const FT_Err_Invalid_Post_Table: _bindgen_ty_2 =
1171 _bindgen_ty_2::FT_Err_Invalid_Post_Table;
1172 pub const FT_Err_Syntax_Error: _bindgen_ty_2 =
1173 _bindgen_ty_2::FT_Err_Syntax_Error;
1174 pub const FT_Err_Stack_Underflow: _bindgen_ty_2 =
1175 _bindgen_ty_2::FT_Err_Stack_Underflow;
1176 pub const FT_Err_Ignore: _bindgen_ty_2 = _bindgen_ty_2::FT_Err_Ignore;
1177 pub const FT_Err_No_Unicode_Glyph_Name: _bindgen_ty_2 =
1178 _bindgen_ty_2::FT_Err_No_Unicode_Glyph_Name;
1179 pub const FT_Err_Glyph_Too_Big: _bindgen_ty_2 =
1180 _bindgen_ty_2::FT_Err_Glyph_Too_Big;
1181 pub const FT_Err_Missing_Startfont_Field: _bindgen_ty_2 =
1182 _bindgen_ty_2::FT_Err_Missing_Startfont_Field;
1183 pub const FT_Err_Missing_Font_Field: _bindgen_ty_2 =
1184 _bindgen_ty_2::FT_Err_Missing_Font_Field;
1185 pub const FT_Err_Missing_Size_Field: _bindgen_ty_2 =
1186 _bindgen_ty_2::FT_Err_Missing_Size_Field;
1187 pub const FT_Err_Missing_Fontboundingbox_Field: _bindgen_ty_2 =
1188 _bindgen_ty_2::FT_Err_Missing_Fontboundingbox_Field;
1189 pub const FT_Err_Missing_Chars_Field: _bindgen_ty_2 =
1190 _bindgen_ty_2::FT_Err_Missing_Chars_Field;
1191 pub const FT_Err_Missing_Startchar_Field: _bindgen_ty_2 =
1192 _bindgen_ty_2::FT_Err_Missing_Startchar_Field;
1193 pub const FT_Err_Missing_Encoding_Field: _bindgen_ty_2 =
1194 _bindgen_ty_2::FT_Err_Missing_Encoding_Field;
1195 pub const FT_Err_Missing_Bbx_Field: _bindgen_ty_2 =
1196 _bindgen_ty_2::FT_Err_Missing_Bbx_Field;
1197 pub const FT_Err_Bbx_Too_Big: _bindgen_ty_2 =
1198 _bindgen_ty_2::FT_Err_Bbx_Too_Big;
1199 pub const FT_Err_Corrupted_Font_Header: _bindgen_ty_2 =
1200 _bindgen_ty_2::FT_Err_Corrupted_Font_Header;
1201 pub const FT_Err_Corrupted_Font_Glyphs: _bindgen_ty_2 =
1202 _bindgen_ty_2::FT_Err_Corrupted_Font_Glyphs;
1203 pub const FT_Err_Max: _bindgen_ty_2 = _bindgen_ty_2::FT_Err_Max;
1204 #[repr(u32)]
1205 #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
1206 pub enum _bindgen_ty_2 {
1207 FT_Err_Ok = 0,
1208 FT_Err_Cannot_Open_Resource = 1,
1209 FT_Err_Unknown_File_Format = 2,
1210 FT_Err_Invalid_File_Format = 3,
1211 FT_Err_Invalid_Version = 4,
1212 FT_Err_Lower_Module_Version = 5,
1213 FT_Err_Invalid_Argument = 6,
1214 FT_Err_Unimplemented_Feature = 7,
1215 FT_Err_Invalid_Table = 8,
1216 FT_Err_Invalid_Offset = 9,
1217 FT_Err_Array_Too_Large = 10,
1218 FT_Err_Missing_Module = 11,
1219 FT_Err_Missing_Property = 12,
1220 FT_Err_Invalid_Glyph_Index = 16,
1221 FT_Err_Invalid_Character_Code = 17,
1222 FT_Err_Invalid_Glyph_Format = 18,
1223 FT_Err_Cannot_Render_Glyph = 19,
1224 FT_Err_Invalid_Outline = 20,
1225 FT_Err_Invalid_Composite = 21,
1226 FT_Err_Too_Many_Hints = 22,
1227 FT_Err_Invalid_Pixel_Size = 23,
1228 FT_Err_Invalid_Handle = 32,
1229 FT_Err_Invalid_Library_Handle = 33,
1230 FT_Err_Invalid_Driver_Handle = 34,
1231 FT_Err_Invalid_Face_Handle = 35,
1232 FT_Err_Invalid_Size_Handle = 36,
1233 FT_Err_Invalid_Slot_Handle = 37,
1234 FT_Err_Invalid_CharMap_Handle = 38,
1235 FT_Err_Invalid_Cache_Handle = 39,
1236 FT_Err_Invalid_Stream_Handle = 40,
1237 FT_Err_Too_Many_Drivers = 48,
1238 FT_Err_Too_Many_Extensions = 49,
1239 FT_Err_Out_Of_Memory = 64,
1240 FT_Err_Unlisted_Object = 65,
1241 FT_Err_Cannot_Open_Stream = 81,
1242 FT_Err_Invalid_Stream_Seek = 82,
1243 FT_Err_Invalid_Stream_Skip = 83,
1244 FT_Err_Invalid_Stream_Read = 84,
1245 FT_Err_Invalid_Stream_Operation = 85,
1246 FT_Err_Invalid_Frame_Operation = 86,
1247 FT_Err_Nested_Frame_Access = 87,
1248 FT_Err_Invalid_Frame_Read = 88,
1249 FT_Err_Raster_Uninitialized = 96,
1250 FT_Err_Raster_Corrupted = 97,
1251 FT_Err_Raster_Overflow = 98,
1252 FT_Err_Raster_Negative_Height = 99,
1253 FT_Err_Too_Many_Caches = 112,
1254 FT_Err_Invalid_Opcode = 128,
1255 FT_Err_Too_Few_Arguments = 129,
1256 FT_Err_Stack_Overflow = 130,
1257 FT_Err_Code_Overflow = 131,
1258 FT_Err_Bad_Argument = 132,
1259 FT_Err_Divide_By_Zero = 133,
1260 FT_Err_Invalid_Reference = 134,
1261 FT_Err_Debug_OpCode = 135,
1262 FT_Err_ENDF_In_Exec_Stream = 136,
1263 FT_Err_Nested_DEFS = 137,
1264 FT_Err_Invalid_CodeRange = 138,
1265 FT_Err_Execution_Too_Long = 139,
1266 FT_Err_Too_Many_Function_Defs = 140,
1267 FT_Err_Too_Many_Instruction_Defs = 141,
1268 FT_Err_Table_Missing = 142,
1269 FT_Err_Horiz_Header_Missing = 143,
1270 FT_Err_Locations_Missing = 144,
1271 FT_Err_Name_Table_Missing = 145,
1272 FT_Err_CMap_Table_Missing = 146,
1273 FT_Err_Hmtx_Table_Missing = 147,
1274 FT_Err_Post_Table_Missing = 148,
1275 FT_Err_Invalid_Horiz_Metrics = 149,
1276 FT_Err_Invalid_CharMap_Format = 150,
1277 FT_Err_Invalid_PPem = 151,
1278 FT_Err_Invalid_Vert_Metrics = 152,
1279 FT_Err_Could_Not_Find_Context = 153,
1280 FT_Err_Invalid_Post_Table_Format = 154,
1281 FT_Err_Invalid_Post_Table = 155,
1282 FT_Err_Syntax_Error = 160,
1283 FT_Err_Stack_Underflow = 161,
1284 FT_Err_Ignore = 162,
1285 FT_Err_No_Unicode_Glyph_Name = 163,
1286 FT_Err_Glyph_Too_Big = 164,
1287 FT_Err_Missing_Startfont_Field = 176,
1288 FT_Err_Missing_Font_Field = 177,
1289 FT_Err_Missing_Size_Field = 178,
1290 FT_Err_Missing_Fontboundingbox_Field = 179,
1291 FT_Err_Missing_Chars_Field = 180,
1292 FT_Err_Missing_Startchar_Field = 181,
1293 FT_Err_Missing_Encoding_Field = 182,
1294 FT_Err_Missing_Bbx_Field = 183,
1295 FT_Err_Bbx_Too_Big = 184,
1296 FT_Err_Corrupted_Font_Header = 185,
1297 FT_Err_Corrupted_Font_Glyphs = 186,
1298 FT_Err_Max = 187,
1299 }
1300 #[repr(C)]
1301 #[derive(Debug, Copy)]
1302 pub struct FT_Glyph_Metrics_ {
1303 pub width: FT_Pos,
1304 pub height: FT_Pos,
1305 pub horiBearingX: FT_Pos,
1306 pub horiBearingY: FT_Pos,
1307 pub horiAdvance: FT_Pos,
1308 pub vertBearingX: FT_Pos,
1309 pub vertBearingY: FT_Pos,
1310 pub vertAdvance: FT_Pos,
1311 }
1312 #[test]
1313 #[cfg(target_pointer_width="64")]
1314 fn bindgen_test_layout_FT_Glyph_Metrics_() {
1315 assert_eq!(::std::mem::size_of::<FT_Glyph_Metrics_>() , 64usize , concat !
1316 ( "Size of: " , stringify ! ( FT_Glyph_Metrics_ ) ));
1317 assert_eq! (::std::mem::align_of::<FT_Glyph_Metrics_>() , 8usize , concat
1318 ! ( "Alignment of " , stringify ! ( FT_Glyph_Metrics_ ) ));
1319 assert_eq! (unsafe {
1320 & ( * ( 0 as * const FT_Glyph_Metrics_ ) ) . width as * const
1321 _ as usize } , 0usize , concat ! (
1322 "Alignment of field: " , stringify ! ( FT_Glyph_Metrics_ ) ,
1323 "::" , stringify ! ( width ) ));
1324 assert_eq! (unsafe {
1325 & ( * ( 0 as * const FT_Glyph_Metrics_ ) ) . height as * const
1326 _ as usize } , 8usize , concat ! (
1327 "Alignment of field: " , stringify ! ( FT_Glyph_Metrics_ ) ,
1328 "::" , stringify ! ( height ) ));
1329 assert_eq! (unsafe {
1330 & ( * ( 0 as * const FT_Glyph_Metrics_ ) ) . horiBearingX as *
1331 const _ as usize } , 16usize , concat ! (
1332 "Alignment of field: " , stringify ! ( FT_Glyph_Metrics_ ) ,
1333 "::" , stringify ! ( horiBearingX ) ));
1334 assert_eq! (unsafe {
1335 & ( * ( 0 as * const FT_Glyph_Metrics_ ) ) . horiBearingY as *
1336 const _ as usize } , 24usize , concat ! (
1337 "Alignment of field: " , stringify ! ( FT_Glyph_Metrics_ ) ,
1338 "::" , stringify ! ( horiBearingY ) ));
1339 assert_eq! (unsafe {
1340 & ( * ( 0 as * const FT_Glyph_Metrics_ ) ) . horiAdvance as *
1341 const _ as usize } , 32usize , concat ! (
1342 "Alignment of field: " , stringify ! ( FT_Glyph_Metrics_ ) ,
1343 "::" , stringify ! ( horiAdvance ) ));
1344 assert_eq! (unsafe {
1345 & ( * ( 0 as * const FT_Glyph_Metrics_ ) ) . vertBearingX as *
1346 const _ as usize } , 40usize , concat ! (
1347 "Alignment of field: " , stringify ! ( FT_Glyph_Metrics_ ) ,
1348 "::" , stringify ! ( vertBearingX ) ));
1349 assert_eq! (unsafe {
1350 & ( * ( 0 as * const FT_Glyph_Metrics_ ) ) . vertBearingY as *
1351 const _ as usize } , 48usize , concat ! (
1352 "Alignment of field: " , stringify ! ( FT_Glyph_Metrics_ ) ,
1353 "::" , stringify ! ( vertBearingY ) ));
1354 assert_eq! (unsafe {
1355 & ( * ( 0 as * const FT_Glyph_Metrics_ ) ) . vertAdvance as *
1356 const _ as usize } , 56usize , concat ! (
1357 "Alignment of field: " , stringify ! ( FT_Glyph_Metrics_ ) ,
1358 "::" , stringify ! ( vertAdvance ) ));
1359 }
1360 impl Clone for FT_Glyph_Metrics_ {
1361 fn clone(&self) -> Self { *self }
1362 }
1363 pub type FT_Glyph_Metrics = FT_Glyph_Metrics_;
1364 #[repr(C)]
1365 #[derive(Debug, Copy)]
1366 pub struct FT_Bitmap_Size_ {
1367 pub height: FT_Short,
1368 pub width: FT_Short,
1369 pub size: FT_Pos,
1370 pub x_ppem: FT_Pos,
1371 pub y_ppem: FT_Pos,
1372 }
1373 #[test]
1374 #[cfg(target_pointer_width="64")]
1375 fn bindgen_test_layout_FT_Bitmap_Size_() {
1376 assert_eq!(::std::mem::size_of::<FT_Bitmap_Size_>() , 32usize , concat ! (
1377 "Size of: " , stringify ! ( FT_Bitmap_Size_ ) ));
1378 assert_eq! (::std::mem::align_of::<FT_Bitmap_Size_>() , 8usize , concat !
1379 ( "Alignment of " , stringify ! ( FT_Bitmap_Size_ ) ));
1380 assert_eq! (unsafe {
1381 & ( * ( 0 as * const FT_Bitmap_Size_ ) ) . height as * const _
1382 as usize } , 0usize , concat ! (
1383 "Alignment of field: " , stringify ! ( FT_Bitmap_Size_ ) ,
1384 "::" , stringify ! ( height ) ));
1385 assert_eq! (unsafe {
1386 & ( * ( 0 as * const FT_Bitmap_Size_ ) ) . width as * const _
1387 as usize } , 2usize , concat ! (
1388 "Alignment of field: " , stringify ! ( FT_Bitmap_Size_ ) ,
1389 "::" , stringify ! ( width ) ));
1390 assert_eq! (unsafe {
1391 & ( * ( 0 as * const FT_Bitmap_Size_ ) ) . size as * const _
1392 as usize } , 8usize , concat ! (
1393 "Alignment of field: " , stringify ! ( FT_Bitmap_Size_ ) ,
1394 "::" , stringify ! ( size ) ));
1395 assert_eq! (unsafe {
1396 & ( * ( 0 as * const FT_Bitmap_Size_ ) ) . x_ppem as * const _
1397 as usize } , 16usize , concat ! (
1398 "Alignment of field: " , stringify ! ( FT_Bitmap_Size_ ) ,
1399 "::" , stringify ! ( x_ppem ) ));
1400 assert_eq! (unsafe {
1401 & ( * ( 0 as * const FT_Bitmap_Size_ ) ) . y_ppem as * const _
1402 as usize } , 24usize , concat ! (
1403 "Alignment of field: " , stringify ! ( FT_Bitmap_Size_ ) ,
1404 "::" , stringify ! ( y_ppem ) ));
1405 }
1406 impl Clone for FT_Bitmap_Size_ {
1407 fn clone(&self) -> Self { *self }
1408 }
1409 pub type FT_Bitmap_Size = FT_Bitmap_Size_;
1410 #[repr(C)]
1411 #[derive(Debug, Copy, Clone)]
1412 pub struct FT_LibraryRec_ {
1413 _unused: [u8; 0],
1414 }
1415 pub type FT_Library = *mut FT_LibraryRec_;
1416 #[repr(C)]
1417 #[derive(Debug, Copy, Clone)]
1418 pub struct FT_ModuleRec_ {
1419 _unused: [u8; 0],
1420 }
1421 pub type FT_Module = *mut FT_ModuleRec_;
1422 #[repr(C)]
1423 #[derive(Debug, Copy, Clone)]
1424 pub struct FT_DriverRec_ {
1425 _unused: [u8; 0],
1426 }
1427 pub type FT_Driver = *mut FT_DriverRec_;
1428 #[repr(C)]
1429 #[derive(Debug, Copy, Clone)]
1430 pub struct FT_RendererRec_ {
1431 _unused: [u8; 0],
1432 }
1433 pub type FT_Renderer = *mut FT_RendererRec_;
1434 #[repr(C)]
1435 #[derive(Debug, Copy)]
1436 pub struct FT_FaceRec_ {
1437 pub num_faces: FT_Long,
1438 pub face_index: FT_Long,
1439 pub face_flags: FT_Long,
1440 pub style_flags: FT_Long,
1441 pub num_glyphs: FT_Long,
1442 pub family_name: *mut FT_String,
1443 pub style_name: *mut FT_String,
1444 pub num_fixed_sizes: FT_Int,
1445 pub available_sizes: *mut FT_Bitmap_Size,
1446 pub num_charmaps: FT_Int,
1447 pub charmaps: *mut FT_CharMap,
1448 pub generic: FT_Generic,
1449 pub bbox: FT_BBox,
1450 pub units_per_EM: FT_UShort,
1451 pub ascender: FT_Short,
1452 pub descender: FT_Short,
1453 pub height: FT_Short,
1454 pub max_advance_width: FT_Short,
1455 pub max_advance_height: FT_Short,
1456 pub underline_position: FT_Short,
1457 pub underline_thickness: FT_Short,
1458 pub glyph: FT_GlyphSlot,
1459 pub size: FT_Size,
1460 pub charmap: FT_CharMap,
1461 pub driver: FT_Driver,
1462 pub memory: FT_Memory,
1463 pub stream: FT_Stream,
1464 pub sizes_list: FT_ListRec,
1465 pub autohint: FT_Generic,
1466 pub extensions: *mut ::std::os::raw::c_void,
1467 pub internal: FT_Face_Internal,
1468 }
1469 #[test]
1470 #[cfg(target_pointer_width="64")]
1471 fn bindgen_test_layout_FT_FaceRec_() {
1472 assert_eq!(::std::mem::size_of::<FT_FaceRec_>() , 248usize , concat ! (
1473 "Size of: " , stringify ! ( FT_FaceRec_ ) ));
1474 assert_eq! (::std::mem::align_of::<FT_FaceRec_>() , 8usize , concat ! (
1475 "Alignment of " , stringify ! ( FT_FaceRec_ ) ));
1476 assert_eq! (unsafe {
1477 & ( * ( 0 as * const FT_FaceRec_ ) ) . num_faces as * const _
1478 as usize } , 0usize , concat ! (
1479 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1480 stringify ! ( num_faces ) ));
1481 assert_eq! (unsafe {
1482 & ( * ( 0 as * const FT_FaceRec_ ) ) . face_index as * const _
1483 as usize } , 8usize , concat ! (
1484 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1485 stringify ! ( face_index ) ));
1486 assert_eq! (unsafe {
1487 & ( * ( 0 as * const FT_FaceRec_ ) ) . face_flags as * const _
1488 as usize } , 16usize , concat ! (
1489 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1490 stringify ! ( face_flags ) ));
1491 assert_eq! (unsafe {
1492 & ( * ( 0 as * const FT_FaceRec_ ) ) . style_flags as * const
1493 _ as usize } , 24usize , concat ! (
1494 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1495 stringify ! ( style_flags ) ));
1496 assert_eq! (unsafe {
1497 & ( * ( 0 as * const FT_FaceRec_ ) ) . num_glyphs as * const _
1498 as usize } , 32usize , concat ! (
1499 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1500 stringify ! ( num_glyphs ) ));
1501 assert_eq! (unsafe {
1502 & ( * ( 0 as * const FT_FaceRec_ ) ) . family_name as * const
1503 _ as usize } , 40usize , concat ! (
1504 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1505 stringify ! ( family_name ) ));
1506 assert_eq! (unsafe {
1507 & ( * ( 0 as * const FT_FaceRec_ ) ) . style_name as * const _
1508 as usize } , 48usize , concat ! (
1509 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1510 stringify ! ( style_name ) ));
1511 assert_eq! (unsafe {
1512 & ( * ( 0 as * const FT_FaceRec_ ) ) . num_fixed_sizes as *
1513 const _ as usize } , 56usize , concat ! (
1514 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1515 stringify ! ( num_fixed_sizes ) ));
1516 assert_eq! (unsafe {
1517 & ( * ( 0 as * const FT_FaceRec_ ) ) . available_sizes as *
1518 const _ as usize } , 64usize , concat ! (
1519 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1520 stringify ! ( available_sizes ) ));
1521 assert_eq! (unsafe {
1522 & ( * ( 0 as * const FT_FaceRec_ ) ) . num_charmaps as * const
1523 _ as usize } , 72usize , concat ! (
1524 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1525 stringify ! ( num_charmaps ) ));
1526 assert_eq! (unsafe {
1527 & ( * ( 0 as * const FT_FaceRec_ ) ) . charmaps as * const _
1528 as usize } , 80usize , concat ! (
1529 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1530 stringify ! ( charmaps ) ));
1531 assert_eq! (unsafe {
1532 & ( * ( 0 as * const FT_FaceRec_ ) ) . generic as * const _ as
1533 usize } , 88usize , concat ! (
1534 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1535 stringify ! ( generic ) ));
1536 assert_eq! (unsafe {
1537 & ( * ( 0 as * const FT_FaceRec_ ) ) . bbox as * const _ as
1538 usize } , 104usize , concat ! (
1539 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1540 stringify ! ( bbox ) ));
1541 assert_eq! (unsafe {
1542 & ( * ( 0 as * const FT_FaceRec_ ) ) . units_per_EM as * const
1543 _ as usize } , 136usize , concat ! (
1544 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1545 stringify ! ( units_per_EM ) ));
1546 assert_eq! (unsafe {
1547 & ( * ( 0 as * const FT_FaceRec_ ) ) . ascender as * const _
1548 as usize } , 138usize , concat ! (
1549 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1550 stringify ! ( ascender ) ));
1551 assert_eq! (unsafe {
1552 & ( * ( 0 as * const FT_FaceRec_ ) ) . descender as * const _
1553 as usize } , 140usize , concat ! (
1554 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1555 stringify ! ( descender ) ));
1556 assert_eq! (unsafe {
1557 & ( * ( 0 as * const FT_FaceRec_ ) ) . height as * const _ as
1558 usize } , 142usize , concat ! (
1559 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1560 stringify ! ( height ) ));
1561 assert_eq! (unsafe {
1562 & ( * ( 0 as * const FT_FaceRec_ ) ) . max_advance_width as *
1563 const _ as usize } , 144usize , concat ! (
1564 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1565 stringify ! ( max_advance_width ) ));
1566 assert_eq! (unsafe {
1567 & ( * ( 0 as * const FT_FaceRec_ ) ) . max_advance_height as *
1568 const _ as usize } , 146usize , concat ! (
1569 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1570 stringify ! ( max_advance_height ) ));
1571 assert_eq! (unsafe {
1572 & ( * ( 0 as * const FT_FaceRec_ ) ) . underline_position as *
1573 const _ as usize } , 148usize , concat ! (
1574 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1575 stringify ! ( underline_position ) ));
1576 assert_eq! (unsafe {
1577 & ( * ( 0 as * const FT_FaceRec_ ) ) . underline_thickness as
1578 * const _ as usize } , 150usize , concat ! (
1579 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1580 stringify ! ( underline_thickness ) ));
1581 assert_eq! (unsafe {
1582 & ( * ( 0 as * const FT_FaceRec_ ) ) . glyph as * const _ as
1583 usize } , 152usize , concat ! (
1584 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1585 stringify ! ( glyph ) ));
1586 assert_eq! (unsafe {
1587 & ( * ( 0 as * const FT_FaceRec_ ) ) . size as * const _ as
1588 usize } , 160usize , concat ! (
1589 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1590 stringify ! ( size ) ));
1591 assert_eq! (unsafe {
1592 & ( * ( 0 as * const FT_FaceRec_ ) ) . charmap as * const _ as
1593 usize } , 168usize , concat ! (
1594 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1595 stringify ! ( charmap ) ));
1596 assert_eq! (unsafe {
1597 & ( * ( 0 as * const FT_FaceRec_ ) ) . driver as * const _ as
1598 usize } , 176usize , concat ! (
1599 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1600 stringify ! ( driver ) ));
1601 assert_eq! (unsafe {
1602 & ( * ( 0 as * const FT_FaceRec_ ) ) . memory as * const _ as
1603 usize } , 184usize , concat ! (
1604 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1605 stringify ! ( memory ) ));
1606 assert_eq! (unsafe {
1607 & ( * ( 0 as * const FT_FaceRec_ ) ) . stream as * const _ as
1608 usize } , 192usize , concat ! (
1609 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1610 stringify ! ( stream ) ));
1611 assert_eq! (unsafe {
1612 & ( * ( 0 as * const FT_FaceRec_ ) ) . sizes_list as * const _
1613 as usize } , 200usize , concat ! (
1614 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1615 stringify ! ( sizes_list ) ));
1616 assert_eq! (unsafe {
1617 & ( * ( 0 as * const FT_FaceRec_ ) ) . autohint as * const _
1618 as usize } , 216usize , concat ! (
1619 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1620 stringify ! ( autohint ) ));
1621 assert_eq! (unsafe {
1622 & ( * ( 0 as * const FT_FaceRec_ ) ) . extensions as * const _
1623 as usize } , 232usize , concat ! (
1624 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1625 stringify ! ( extensions ) ));
1626 assert_eq! (unsafe {
1627 & ( * ( 0 as * const FT_FaceRec_ ) ) . internal as * const _
1628 as usize } , 240usize , concat ! (
1629 "Alignment of field: " , stringify ! ( FT_FaceRec_ ) , "::" ,
1630 stringify ! ( internal ) ));
1631 }
1632 impl Clone for FT_FaceRec_ {
1633 fn clone(&self) -> Self { *self }
1634 }
1635 pub type FT_Face = *mut FT_FaceRec_;
1636 #[repr(C)]
1637 #[derive(Debug, Copy)]
1638 pub struct FT_SizeRec_ {
1639 pub face: FT_Face,
1640 pub generic: FT_Generic,
1641 pub metrics: FT_Size_Metrics,
1642 pub internal: FT_Size_Internal,
1643 }
1644 #[test]
1645 #[cfg(target_pointer_width="64")]
1646 fn bindgen_test_layout_FT_SizeRec_() {
1647 assert_eq!(::std::mem::size_of::<FT_SizeRec_>() , 88usize , concat ! (
1648 "Size of: " , stringify ! ( FT_SizeRec_ ) ));
1649 assert_eq! (::std::mem::align_of::<FT_SizeRec_>() , 8usize , concat ! (
1650 "Alignment of " , stringify ! ( FT_SizeRec_ ) ));
1651 assert_eq! (unsafe {
1652 & ( * ( 0 as * const FT_SizeRec_ ) ) . face as * const _ as
1653 usize } , 0usize , concat ! (
1654 "Alignment of field: " , stringify ! ( FT_SizeRec_ ) , "::" ,
1655 stringify ! ( face ) ));
1656 assert_eq! (unsafe {
1657 & ( * ( 0 as * const FT_SizeRec_ ) ) . generic as * const _ as
1658 usize } , 8usize , concat ! (
1659 "Alignment of field: " , stringify ! ( FT_SizeRec_ ) , "::" ,
1660 stringify ! ( generic ) ));
1661 assert_eq! (unsafe {
1662 & ( * ( 0 as * const FT_SizeRec_ ) ) . metrics as * const _ as
1663 usize } , 24usize , concat ! (
1664 "Alignment of field: " , stringify ! ( FT_SizeRec_ ) , "::" ,
1665 stringify ! ( metrics ) ));
1666 assert_eq! (unsafe {
1667 & ( * ( 0 as * const FT_SizeRec_ ) ) . internal as * const _
1668 as usize } , 80usize , concat ! (
1669 "Alignment of field: " , stringify ! ( FT_SizeRec_ ) , "::" ,
1670 stringify ! ( internal ) ));
1671 }
1672 impl Clone for FT_SizeRec_ {
1673 fn clone(&self) -> Self { *self }
1674 }
1675 pub type FT_Size = *mut FT_SizeRec_;
1676 #[repr(C)]
1677 #[derive(Debug, Copy)]
1678 pub struct FT_GlyphSlotRec_ {
1679 pub library: FT_Library,
1680 pub face: FT_Face,
1681 pub next: FT_GlyphSlot,
1682 pub reserved: FT_UInt,
1683 pub generic: FT_Generic,
1684 pub metrics: FT_Glyph_Metrics,
1685 pub linearHoriAdvance: FT_Fixed,
1686 pub linearVertAdvance: FT_Fixed,
1687 pub advance: FT_Vector,
1688 pub format: FT_Glyph_Format,
1689 pub bitmap: FT_Bitmap,
1690 pub bitmap_left: FT_Int,
1691 pub bitmap_top: FT_Int,
1692 pub outline: FT_Outline,
1693 pub num_subglyphs: FT_UInt,
1694 pub subglyphs: FT_SubGlyph,
1695 pub control_data: *mut ::std::os::raw::c_void,
1696 pub control_len: ::std::os::raw::c_long,
1697 pub lsb_delta: FT_Pos,
1698 pub rsb_delta: FT_Pos,
1699 pub other: *mut ::std::os::raw::c_void,
1700 pub internal: FT_Slot_Internal,
1701 }
1702 #[test]
1703 #[cfg(target_pointer_width="64")]
1704 fn bindgen_test_layout_FT_GlyphSlotRec_() {
1705 assert_eq!(::std::mem::size_of::<FT_GlyphSlotRec_>() , 304usize , concat !
1706 ( "Size of: " , stringify ! ( FT_GlyphSlotRec_ ) ));
1707 assert_eq! (::std::mem::align_of::<FT_GlyphSlotRec_>() , 8usize , concat !
1708 ( "Alignment of " , stringify ! ( FT_GlyphSlotRec_ ) ));
1709 assert_eq! (unsafe {
1710 & ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . library as * const
1711 _ as usize } , 0usize , concat ! (
1712 "Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
1713 "::" , stringify ! ( library ) ));
1714 assert_eq! (unsafe {
1715 & ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . face as * const _
1716 as usize } , 8usize , concat ! (
1717 "Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
1718 "::" , stringify ! ( face ) ));
1719 assert_eq! (unsafe {
1720 & ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . next as * const _
1721 as usize } , 16usize , concat ! (
1722 "Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
1723 "::" , stringify ! ( next ) ));
1724 assert_eq! (unsafe {
1725 & ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . reserved as *
1726 const _ as usize } , 24usize , concat ! (
1727 "Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
1728 "::" , stringify ! ( reserved ) ));
1729 assert_eq! (unsafe {
1730 & ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . generic as * const
1731 _ as usize } , 32usize , concat ! (
1732 "Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
1733 "::" , stringify ! ( generic ) ));
1734 assert_eq! (unsafe {
1735 & ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . metrics as * const
1736 _ as usize } , 48usize , concat ! (
1737 "Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
1738 "::" , stringify ! ( metrics ) ));
1739 assert_eq! (unsafe {
1740 & ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . linearHoriAdvance
1741 as * const _ as usize } , 112usize , concat ! (
1742 "Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
1743 "::" , stringify ! ( linearHoriAdvance ) ));
1744 assert_eq! (unsafe {
1745 & ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . linearVertAdvance
1746 as * const _ as usize } , 120usize , concat ! (
1747 "Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
1748 "::" , stringify ! ( linearVertAdvance ) ));
1749 assert_eq! (unsafe {
1750 & ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . advance as * const
1751 _ as usize } , 128usize , concat ! (
1752 "Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
1753 "::" , stringify ! ( advance ) ));
1754 assert_eq! (unsafe {
1755 & ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . format as * const
1756 _ as usize } , 144usize , concat ! (
1757 "Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
1758 "::" , stringify ! ( format ) ));
1759 assert_eq! (unsafe {
1760 & ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . bitmap as * const
1761 _ as usize } , 152usize , concat ! (
1762 "Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
1763 "::" , stringify ! ( bitmap ) ));
1764 assert_eq! (unsafe {
1765 & ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . bitmap_left as *
1766 const _ as usize } , 192usize , concat ! (
1767 "Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
1768 "::" , stringify ! ( bitmap_left ) ));
1769 assert_eq! (unsafe {
1770 & ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . bitmap_top as *
1771 const _ as usize } , 196usize , concat ! (
1772 "Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
1773 "::" , stringify ! ( bitmap_top ) ));
1774 assert_eq! (unsafe {
1775 & ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . outline as * const
1776 _ as usize } , 200usize , concat ! (
1777 "Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
1778 "::" , stringify ! ( outline ) ));
1779 assert_eq! (unsafe {
1780 & ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . num_subglyphs as *
1781 const _ as usize } , 240usize , concat ! (
1782 "Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
1783 "::" , stringify ! ( num_subglyphs ) ));
1784 assert_eq! (unsafe {
1785 & ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . subglyphs as *
1786 const _ as usize } , 248usize , concat ! (
1787 "Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
1788 "::" , stringify ! ( subglyphs ) ));
1789 assert_eq! (unsafe {
1790 & ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . control_data as *
1791 const _ as usize } , 256usize , concat ! (
1792 "Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
1793 "::" , stringify ! ( control_data ) ));
1794 assert_eq! (unsafe {
1795 & ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . control_len as *
1796 const _ as usize } , 264usize , concat ! (
1797 "Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
1798 "::" , stringify ! ( control_len ) ));
1799 assert_eq! (unsafe {
1800 & ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . lsb_delta as *
1801 const _ as usize } , 272usize , concat ! (
1802 "Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
1803 "::" , stringify ! ( lsb_delta ) ));
1804 assert_eq! (unsafe {
1805 & ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . rsb_delta as *
1806 const _ as usize } , 280usize , concat ! (
1807 "Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
1808 "::" , stringify ! ( rsb_delta ) ));
1809 assert_eq! (unsafe {
1810 & ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . other as * const _
1811 as usize } , 288usize , concat ! (
1812 "Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
1813 "::" , stringify ! ( other ) ));
1814 assert_eq! (unsafe {
1815 & ( * ( 0 as * const FT_GlyphSlotRec_ ) ) . internal as *
1816 const _ as usize } , 296usize , concat ! (
1817 "Alignment of field: " , stringify ! ( FT_GlyphSlotRec_ ) ,
1818 "::" , stringify ! ( internal ) ));
1819 }
1820 impl Clone for FT_GlyphSlotRec_ {
1821 fn clone(&self) -> Self { *self }
1822 }
1823 pub type FT_GlyphSlot = *mut FT_GlyphSlotRec_;
1824 #[repr(C)]
1825 #[derive(Debug, Copy)]
1826 pub struct FT_CharMapRec_ {
1827 pub face: FT_Face,
1828 pub encoding: FT_Encoding,
1829 pub platform_id: FT_UShort,
1830 pub encoding_id: FT_UShort,
1831 }
1832 #[test]
1833 #[cfg(target_pointer_width="64")]
1834 fn bindgen_test_layout_FT_CharMapRec_() {
1835 assert_eq!(::std::mem::size_of::<FT_CharMapRec_>() , 16usize , concat ! (
1836 "Size of: " , stringify ! ( FT_CharMapRec_ ) ));
1837 assert_eq! (::std::mem::align_of::<FT_CharMapRec_>() , 8usize , concat ! (
1838 "Alignment of " , stringify ! ( FT_CharMapRec_ ) ));
1839 assert_eq! (unsafe {
1840 & ( * ( 0 as * const FT_CharMapRec_ ) ) . face as * const _ as
1841 usize } , 0usize , concat ! (
1842 "Alignment of field: " , stringify ! ( FT_CharMapRec_ ) , "::"
1843 , stringify ! ( face ) ));
1844 assert_eq! (unsafe {
1845 & ( * ( 0 as * const FT_CharMapRec_ ) ) . encoding as * const
1846 _ as usize } , 8usize , concat ! (
1847 "Alignment of field: " , stringify ! ( FT_CharMapRec_ ) , "::"
1848 , stringify ! ( encoding ) ));
1849 assert_eq! (unsafe {
1850 & ( * ( 0 as * const FT_CharMapRec_ ) ) . platform_id as *
1851 const _ as usize } , 12usize , concat ! (
1852 "Alignment of field: " , stringify ! ( FT_CharMapRec_ ) , "::"
1853 , stringify ! ( platform_id ) ));
1854 assert_eq! (unsafe {
1855 & ( * ( 0 as * const FT_CharMapRec_ ) ) . encoding_id as *
1856 const _ as usize } , 14usize , concat ! (
1857 "Alignment of field: " , stringify ! ( FT_CharMapRec_ ) , "::"
1858 , stringify ! ( encoding_id ) ));
1859 }
1860 impl Clone for FT_CharMapRec_ {
1861 fn clone(&self) -> Self { *self }
1862 }
1863 pub type FT_CharMap = *mut FT_CharMapRec_;
1864 pub const FT_Encoding__FT_ENCODING_MS_SJIS: FT_Encoding_ =
1865 FT_Encoding_::FT_ENCODING_SJIS;
1866 pub const FT_Encoding__FT_ENCODING_MS_GB2312: FT_Encoding_ =
1867 FT_Encoding_::FT_ENCODING_GB2312;
1868 pub const FT_Encoding__FT_ENCODING_MS_BIG5: FT_Encoding_ =
1869 FT_Encoding_::FT_ENCODING_BIG5;
1870 pub const FT_Encoding__FT_ENCODING_MS_WANSUNG: FT_Encoding_ =
1871 FT_Encoding_::FT_ENCODING_WANSUNG;
1872 pub const FT_Encoding__FT_ENCODING_MS_JOHAB: FT_Encoding_ =
1873 FT_Encoding_::FT_ENCODING_JOHAB;
1874 #[repr(u32)]
1875 #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
1876 pub enum FT_Encoding_ {
1877 FT_ENCODING_NONE = 0,
1878 FT_ENCODING_MS_SYMBOL = 1937337698,
1879 FT_ENCODING_UNICODE = 1970170211,
1880 FT_ENCODING_SJIS = 1936353651,
1881 FT_ENCODING_GB2312 = 1734484000,
1882 FT_ENCODING_BIG5 = 1651074869,
1883 FT_ENCODING_WANSUNG = 2002873971,
1884 FT_ENCODING_JOHAB = 1785686113,
1885 FT_ENCODING_ADOBE_STANDARD = 1094995778,
1886 FT_ENCODING_ADOBE_EXPERT = 1094992453,
1887 FT_ENCODING_ADOBE_CUSTOM = 1094992451,
1888 FT_ENCODING_ADOBE_LATIN_1 = 1818326065,
1889 FT_ENCODING_OLD_LATIN_2 = 1818326066,
1890 FT_ENCODING_APPLE_ROMAN = 1634889070,
1891 }
1892 pub use self::FT_Encoding_ as FT_Encoding;
1893 pub type FT_CharMapRec = FT_CharMapRec_;
1894 #[repr(C)]
1895 #[derive(Debug, Copy, Clone)]
1896 pub struct FT_Face_InternalRec_ {
1897 _unused: [u8; 0],
1898 }
1899 pub type FT_Face_Internal = *mut FT_Face_InternalRec_;
1900 pub type FT_FaceRec = FT_FaceRec_;
1901 #[repr(C)]
1902 #[derive(Debug, Copy, Clone)]
1903 pub struct FT_Size_InternalRec_ {
1904 _unused: [u8; 0],
1905 }
1906 pub type FT_Size_Internal = *mut FT_Size_InternalRec_;
1907 #[repr(C)]
1908 #[derive(Debug, Copy)]
1909 pub struct FT_Size_Metrics_ {
1910 pub x_ppem: FT_UShort,
1911 pub y_ppem: FT_UShort,
1912 pub x_scale: FT_Fixed,
1913 pub y_scale: FT_Fixed,
1914 pub ascender: FT_Pos,
1915 pub descender: FT_Pos,
1916 pub height: FT_Pos,
1917 pub max_advance: FT_Pos,
1918 }
1919 #[test]
1920 #[cfg(target_pointer_width="64")]
1921 fn bindgen_test_layout_FT_Size_Metrics_() {
1922 assert_eq!(::std::mem::size_of::<FT_Size_Metrics_>() , 56usize , concat !
1923 ( "Size of: " , stringify ! ( FT_Size_Metrics_ ) ));
1924 assert_eq! (::std::mem::align_of::<FT_Size_Metrics_>() , 8usize , concat !
1925 ( "Alignment of " , stringify ! ( FT_Size_Metrics_ ) ));
1926 assert_eq! (unsafe {
1927 & ( * ( 0 as * const FT_Size_Metrics_ ) ) . x_ppem as * const
1928 _ as usize } , 0usize , concat ! (
1929 "Alignment of field: " , stringify ! ( FT_Size_Metrics_ ) ,
1930 "::" , stringify ! ( x_ppem ) ));
1931 assert_eq! (unsafe {
1932 & ( * ( 0 as * const FT_Size_Metrics_ ) ) . y_ppem as * const
1933 _ as usize } , 2usize , concat ! (
1934 "Alignment of field: " , stringify ! ( FT_Size_Metrics_ ) ,
1935 "::" , stringify ! ( y_ppem ) ));
1936 assert_eq! (unsafe {
1937 & ( * ( 0 as * const FT_Size_Metrics_ ) ) . x_scale as * const
1938 _ as usize } , 8usize , concat ! (
1939 "Alignment of field: " , stringify ! ( FT_Size_Metrics_ ) ,
1940 "::" , stringify ! ( x_scale ) ));
1941 assert_eq! (unsafe {
1942 & ( * ( 0 as * const FT_Size_Metrics_ ) ) . y_scale as * const
1943 _ as usize } , 16usize , concat ! (
1944 "Alignment of field: " , stringify ! ( FT_Size_Metrics_ ) ,
1945 "::" , stringify ! ( y_scale ) ));
1946 assert_eq! (unsafe {
1947 & ( * ( 0 as * const FT_Size_Metrics_ ) ) . ascender as *
1948 const _ as usize } , 24usize , concat ! (
1949 "Alignment of field: " , stringify ! ( FT_Size_Metrics_ ) ,
1950 "::" , stringify ! ( ascender ) ));
1951 assert_eq! (unsafe {
1952 & ( * ( 0 as * const FT_Size_Metrics_ ) ) . descender as *
1953 const _ as usize } , 32usize , concat ! (
1954 "Alignment of field: " , stringify ! ( FT_Size_Metrics_ ) ,
1955 "::" , stringify ! ( descender ) ));
1956 assert_eq! (unsafe {
1957 & ( * ( 0 as * const FT_Size_Metrics_ ) ) . height as * const
1958 _ as usize } , 40usize , concat ! (
1959 "Alignment of field: " , stringify ! ( FT_Size_Metrics_ ) ,
1960 "::" , stringify ! ( height ) ));
1961 assert_eq! (unsafe {
1962 & ( * ( 0 as * const FT_Size_Metrics_ ) ) . max_advance as *
1963 const _ as usize } , 48usize , concat ! (
1964 "Alignment of field: " , stringify ! ( FT_Size_Metrics_ ) ,
1965 "::" , stringify ! ( max_advance ) ));
1966 }
1967 impl Clone for FT_Size_Metrics_ {
1968 fn clone(&self) -> Self { *self }
1969 }
1970 pub type FT_Size_Metrics = FT_Size_Metrics_;
1971 pub type FT_SizeRec = FT_SizeRec_;
1972 #[repr(C)]
1973 #[derive(Debug, Copy, Clone)]
1974 pub struct FT_SubGlyphRec_ {
1975 _unused: [u8; 0],
1976 }
1977 pub type FT_SubGlyph = *mut FT_SubGlyphRec_;
1978 #[repr(C)]
1979 #[derive(Debug, Copy, Clone)]
1980 pub struct FT_Slot_InternalRec_ {
1981 _unused: [u8; 0],
1982 }
1983 pub type FT_Slot_Internal = *mut FT_Slot_InternalRec_;
1984 pub type FT_GlyphSlotRec = FT_GlyphSlotRec_;
1985 extern "C" {
1986 pub fn FT_Init_FreeType(alibrary: *mut FT_Library) -> FT_Error;
1987 }
1988 extern "C" {
1989 pub fn FT_Done_FreeType(library: FT_Library) -> FT_Error;
1990 }
1991 #[repr(C)]
1992 #[derive(Debug, Copy)]
1993 pub struct FT_Parameter_ {
1994 pub tag: FT_ULong,
1995 pub data: FT_Pointer,
1996 }
1997 #[test]
1998 #[cfg(target_pointer_width="64")]
1999 fn bindgen_test_layout_FT_Parameter_() {
2000 assert_eq!(::std::mem::size_of::<FT_Parameter_>() , 16usize , concat ! (
2001 "Size of: " , stringify ! ( FT_Parameter_ ) ));
2002 assert_eq! (::std::mem::align_of::<FT_Parameter_>() , 8usize , concat ! (
2003 "Alignment of " , stringify ! ( FT_Parameter_ ) ));
2004 assert_eq! (unsafe {
2005 & ( * ( 0 as * const FT_Parameter_ ) ) . tag as * const _ as
2006 usize } , 0usize , concat ! (
2007 "Alignment of field: " , stringify ! ( FT_Parameter_ ) , "::"
2008 , stringify ! ( tag ) ));
2009 assert_eq! (unsafe {
2010 & ( * ( 0 as * const FT_Parameter_ ) ) . data as * const _ as
2011 usize } , 8usize , concat ! (
2012 "Alignment of field: " , stringify ! ( FT_Parameter_ ) , "::"
2013 , stringify ! ( data ) ));
2014 }
2015 impl Clone for FT_Parameter_ {
2016 fn clone(&self) -> Self { *self }
2017 }
2018 pub type FT_Parameter = FT_Parameter_;
2019 #[repr(C)]
2020 #[derive(Debug, Copy)]
2021 pub struct FT_Open_Args_ {
2022 pub flags: FT_UInt,
2023 pub memory_base: *const FT_Byte,
2024 pub memory_size: FT_Long,
2025 pub pathname: *mut FT_String,
2026 pub stream: FT_Stream,
2027 pub driver: FT_Module,
2028 pub num_params: FT_Int,
2029 pub params: *mut FT_Parameter,
2030 }
2031 #[test]
2032 #[cfg(target_pointer_width="64")]
2033 fn bindgen_test_layout_FT_Open_Args_() {
2034 assert_eq!(::std::mem::size_of::<FT_Open_Args_>() , 64usize , concat ! (
2035 "Size of: " , stringify ! ( FT_Open_Args_ ) ));
2036 assert_eq! (::std::mem::align_of::<FT_Open_Args_>() , 8usize , concat ! (
2037 "Alignment of " , stringify ! ( FT_Open_Args_ ) ));
2038 assert_eq! (unsafe {
2039 & ( * ( 0 as * const FT_Open_Args_ ) ) . flags as * const _ as
2040 usize } , 0usize , concat ! (
2041 "Alignment of field: " , stringify ! ( FT_Open_Args_ ) , "::"
2042 , stringify ! ( flags ) ));
2043 assert_eq! (unsafe {
2044 & ( * ( 0 as * const FT_Open_Args_ ) ) . memory_base as *
2045 const _ as usize } , 8usize , concat ! (
2046 "Alignment of field: " , stringify ! ( FT_Open_Args_ ) , "::"
2047 , stringify ! ( memory_base ) ));
2048 assert_eq! (unsafe {
2049 & ( * ( 0 as * const FT_Open_Args_ ) ) . memory_size as *
2050 const _ as usize } , 16usize , concat ! (
2051 "Alignment of field: " , stringify ! ( FT_Open_Args_ ) , "::"
2052 , stringify ! ( memory_size ) ));
2053 assert_eq! (unsafe {
2054 & ( * ( 0 as * const FT_Open_Args_ ) ) . pathname as * const _
2055 as usize } , 24usize , concat ! (
2056 "Alignment of field: " , stringify ! ( FT_Open_Args_ ) , "::"
2057 , stringify ! ( pathname ) ));
2058 assert_eq! (unsafe {
2059 & ( * ( 0 as * const FT_Open_Args_ ) ) . stream as * const _
2060 as usize } , 32usize , concat ! (
2061 "Alignment of field: " , stringify ! ( FT_Open_Args_ ) , "::"
2062 , stringify ! ( stream ) ));
2063 assert_eq! (unsafe {
2064 & ( * ( 0 as * const FT_Open_Args_ ) ) . driver as * const _
2065 as usize } , 40usize , concat ! (
2066 "Alignment of field: " , stringify ! ( FT_Open_Args_ ) , "::"
2067 , stringify ! ( driver ) ));
2068 assert_eq! (unsafe {
2069 & ( * ( 0 as * const FT_Open_Args_ ) ) . num_params as * const
2070 _ as usize } , 48usize , concat ! (
2071 "Alignment of field: " , stringify ! ( FT_Open_Args_ ) , "::"
2072 , stringify ! ( num_params ) ));
2073 assert_eq! (unsafe {
2074 & ( * ( 0 as * const FT_Open_Args_ ) ) . params as * const _
2075 as usize } , 56usize , concat ! (
2076 "Alignment of field: " , stringify ! ( FT_Open_Args_ ) , "::"
2077 , stringify ! ( params ) ));
2078 }
2079 impl Clone for FT_Open_Args_ {
2080 fn clone(&self) -> Self { *self }
2081 }
2082 pub type FT_Open_Args = FT_Open_Args_;
2083 extern "C" {
2084 pub fn FT_New_Face(library: FT_Library,
2085 filepathname: *const ::std::os::raw::c_char,
2086 face_index: FT_Long, aface: *mut FT_Face) -> FT_Error;
2087 }
2088 extern "C" {
2089 pub fn FT_New_Memory_Face(library: FT_Library, file_base: *const FT_Byte,
2090 file_size: FT_Long, face_index: FT_Long,
2091 aface: *mut FT_Face) -> FT_Error;
2092 }
2093 extern "C" {
2094 pub fn FT_Open_Face(library: FT_Library, args: *const FT_Open_Args,
2095 face_index: FT_Long, aface: *mut FT_Face) -> FT_Error;
2096 }
2097 extern "C" {
2098 pub fn FT_Attach_File(face: FT_Face,
2099 filepathname: *const ::std::os::raw::c_char)
2100 -> FT_Error;
2101 }
2102 extern "C" {
2103 pub fn FT_Attach_Stream(face: FT_Face, parameters: *mut FT_Open_Args)
2104 -> FT_Error;
2105 }
2106 extern "C" {
2107 pub fn FT_Reference_Face(face: FT_Face) -> FT_Error;
2108 }
2109 extern "C" {
2110 pub fn FT_Done_Face(face: FT_Face) -> FT_Error;
2111 }
2112 extern "C" {
2113 pub fn FT_Select_Size(face: FT_Face, strike_index: FT_Int) -> FT_Error;
2114 }
2115 #[repr(u32)]
2116 #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
2117 pub enum FT_Size_Request_Type_ {
2118 FT_SIZE_REQUEST_TYPE_NOMINAL = 0,
2119 FT_SIZE_REQUEST_TYPE_REAL_DIM = 1,
2120 FT_SIZE_REQUEST_TYPE_BBOX = 2,
2121 FT_SIZE_REQUEST_TYPE_CELL = 3,
2122 FT_SIZE_REQUEST_TYPE_SCALES = 4,
2123 FT_SIZE_REQUEST_TYPE_MAX = 5,
2124 }
2125 pub use self::FT_Size_Request_Type_ as FT_Size_Request_Type;
2126 #[repr(C)]
2127 #[derive(Debug, Copy)]
2128 pub struct FT_Size_RequestRec_ {
2129 pub type_: FT_Size_Request_Type,
2130 pub width: FT_Long,
2131 pub height: FT_Long,
2132 pub horiResolution: FT_UInt,
2133 pub vertResolution: FT_UInt,
2134 }
2135 #[test]
2136 #[cfg(target_pointer_width="64")]
2137 fn bindgen_test_layout_FT_Size_RequestRec_() {
2138 assert_eq!(::std::mem::size_of::<FT_Size_RequestRec_>() , 32usize , concat
2139 ! ( "Size of: " , stringify ! ( FT_Size_RequestRec_ ) ));
2140 assert_eq! (::std::mem::align_of::<FT_Size_RequestRec_>() , 8usize ,
2141 concat ! (
2142 "Alignment of " , stringify ! ( FT_Size_RequestRec_ ) ));
2143 assert_eq! (unsafe {
2144 & ( * ( 0 as * const FT_Size_RequestRec_ ) ) . type_ as *
2145 const _ as usize } , 0usize , concat ! (
2146 "Alignment of field: " , stringify ! ( FT_Size_RequestRec_ ) ,
2147 "::" , stringify ! ( type_ ) ));
2148 assert_eq! (unsafe {
2149 & ( * ( 0 as * const FT_Size_RequestRec_ ) ) . width as *
2150 const _ as usize } , 8usize , concat ! (
2151 "Alignment of field: " , stringify ! ( FT_Size_RequestRec_ ) ,
2152 "::" , stringify ! ( width ) ));
2153 assert_eq! (unsafe {
2154 & ( * ( 0 as * const FT_Size_RequestRec_ ) ) . height as *
2155 const _ as usize } , 16usize , concat ! (
2156 "Alignment of field: " , stringify ! ( FT_Size_RequestRec_ ) ,
2157 "::" , stringify ! ( height ) ));
2158 assert_eq! (unsafe {
2159 & ( * ( 0 as * const FT_Size_RequestRec_ ) ) . horiResolution
2160 as * const _ as usize } , 24usize , concat ! (
2161 "Alignment of field: " , stringify ! ( FT_Size_RequestRec_ ) ,
2162 "::" , stringify ! ( horiResolution ) ));
2163 assert_eq! (unsafe {
2164 & ( * ( 0 as * const FT_Size_RequestRec_ ) ) . vertResolution
2165 as * const _ as usize } , 28usize , concat ! (
2166 "Alignment of field: " , stringify ! ( FT_Size_RequestRec_ ) ,
2167 "::" , stringify ! ( vertResolution ) ));
2168 }
2169 impl Clone for FT_Size_RequestRec_ {
2170 fn clone(&self) -> Self { *self }
2171 }
2172 pub type FT_Size_RequestRec = FT_Size_RequestRec_;
2173 pub type FT_Size_Request = *mut FT_Size_RequestRec_;
2174 extern "C" {
2175 pub fn FT_Request_Size(face: FT_Face, req: FT_Size_Request) -> FT_Error;
2176 }
2177 extern "C" {
2178 pub fn FT_Set_Char_Size(face: FT_Face, char_width: FT_F26Dot6,
2179 char_height: FT_F26Dot6, horz_resolution: FT_UInt,
2180 vert_resolution: FT_UInt) -> FT_Error;
2181 }
2182 extern "C" {
2183 pub fn FT_Set_Pixel_Sizes(face: FT_Face, pixel_width: FT_UInt,
2184 pixel_height: FT_UInt) -> FT_Error;
2185 }
2186 extern "C" {
2187 pub fn FT_Load_Glyph(face: FT_Face, glyph_index: FT_UInt,
2188 load_flags: FT_Int32) -> FT_Error;
2189 }
2190 extern "C" {
2191 pub fn FT_Load_Char(face: FT_Face, char_code: FT_ULong,
2192 load_flags: FT_Int32) -> FT_Error;
2193 }
2194 extern "C" {
2195 pub fn FT_Set_Transform(face: FT_Face, matrix: *mut FT_Matrix,
2196 delta: *mut FT_Vector);
2197 }
2198 #[repr(u32)]
2199 #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
2200 pub enum FT_Render_Mode_ {
2201 FT_RENDER_MODE_NORMAL = 0,
2202 FT_RENDER_MODE_LIGHT = 1,
2203 FT_RENDER_MODE_MONO = 2,
2204 FT_RENDER_MODE_LCD = 3,
2205 FT_RENDER_MODE_LCD_V = 4,
2206 FT_RENDER_MODE_MAX = 5,
2207 }
2208 pub use self::FT_Render_Mode_ as FT_Render_Mode;
2209 extern "C" {
2210 pub fn FT_Render_Glyph(slot: FT_GlyphSlot, render_mode: FT_Render_Mode)
2211 -> FT_Error;
2212 }
2213 #[repr(u32)]
2214 #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
2215 pub enum FT_Kerning_Mode_ {
2216 FT_KERNING_DEFAULT = 0,
2217 FT_KERNING_UNFITTED = 1,
2218 FT_KERNING_UNSCALED = 2,
2219 }
2220 pub use self::FT_Kerning_Mode_ as FT_Kerning_Mode;
2221 extern "C" {
2222 pub fn FT_Get_Kerning(face: FT_Face, left_glyph: FT_UInt,
2223 right_glyph: FT_UInt, kern_mode: FT_UInt,
2224 akerning: *mut FT_Vector) -> FT_Error;
2225 }
2226 extern "C" {
2227 pub fn FT_Get_Track_Kerning(face: FT_Face, point_size: FT_Fixed,
2228 degree: FT_Int, akerning: *mut FT_Fixed)
2229 -> FT_Error;
2230 }
2231 extern "C" {
2232 pub fn FT_Get_Glyph_Name(face: FT_Face, glyph_index: FT_UInt,
2233 buffer: FT_Pointer, buffer_max: FT_UInt)
2234 -> FT_Error;
2235 }
2236 extern "C" {
2237 pub fn FT_Get_Postscript_Name(face: FT_Face)
2238 -> *const ::std::os::raw::c_char;
2239 }
2240 extern "C" {
2241 pub fn FT_Select_Charmap(face: FT_Face, encoding: FT_Encoding)
2242 -> FT_Error;
2243 }
2244 extern "C" {
2245 pub fn FT_Set_Charmap(face: FT_Face, charmap: FT_CharMap) -> FT_Error;
2246 }
2247 extern "C" {
2248 pub fn FT_Get_Charmap_Index(charmap: FT_CharMap) -> FT_Int;
2249 }
2250 extern "C" {
2251 pub fn FT_Get_Char_Index(face: FT_Face, charcode: FT_ULong) -> FT_UInt;
2252 }
2253 extern "C" {
2254 pub fn FT_Get_First_Char(face: FT_Face, agindex: *mut FT_UInt)
2255 -> FT_ULong;
2256 }
2257 extern "C" {
2258 pub fn FT_Get_Next_Char(face: FT_Face, char_code: FT_ULong,
2259 agindex: *mut FT_UInt) -> FT_ULong;
2260 }
2261 extern "C" {
2262 pub fn FT_Get_Name_Index(face: FT_Face, glyph_name: *mut FT_String)
2263 -> FT_UInt;
2264 }
2265 extern "C" {
2266 pub fn FT_Get_SubGlyph_Info(glyph: FT_GlyphSlot, sub_index: FT_UInt,
2267 p_index: *mut FT_Int, p_flags: *mut FT_UInt,
2268 p_arg1: *mut FT_Int, p_arg2: *mut FT_Int,
2269 p_transform: *mut FT_Matrix) -> FT_Error;
2270 }
2271 extern "C" {
2272 pub fn FT_Get_FSType_Flags(face: FT_Face) -> FT_UShort;
2273 }
2274 extern "C" {
2275 pub fn FT_Face_GetCharVariantIndex(face: FT_Face, charcode: FT_ULong,
2276 variantSelector: FT_ULong) -> FT_UInt;
2277 }
2278 extern "C" {
2279 pub fn FT_Face_GetCharVariantIsDefault(face: FT_Face, charcode: FT_ULong,
2280 variantSelector: FT_ULong)
2281 -> FT_Int;
2282 }
2283 extern "C" {
2284 pub fn FT_Face_GetVariantSelectors(face: FT_Face) -> *mut FT_UInt32;
2285 }
2286 extern "C" {
2287 pub fn FT_Face_GetVariantsOfChar(face: FT_Face, charcode: FT_ULong)
2288 -> *mut FT_UInt32;
2289 }
2290 extern "C" {
2291 pub fn FT_Face_GetCharsOfVariant(face: FT_Face, variantSelector: FT_ULong)
2292 -> *mut FT_UInt32;
2293 }
2294 extern "C" {
2295 pub fn FT_MulDiv(a: FT_Long, b: FT_Long, c: FT_Long) -> FT_Long;
2296 }
2297 extern "C" {
2298 pub fn FT_MulFix(a: FT_Long, b: FT_Long) -> FT_Long;
2299 }
2300 extern "C" {
2301 pub fn FT_DivFix(a: FT_Long, b: FT_Long) -> FT_Long;
2302 }
2303 extern "C" {
2304 pub fn FT_RoundFix(a: FT_Fixed) -> FT_Fixed;
2305 }
2306 extern "C" {
2307 pub fn FT_CeilFix(a: FT_Fixed) -> FT_Fixed;
2308 }
2309 extern "C" {
2310 pub fn FT_FloorFix(a: FT_Fixed) -> FT_Fixed;
2311 }
2312 extern "C" {
2313 pub fn FT_Vector_Transform(vec: *mut FT_Vector, matrix: *const FT_Matrix);
2314 }
2315 extern "C" {
2316 pub fn FT_Library_Version(library: FT_Library, amajor: *mut FT_Int,
2317 aminor: *mut FT_Int, apatch: *mut FT_Int);
2318 }
2319 extern "C" {
2320 pub fn FT_Face_CheckTrueTypePatents(face: FT_Face) -> FT_Bool;
2321 }
2322 extern "C" {
2323 pub fn FT_Face_SetUnpatentedHinting(face: FT_Face, value: FT_Bool)
2324 -> FT_Bool;
2325 }
2326 #[repr(u32)]
2327 #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
2328 pub enum FT_LcdFilter_ {
2329 FT_LCD_FILTER_NONE = 0,
2330 FT_LCD_FILTER_DEFAULT = 1,
2331 FT_LCD_FILTER_LIGHT = 2,
2332 FT_LCD_FILTER_LEGACY1 = 3,
2333 FT_LCD_FILTER_LEGACY = 16,
2334 FT_LCD_FILTER_MAX = 17,
2335 }
2336 pub use self::FT_LcdFilter_ as FT_LcdFilter;
2337 extern "C" {
2338 pub fn FT_Library_SetLcdFilter(library: FT_Library, filter: FT_LcdFilter)
2339 -> FT_Error;
2340 }
2341 extern "C" {
2342 pub fn FT_Library_SetLcdFilterWeights(library: FT_Library,
2343 weights:
2344 *mut ::std::os::raw::c_uchar)
2345 -> FT_Error;
2346 }
2347 #[repr(u32)]
2348 #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
2349 pub enum FT_Sfnt_Tag_ {
2350 FT_SFNT_HEAD = 0,
2351 FT_SFNT_MAXP = 1,
2352 FT_SFNT_OS2 = 2,
2353 FT_SFNT_HHEA = 3,
2354 FT_SFNT_VHEA = 4,
2355 FT_SFNT_POST = 5,
2356 FT_SFNT_PCLT = 6,
2357 FT_SFNT_MAX = 7,
2358 }
2359 pub use self::FT_Sfnt_Tag_ as FT_Sfnt_Tag;
2360 extern "C" {
2361 pub fn FT_Get_Sfnt_Table(face: FT_Face, tag: FT_Sfnt_Tag)
2362 -> *mut ::std::os::raw::c_void;
2363 }
2364 extern "C" {
2365 pub fn FT_Load_Sfnt_Table(face: FT_Face, tag: FT_ULong, offset: FT_Long,
2366 buffer: *mut FT_Byte, length: *mut FT_ULong)
2367 -> FT_Error;
2368 }
2369 extern "C" {
2370 pub fn FT_Sfnt_Table_Info(face: FT_Face, table_index: FT_UInt,
2371 tag: *mut FT_ULong, length: *mut FT_ULong)
2372 -> FT_Error;
2373 }
2374 extern "C" {
2375 pub fn FT_Get_CMap_Language_ID(charmap: FT_CharMap) -> FT_ULong;
2376 }
2377 extern "C" {
2378 pub fn FT_Get_CMap_Format(charmap: FT_CharMap) -> FT_Long;
2379 }
2380 pub type FT_Module_Interface = FT_Pointer;
2381 pub type FT_Module_Constructor =
2382 ::std::option::Option<unsafe extern "C" fn(module: FT_Module)
2383 -> FT_Error>;
2384 pub type FT_Module_Destructor =
2385 ::std::option::Option<unsafe extern "C" fn(module: FT_Module)>;
2386 pub type FT_Module_Requester =
2387 ::std::option::Option<unsafe extern "C" fn(module: FT_Module,
2388 name:
2389 *const ::std::os::raw::c_char)
2390 -> FT_Module_Interface>;
2391 #[repr(C)]
2392 #[derive(Debug, Copy)]
2393 pub struct FT_Module_Class_ {
2394 pub module_flags: FT_ULong,
2395 pub module_size: FT_Long,
2396 pub module_name: *const FT_String,
2397 pub module_version: FT_Fixed,
2398 pub module_requires: FT_Fixed,
2399 pub module_interface: *const ::std::os::raw::c_void,
2400 pub module_init: FT_Module_Constructor,
2401 pub module_done: FT_Module_Destructor,
2402 pub get_interface: FT_Module_Requester,
2403 }
2404 #[test]
2405 #[cfg(target_pointer_width="64")]
2406 fn bindgen_test_layout_FT_Module_Class_() {
2407 assert_eq!(::std::mem::size_of::<FT_Module_Class_>() , 72usize , concat !
2408 ( "Size of: " , stringify ! ( FT_Module_Class_ ) ));
2409 assert_eq! (::std::mem::align_of::<FT_Module_Class_>() , 8usize , concat !
2410 ( "Alignment of " , stringify ! ( FT_Module_Class_ ) ));
2411 assert_eq! (unsafe {
2412 & ( * ( 0 as * const FT_Module_Class_ ) ) . module_flags as *
2413 const _ as usize } , 0usize , concat ! (
2414 "Alignment of field: " , stringify ! ( FT_Module_Class_ ) ,
2415 "::" , stringify ! ( module_flags ) ));
2416 assert_eq! (unsafe {
2417 & ( * ( 0 as * const FT_Module_Class_ ) ) . module_size as *
2418 const _ as usize } , 8usize , concat ! (
2419 "Alignment of field: " , stringify ! ( FT_Module_Class_ ) ,
2420 "::" , stringify ! ( module_size ) ));
2421 assert_eq! (unsafe {
2422 & ( * ( 0 as * const FT_Module_Class_ ) ) . module_name as *
2423 const _ as usize } , 16usize , concat ! (
2424 "Alignment of field: " , stringify ! ( FT_Module_Class_ ) ,
2425 "::" , stringify ! ( module_name ) ));
2426 assert_eq! (unsafe {
2427 & ( * ( 0 as * const FT_Module_Class_ ) ) . module_version as
2428 * const _ as usize } , 24usize , concat ! (
2429 "Alignment of field: " , stringify ! ( FT_Module_Class_ ) ,
2430 "::" , stringify ! ( module_version ) ));
2431 assert_eq! (unsafe {
2432 & ( * ( 0 as * const FT_Module_Class_ ) ) . module_requires as
2433 * const _ as usize } , 32usize , concat ! (
2434 "Alignment of field: " , stringify ! ( FT_Module_Class_ ) ,
2435 "::" , stringify ! ( module_requires ) ));
2436 assert_eq! (unsafe {
2437 & ( * ( 0 as * const FT_Module_Class_ ) ) . module_interface
2438 as * const _ as usize } , 40usize , concat ! (
2439 "Alignment of field: " , stringify ! ( FT_Module_Class_ ) ,
2440 "::" , stringify ! ( module_interface ) ));
2441 assert_eq! (unsafe {
2442 & ( * ( 0 as * const FT_Module_Class_ ) ) . module_init as *
2443 const _ as usize } , 48usize , concat ! (
2444 "Alignment of field: " , stringify ! ( FT_Module_Class_ ) ,
2445 "::" , stringify ! ( module_init ) ));
2446 assert_eq! (unsafe {
2447 & ( * ( 0 as * const FT_Module_Class_ ) ) . module_done as *
2448 const _ as usize } , 56usize , concat ! (
2449 "Alignment of field: " , stringify ! ( FT_Module_Class_ ) ,
2450 "::" , stringify ! ( module_done ) ));
2451 assert_eq! (unsafe {
2452 & ( * ( 0 as * const FT_Module_Class_ ) ) . get_interface as *
2453 const _ as usize } , 64usize , concat ! (
2454 "Alignment of field: " , stringify ! ( FT_Module_Class_ ) ,
2455 "::" , stringify ! ( get_interface ) ));
2456 }
2457 impl Clone for FT_Module_Class_ {
2458 fn clone(&self) -> Self { *self }
2459 }
2460 pub type FT_Module_Class = FT_Module_Class_;
2461 extern "C" {
2462 pub fn FT_Add_Module(library: FT_Library, clazz: *const FT_Module_Class)
2463 -> FT_Error;
2464 }
2465 extern "C" {
2466 pub fn FT_Get_Module(library: FT_Library,
2467 module_name: *const ::std::os::raw::c_char)
2468 -> FT_Module;
2469 }
2470 extern "C" {
2471 pub fn FT_Remove_Module(library: FT_Library, module: FT_Module)
2472 -> FT_Error;
2473 }
2474 extern "C" {
2475 pub fn FT_Property_Set(library: FT_Library, module_name: *const FT_String,
2476 property_name: *const FT_String,
2477 value: *const ::std::os::raw::c_void) -> FT_Error;
2478 }
2479 extern "C" {
2480 pub fn FT_Property_Get(library: FT_Library, module_name: *const FT_String,
2481 property_name: *const FT_String,
2482 value: *mut ::std::os::raw::c_void) -> FT_Error;
2483 }
2484 extern "C" {
2485 pub fn FT_Reference_Library(library: FT_Library) -> FT_Error;
2486 }
2487 extern "C" {
2488 pub fn FT_New_Library(memory: FT_Memory, alibrary: *mut FT_Library)
2489 -> FT_Error;
2490 }
2491 extern "C" {
2492 pub fn FT_Done_Library(library: FT_Library) -> FT_Error;
2493 }
2494 pub type FT_DebugHook_Func =
2495 ::std::option::Option<unsafe extern "C" fn(arg:
2496 *mut ::std::os::raw::c_void)>;
2497 extern "C" {
2498 pub fn FT_Set_Debug_Hook(library: FT_Library, hook_index: FT_UInt,
2499 debug_hook: FT_DebugHook_Func);
2500 }
2501 extern "C" {
2502 pub fn FT_Add_Default_Modules(library: FT_Library);
2503 }
2504 #[repr(u32)]
2505 #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
2506 pub enum FT_TrueTypeEngineType_ {
2507 FT_TRUETYPE_ENGINE_TYPE_NONE = 0,
2508 FT_TRUETYPE_ENGINE_TYPE_UNPATENTED = 1,
2509 FT_TRUETYPE_ENGINE_TYPE_PATENTED = 2,
2510 }
2511 pub use self::FT_TrueTypeEngineType_ as FT_TrueTypeEngineType;
2512 extern "C" {
2513 pub fn FT_Get_TrueType_Engine_Type(library: FT_Library)
2514 -> FT_TrueTypeEngineType;
2515 }
2516 extern "C" {
2517 pub fn FT_Outline_Decompose(outline: *mut FT_Outline,
2518 func_interface: *const FT_Outline_Funcs,
2519 user: *mut ::std::os::raw::c_void)
2520 -> FT_Error;
2521 }
2522 extern "C" {
2523 pub fn FT_Outline_New(library: FT_Library, numPoints: FT_UInt,
2524 numContours: FT_Int, anoutline: *mut FT_Outline)
2525 -> FT_Error;
2526 }
2527 extern "C" {
2528 pub fn FT_Outline_New_Internal(memory: FT_Memory, numPoints: FT_UInt,
2529 numContours: FT_Int,
2530 anoutline: *mut FT_Outline) -> FT_Error;
2531 }
2532 extern "C" {
2533 pub fn FT_Outline_Done(library: FT_Library, outline: *mut FT_Outline)
2534 -> FT_Error;
2535 }
2536 extern "C" {
2537 pub fn FT_Outline_Done_Internal(memory: FT_Memory,
2538 outline: *mut FT_Outline) -> FT_Error;
2539 }
2540 extern "C" {
2541 pub fn FT_Outline_Check(outline: *mut FT_Outline) -> FT_Error;
2542 }
2543 extern "C" {
2544 pub fn FT_Outline_Get_CBox(outline: *const FT_Outline,
2545 acbox: *mut FT_BBox);
2546 }
2547 extern "C" {
2548 pub fn FT_Outline_Translate(outline: *const FT_Outline, xOffset: FT_Pos,
2549 yOffset: FT_Pos);
2550 }
2551 extern "C" {
2552 pub fn FT_Outline_Copy(source: *const FT_Outline, target: *mut FT_Outline)
2553 -> FT_Error;
2554 }
2555 extern "C" {
2556 pub fn FT_Outline_Transform(outline: *const FT_Outline,
2557 matrix: *const FT_Matrix);
2558 }
2559 extern "C" {
2560 pub fn FT_Outline_Embolden(outline: *mut FT_Outline, strength: FT_Pos)
2561 -> FT_Error;
2562 }
2563 extern "C" {
2564 pub fn FT_Outline_EmboldenXY(outline: *mut FT_Outline, xstrength: FT_Pos,
2565 ystrength: FT_Pos) -> FT_Error;
2566 }
2567 extern "C" {
2568 pub fn FT_Outline_Reverse(outline: *mut FT_Outline);
2569 }
2570 extern "C" {
2571 pub fn FT_Outline_Get_Bitmap(library: FT_Library,
2572 outline: *mut FT_Outline,
2573 abitmap: *const FT_Bitmap) -> FT_Error;
2574 }
2575 extern "C" {
2576 pub fn FT_Outline_Render(library: FT_Library, outline: *mut FT_Outline,
2577 params: *mut FT_Raster_Params) -> FT_Error;
2578 }
2579 pub const FT_Orientation__FT_ORIENTATION_FILL_RIGHT: FT_Orientation_ =
2580 FT_Orientation_::FT_ORIENTATION_TRUETYPE;
2581 pub const FT_Orientation__FT_ORIENTATION_FILL_LEFT: FT_Orientation_ =
2582 FT_Orientation_::FT_ORIENTATION_POSTSCRIPT;
2583 #[repr(u32)]
2584 #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
2585 pub enum FT_Orientation_ {
2586 FT_ORIENTATION_TRUETYPE = 0,
2587 FT_ORIENTATION_POSTSCRIPT = 1,
2588 FT_ORIENTATION_NONE = 2,
2589 }
2590 pub use self::FT_Orientation_ as FT_Orientation;
2591 extern "C" {
2592 pub fn FT_Outline_Get_Orientation(outline: *mut FT_Outline)
2593 -> FT_Orientation;
2594 }