pango-modules.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. /**
  30. * PangoIncludedModule:
  31. * @list: a function that lists the engines defined in this module.
  32. * @init: a function to initialize the module.
  33. * @exit: a function to finalize the module.
  34. * @create: a function to create an engine, given the engine name.
  35. *
  36. * The #PangoIncludedModule structure for a statically linked module
  37. * contains the functions that would otherwise be loaded from a dynamically
  38. * loaded module.
  39. *
  40. * Deprecated: 1.38
  41. */
  42. struct _PangoIncludedModule
  43. {
  44. void (*list) (PangoEngineInfo **engines,
  45. int *n_engines);
  46. void (*init) (GTypeModule *module);
  47. void (*exit) (void);
  48. PangoEngine *(*create) (const char *id);
  49. };
  50. G_DEPRECATED
  51. PangoMap * pango_find_map (PangoLanguage *language,
  52. guint engine_type_id,
  53. guint render_type_id);
  54. G_DEPRECATED
  55. PangoEngine * pango_map_get_engine (PangoMap *map,
  56. PangoScript script);
  57. G_DEPRECATED
  58. void pango_map_get_engines (PangoMap *map,
  59. PangoScript script,
  60. GSList **exact_engines,
  61. GSList **fallback_engines);
  62. G_DEPRECATED
  63. void pango_module_register (PangoIncludedModule *module);
  64. #endif /* PANGO_ENABLE_BACKEND */
  65. G_END_DECLS
  66. #endif /* __PANGO_MODULES_H__ */