Warning, file /include/freetype2/freetype/ftrender.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019 #ifndef FTRENDER_H_
0020 #define FTRENDER_H_
0021
0022
0023 #include <freetype/ftmodapi.h>
0024 #include <freetype/ftglyph.h>
0025
0026
0027 FT_BEGIN_HEADER
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039 typedef FT_Error
0040 (*FT_Glyph_InitFunc)( FT_Glyph glyph,
0041 FT_GlyphSlot slot );
0042
0043
0044 typedef void
0045 (*FT_Glyph_DoneFunc)( FT_Glyph glyph );
0046
0047 typedef void
0048 (*FT_Glyph_TransformFunc)( FT_Glyph glyph,
0049 const FT_Matrix* matrix,
0050 const FT_Vector* delta );
0051
0052 typedef void
0053 (*FT_Glyph_GetBBoxFunc)( FT_Glyph glyph,
0054 FT_BBox* abbox );
0055
0056 typedef FT_Error
0057 (*FT_Glyph_CopyFunc)( FT_Glyph source,
0058 FT_Glyph target );
0059
0060 typedef FT_Error
0061 (*FT_Glyph_PrepareFunc)( FT_Glyph glyph,
0062 FT_GlyphSlot slot );
0063
0064
0065 #define FT_Glyph_Init_Func FT_Glyph_InitFunc
0066 #define FT_Glyph_Done_Func FT_Glyph_DoneFunc
0067 #define FT_Glyph_Transform_Func FT_Glyph_TransformFunc
0068 #define FT_Glyph_BBox_Func FT_Glyph_GetBBoxFunc
0069 #define FT_Glyph_Copy_Func FT_Glyph_CopyFunc
0070 #define FT_Glyph_Prepare_Func FT_Glyph_PrepareFunc
0071
0072
0073 struct FT_Glyph_Class_
0074 {
0075 FT_Long glyph_size;
0076 FT_Glyph_Format glyph_format;
0077
0078 FT_Glyph_InitFunc glyph_init;
0079 FT_Glyph_DoneFunc glyph_done;
0080 FT_Glyph_CopyFunc glyph_copy;
0081 FT_Glyph_TransformFunc glyph_transform;
0082 FT_Glyph_GetBBoxFunc glyph_bbox;
0083 FT_Glyph_PrepareFunc glyph_prepare;
0084 };
0085
0086
0087 typedef FT_Error
0088 (*FT_Renderer_RenderFunc)( FT_Renderer renderer,
0089 FT_GlyphSlot slot,
0090 FT_Render_Mode mode,
0091 const FT_Vector* origin );
0092
0093 typedef FT_Error
0094 (*FT_Renderer_TransformFunc)( FT_Renderer renderer,
0095 FT_GlyphSlot slot,
0096 const FT_Matrix* matrix,
0097 const FT_Vector* delta );
0098
0099
0100 typedef void
0101 (*FT_Renderer_GetCBoxFunc)( FT_Renderer renderer,
0102 FT_GlyphSlot slot,
0103 FT_BBox* cbox );
0104
0105
0106 typedef FT_Error
0107 (*FT_Renderer_SetModeFunc)( FT_Renderer renderer,
0108 FT_ULong mode_tag,
0109 FT_Pointer mode_ptr );
0110
0111
0112 #define FTRenderer_render FT_Renderer_RenderFunc
0113 #define FTRenderer_transform FT_Renderer_TransformFunc
0114 #define FTRenderer_getCBox FT_Renderer_GetCBoxFunc
0115 #define FTRenderer_setMode FT_Renderer_SetModeFunc
0116
0117
0118
0119
0120
0121
0122
0123
0124
0125
0126
0127
0128
0129
0130
0131
0132
0133
0134
0135
0136
0137
0138
0139
0140
0141
0142
0143
0144
0145
0146
0147
0148
0149
0150 typedef struct FT_Renderer_Class_
0151 {
0152 FT_Module_Class root;
0153
0154 FT_Glyph_Format glyph_format;
0155
0156 FT_Renderer_RenderFunc render_glyph;
0157 FT_Renderer_TransformFunc transform_glyph;
0158 FT_Renderer_GetCBoxFunc get_glyph_cbox;
0159 FT_Renderer_SetModeFunc set_mode;
0160
0161 const FT_Raster_Funcs* raster_class;
0162
0163 } FT_Renderer_Class;
0164
0165
0166
0167
0168
0169
0170
0171
0172
0173
0174
0175
0176
0177
0178
0179
0180
0181
0182
0183
0184
0185
0186
0187
0188
0189
0190
0191 FT_EXPORT( FT_Renderer )
0192 FT_Get_Renderer( FT_Library library,
0193 FT_Glyph_Format format );
0194
0195
0196
0197
0198
0199
0200
0201
0202
0203
0204
0205
0206
0207
0208
0209
0210
0211
0212
0213
0214
0215
0216
0217
0218
0219
0220
0221
0222
0223
0224
0225
0226
0227
0228
0229
0230 FT_EXPORT( FT_Error )
0231 FT_Set_Renderer( FT_Library library,
0232 FT_Renderer renderer,
0233 FT_UInt num_params,
0234 FT_Parameter* parameters );
0235
0236
0237
0238
0239 FT_END_HEADER
0240
0241 #endif
0242
0243
0244