/src/freetype/src/base/basepic.h

https://bitbucket.org/cabalistic/ogredeps/ · C++ Header · 77 lines · 39 code · 19 blank · 19 comment · 0 complexity · ad0d9c4bc789cab30c7ae05585180180 MD5 · raw file

  1. /***************************************************************************/
  2. /* */
  3. /* basepic.h */
  4. /* */
  5. /* The FreeType position independent code services for base. */
  6. /* */
  7. /* Copyright 2009 by */
  8. /* Oran Agra and Mickey Gabel. */
  9. /* */
  10. /* This file is part of the FreeType project, and may only be used, */
  11. /* modified, and distributed under the terms of the FreeType project */
  12. /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
  13. /* this file you indicate that you have read the license and */
  14. /* understand and accept it fully. */
  15. /* */
  16. /***************************************************************************/
  17. #ifndef __BASEPIC_H__
  18. #define __BASEPIC_H__
  19. FT_BEGIN_HEADER
  20. #include FT_INTERNAL_PIC_H
  21. #ifndef FT_CONFIG_OPTION_PIC
  22. #define FT_OUTLINE_GLYPH_CLASS_GET &ft_outline_glyph_class
  23. #define FT_BITMAP_GLYPH_CLASS_GET &ft_bitmap_glyph_class
  24. #define FT_DEFAULT_MODULES_GET ft_default_modules
  25. #ifdef FT_CONFIG_OPTION_GUESSING_EMBEDDED_RFORK
  26. #define FT_RACCESS_GUESS_TABLE_GET ft_raccess_guess_table
  27. #endif
  28. #else /* FT_CONFIG_OPTION_PIC */
  29. #include FT_GLYPH_H
  30. #ifdef FT_CONFIG_OPTION_GUESSING_EMBEDDED_RFORK
  31. #include FT_INTERNAL_RFORK_H
  32. #endif
  33. typedef struct BasePIC_
  34. {
  35. FT_Module_Class** default_module_classes;
  36. FT_Glyph_Class ft_outline_glyph_class;
  37. FT_Glyph_Class ft_bitmap_glyph_class;
  38. #ifdef FT_CONFIG_OPTION_GUESSING_EMBEDDED_RFORK
  39. ft_raccess_guess_rec ft_raccess_guess_table[FT_RACCESS_N_RULES];
  40. #endif
  41. } BasePIC;
  42. #define GET_PIC(lib) ((BasePIC*)((lib)->pic_container.base))
  43. #define FT_OUTLINE_GLYPH_CLASS_GET (&GET_PIC(library)->ft_outline_glyph_class)
  44. #define FT_BITMAP_GLYPH_CLASS_GET (&GET_PIC(library)->ft_bitmap_glyph_class)
  45. #define FT_DEFAULT_MODULES_GET (GET_PIC(library)->default_module_classes)
  46. #ifdef FT_CONFIG_OPTION_GUESSING_EMBEDDED_RFORK
  47. #define FT_RACCESS_GUESS_TABLE_GET (GET_PIC(library)->ft_raccess_guess_table)
  48. #endif
  49. /* see basepic.c for the implementation. */
  50. void
  51. ft_base_pic_free( FT_Library library );
  52. FT_Error
  53. ft_base_pic_init( FT_Library library );
  54. #endif /* FT_CONFIG_OPTION_PIC */
  55. /* */
  56. FT_END_HEADER
  57. #endif /* __BASEPIC_H__ */
  58. /* END */