ReactOS  0.4.15-dev-509-g96a357b
ftrender.h File Reference
#include <ft2build.h>
Include dependency graph for ftrender.h:

Go to the source code of this file.

Classes

struct  FT_Glyph_Class_
 
struct  FT_Renderer_Class_
 

Macros

#define FT_Glyph_Init_Func   FT_Glyph_InitFunc
 
#define FT_Glyph_Done_Func   FT_Glyph_DoneFunc
 
#define FT_Glyph_Transform_Func   FT_Glyph_TransformFunc
 
#define FT_Glyph_BBox_Func   FT_Glyph_GetBBoxFunc
 
#define FT_Glyph_Copy_Func   FT_Glyph_CopyFunc
 
#define FT_Glyph_Prepare_Func   FT_Glyph_PrepareFunc
 
#define FTRenderer_render   FT_Renderer_RenderFunc
 
#define FTRenderer_transform   FT_Renderer_TransformFunc
 
#define FTRenderer_getCBox   FT_Renderer_GetCBoxFunc
 
#define FTRenderer_setMode   FT_Renderer_SetModeFunc
 

Typedefs

typedef void(* FT_Glyph_DoneFunc) (FT_Glyph glyph)
 
typedef void(* FT_Glyph_TransformFunc) (FT_Glyph glyph, const FT_Matrix *matrix, const FT_Vector *delta)
 
typedef void(* FT_Glyph_GetBBoxFunc) (FT_Glyph glyph, FT_BBox *abbox)
 
typedef FT_Error(* FT_Glyph_CopyFunc) (FT_Glyph source, FT_Glyph target)
 
typedef FT_Error(* FT_Glyph_PrepareFunc) (FT_Glyph glyph, FT_GlyphSlot slot)
 
typedef FT_Error(* FT_Renderer_RenderFunc) (FT_Renderer renderer, FT_GlyphSlot slot, FT_Render_Mode mode, const FT_Vector *origin)
 
typedef FT_Error(* FT_Renderer_TransformFunc) (FT_Renderer renderer, FT_GlyphSlot slot, const FT_Matrix *matrix, const FT_Vector *delta)
 
typedef void(* FT_Renderer_GetCBoxFunc) (FT_Renderer renderer, FT_GlyphSlot slot, FT_BBox *cbox)
 
typedef FT_Error(* FT_Renderer_SetModeFunc) (FT_Renderer renderer, FT_ULong mode_tag, FT_Pointer mode_ptr)
 
typedef struct FT_Renderer_Class_ FT_Renderer_Class
 

Functions

 FT_Get_Renderer (FT_Library library, FT_Glyph_Format format)
 
 FT_Set_Renderer (FT_Library library, FT_Renderer renderer, FT_UInt num_params, FT_Parameter *parameters)
 

Variables

FT_BEGIN_HEADER typedef FT_Error(* FT_Glyph_InitFunc )(FT_Glyph glyph, FT_GlyphSlot slot)
 

Macro Definition Documentation

◆ FT_Glyph_BBox_Func

#define FT_Glyph_BBox_Func   FT_Glyph_GetBBoxFunc

Definition at line 69 of file ftrender.h.

◆ FT_Glyph_Copy_Func

#define FT_Glyph_Copy_Func   FT_Glyph_CopyFunc

Definition at line 70 of file ftrender.h.

◆ FT_Glyph_Done_Func

#define FT_Glyph_Done_Func   FT_Glyph_DoneFunc

Definition at line 67 of file ftrender.h.

◆ FT_Glyph_Init_Func

#define FT_Glyph_Init_Func   FT_Glyph_InitFunc

Definition at line 66 of file ftrender.h.

◆ FT_Glyph_Prepare_Func

#define FT_Glyph_Prepare_Func   FT_Glyph_PrepareFunc

Definition at line 71 of file ftrender.h.

◆ FT_Glyph_Transform_Func

#define FT_Glyph_Transform_Func   FT_Glyph_TransformFunc

Definition at line 68 of file ftrender.h.

◆ FTRenderer_getCBox

#define FTRenderer_getCBox   FT_Renderer_GetCBoxFunc

Definition at line 115 of file ftrender.h.

◆ FTRenderer_render

#define FTRenderer_render   FT_Renderer_RenderFunc

Definition at line 113 of file ftrender.h.

◆ FTRenderer_setMode

#define FTRenderer_setMode   FT_Renderer_SetModeFunc

Definition at line 116 of file ftrender.h.

◆ FTRenderer_transform

#define FTRenderer_transform   FT_Renderer_TransformFunc

Definition at line 114 of file ftrender.h.

Typedef Documentation

◆ FT_Glyph_CopyFunc

typedef FT_Error(* FT_Glyph_CopyFunc) (FT_Glyph source, FT_Glyph target)

Definition at line 58 of file ftrender.h.

◆ FT_Glyph_DoneFunc

typedef void(* FT_Glyph_DoneFunc) (FT_Glyph glyph)

Definition at line 46 of file ftrender.h.

◆ FT_Glyph_GetBBoxFunc

typedef void(* FT_Glyph_GetBBoxFunc) (FT_Glyph glyph, FT_BBox *abbox)

Definition at line 54 of file ftrender.h.

◆ FT_Glyph_PrepareFunc

