Debian Codegraph @

imperl.h

raw
1 /*
2 This header file defines types that Imager's typemap uses to convert to
3 perl types.
4
5 This is meant for use in XS code, not in normal C source.
6 */
7 #ifndef IMAGER_IMPERL_H
8 #define IMAGER_IMPERL_H
9
10 #include "imdatatypes.h"
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 typedef i_color* Imager__Color;
17 typedef i_fcolor* Imager__Color__Float;
18 typedef i_img* Imager__ImgRaw;
19 typedef int undef_neg_int;
20 typedef i_img * Imager;
21
22 #ifdef HAVE_LIBTT
23 typedef TT_Fonthandle* Imager__Font__TT;
24 #endif
25
26 /* for the fill objects
27 Since a fill object may later have dependent images, (or fills!)
28 we need perl wrappers - oh well
29 */
30 #define IFILL_DESTROY(fill) i_fill_destroy(fill);
31 typedef i_fill_t* Imager__FillHandle;
32
33 typedef io_glue *Imager__IO;
34
35 #ifdef __cplusplus
36 }
37 #endif
38
39 #endif