/src/compiler/android-ndk/jni/freetype/src/base/basepic.h

http://ftk.googlecode.com/ · C++ Header · 62 lines · 27 code · 17 blank · 18 comment · 0 complexity · 55abf248e27e9635044fc05e3a933146 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. #else /* FT_CONFIG_OPTION_PIC */
  26. #include FT_GLYPH_H
  27. typedef struct BasePIC_
  28. {
  29. FT_Module_Class** default_module_classes;
  30. FT_Glyph_Class ft_outline_glyph_class;
  31. FT_Glyph_Class ft_bitmap_glyph_class;
  32. } BasePIC;
  33. #define GET_PIC(lib) ((BasePIC*)((lib)->pic_container.base))
  34. #define FT_OUTLINE_GLYPH_CLASS_GET (&GET_PIC(library)->ft_outline_glyph_class)
  35. #define FT_BITMAP_GLYPH_CLASS_GET (&GET_PIC(library)->ft_bitmap_glyph_class)
  36. #define FT_DEFAULT_MODULES_GET (GET_PIC(library)->default_module_classes)
  37. void
  38. ft_base_pic_free( FT_Library library );
  39. FT_Error
  40. ft_base_pic_init( FT_Library library );
  41. #endif /* FT_CONFIG_OPTION_PIC */
  42. /* */
  43. FT_END_HEADER
  44. #endif /* __BASEPIC_H__ */
  45. /* END */