You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

61 lines
1.9 KiB

  1. /* Pango
  2. * pango-modules.h:
  3. *
  4. * Copyright (C) 1999 Red Hat Software
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Library General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2 of the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Library General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Library General Public
  17. * License along with this library; if not, write to the
  18. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  19. * Boston, MA 02111-1307, USA.
  20. */
  21. #ifndef __PANGO_MODULES_H__
  22. #define __PANGO_MODULES_H__
  23. #include <pango/pango-engine.h>
  24. G_BEGIN_DECLS
  25. #ifdef PANGO_ENABLE_BACKEND
  26. typedef struct _PangoMap PangoMap;
  27. typedef struct _PangoMapEntry PangoMapEntry;
  28. typedef struct _PangoIncludedModule PangoIncludedModule;
  29. struct _PangoIncludedModule
  30. {
  31. void (*list) (PangoEngineInfo **engines,
  32. int *n_engines);
  33. void (*init) (GTypeModule *module);
  34. void (*exit) (void);
  35. PangoEngine *(*create) (const char *id);
  36. };
  37. PangoMap * pango_find_map (PangoLanguage *language,
  38. guint engine_type_id,
  39. guint render_type_id);
  40. PangoEngine * pango_map_get_engine (PangoMap *map,
  41. PangoScript script);
  42. void pango_map_get_engines (PangoMap *map,
  43. PangoScript script,
  44. GSList **exact_engines,
  45. GSList **fallback_engines);
  46. void pango_module_register (PangoIncludedModule *module);
  47. #endif /* PANGO_ENABLE_BACKEND */
  48. G_END_DECLS
  49. #endif /* __PANGO_MODULES_H__ */