typedef FT_Error(* FT_Glyph_PrepareFunc) (FT_Glyph glyph, FT_GlyphSlot slot)

Definition at line 62 of file ftrender.h.

◆ FT_Glyph_TransformFunc

typedef void(* FT_Glyph_TransformFunc) (FT_Glyph glyph, const FT_Matrix *matrix, const FT_Vector *delta)

Definition at line 49 of file ftrender.h.

◆ FT_Renderer_Class

◆ FT_Renderer_GetCBoxFunc

typedef void(* FT_Renderer_GetCBoxFunc) (FT_Renderer renderer, FT_GlyphSlot slot, FT_BBox *cbox)

Definition at line 102 of file ftrender.h.

◆ FT_Renderer_RenderFunc

typedef FT_Error(* FT_Renderer_RenderFunc) (FT_Renderer renderer, FT_GlyphSlot slot, FT_Render_Mode mode, const FT_Vector *origin)

Definition at line 89 of file ftrender.h.

◆ FT_Renderer_SetModeFunc

typedef FT_Error(* FT_Renderer_SetModeFunc) (FT_Renderer renderer, FT_ULong mode_tag, FT_Pointer mode_ptr)

Definition at line 108 of file ftrender.h.

◆ FT_Renderer_TransformFunc

typedef FT_Error(* FT_Renderer_TransformFunc) (FT_Renderer renderer, FT_GlyphSlot slot, const FT_Matrix *matrix, const FT_Vector *delta)

Definition at line 95 of file ftrender.h.

Function Documentation

◆ FT_Get_Renderer()

FT_Get_Renderer ( FT_Library  library,
FT_Glyph_Format  format 
)

Definition at line 4416 of file ftobjs.c.

4418  {
4419  /* test for valid `library' delayed to `FT_Lookup_Renderer' */
4420 
4421  return FT_Lookup_Renderer( library, format, 0 );
4422  }
FT_Lookup_Renderer(FT_Library library, FT_Glyph_Format format, FT_ListNode *node)
Definition: ftobjs.c:4264
FT_Library library
Definition: cffdrivr.c:654
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl.h:1546

◆ FT_Set_Renderer()

FT_Set_Renderer ( FT_Library  library,
FT_Renderer  renderer,
FT_UInt  num_params,
FT_Parameter parameters 
)

Definition at line 4428 of file ftobjs.c.

4432  {
4433  FT_ListNode node;
4435 
4436  FT_Renderer_SetModeFunc set_mode;
4437 
4438 
4439  if ( !library )
4440  {
4441  error = FT_THROW( Invalid_Library_Handle );
4442  goto Exit;
4443  }
4444 
4445  if ( !renderer )
4446  {
4447  error = FT_THROW( Invalid_Argument );
4448  goto Exit;
4449  }
4450 
4451  if ( num_params > 0 && !parameters )
4452  {
4453  error = FT_THROW( Invalid_Argument );
4454  goto Exit;
4455  }
4456 
4457  node = FT_List_Find( &library->renderers, renderer );
4458  if ( !node )
4459  {
4460  error = FT_THROW( Invalid_Argument );
4461  goto Exit;
4462  }
4463 
4465 
4466  if ( renderer->glyph_format == FT_GLYPH_FORMAT_OUTLINE )
4467  library->cur_renderer = renderer;
4468 
4469  set_mode = renderer->clazz->set_mode;
4470 
4471  for ( ; num_params > 0; num_params-- )
4472  {
4473  error = set_mode( renderer, parameters->tag, parameters->data );
4474  if ( error )
4475  break;
4476  parameters++;
4477  }
4478 
4479  Exit:
4480  return error;
4481  }
int FT_Error
Definition: fttypes.h:300
#define error(str)
Definition: mkdosfs.c:1605
FT_Glyph_Format glyph_format
Definition: ftobjs.h:775
FT_Library library
Definition: cffdrivr.c:654
return FT_Err_Ok
Definition: ftbbox.c:511
FT_Renderer cur_renderer
Definition: ftobjs.h:928
struct node node
FT_Renderer_Class * clazz
Definition: ftobjs.h:774
#define FT_THROW(e)
Definition: ftdebug.h:213
FT_List_Up(FT_List list, FT_ListNode node)
Definition: ftutil.c:348
FT_Renderer_SetModeFunc set_mode
Definition: ftrender.h:154
FT_BEGIN_HEADER FT_List_Find(FT_List list, void *data)
Definition: ftutil.c:244
smooth FT_Module_Constructor FT_Module_Destructor FT_Module_Requester FT_GLYPH_FORMAT_OUTLINE
Definition: ftsmooth.c:416
static void Exit(void)
Definition: sock.c:1331
FT_Pointer data
Definition: freetype.h:2071
FT_Error(* FT_Renderer_SetModeFunc)(FT_Renderer renderer, FT_ULong mode_tag, FT_Pointer mode_ptr)
Definition: ftrender.h:108
FT_ULong tag
Definition: freetype.h:2070
FT_ListRec renderers
Definition: ftobjs.h:927
Definition: dlist.c:348

Variable Documentation

◆ FT_Glyph_InitFunc

FT_BEGIN_HEADER typedef FT_Error(* FT_Glyph_InitFunc) (FT_Glyph glyph, FT_GlyphSlot slot)

Definition at line 41 of file ftrender.h.