Debian Codegraph @

src/freetype.rs

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