pango-modules.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. /* All of this is deprecated and entirely useless for bindings.
  26. * Leave it out of the gir file.
  27. */
  28. #ifndef __GI_SCANNER__
  29. #ifndef PANGO_DISABLE_DEPRECATED
  30. typedef struct _PangoMap PangoMap;
  31. typedef struct _PangoMapEntry PangoMapEntry;
  32. typedef struct _PangoIncludedModule PangoIncludedModule;
  33. /**
  34. * PangoIncludedModule:
  35. * @list: a function that lists the engines defined in this module.
  36. * @init: a function to initialize the module.
  37. * @exit: a function to finalize the module.
  38. * @create: a function to create an engine, given the engine name.
  39. *
  40. * The `PangoIncludedModule` structure for a statically linked module
  41. * contains the functions that would otherwise be loaded from a dynamically
  42. * loaded module.
  43. *
  44. * Deprecated: 1.38
  45. */
  46. struct _PangoIncludedModule
  47. {
  48. void (*list) (PangoEngineInfo **engines,
  49. int *n_engines);
  50. void (*init) (GTypeModule *module);
  51. void (*exit) (void);
  52. PangoEngine *(*create) (const char *id);
  53. };
  54. PANGO_DEPRECATED_IN_1_38
  55. PangoMap * pango_find_map (PangoLanguage *language,
  56. guint engine_type_id,
  57. guint render_type_id);
  58. PANGO_DEPRECATED_IN_1_38
  59. PangoEngine * pango_map_get_engine (PangoMap *map,
  60. PangoScript script);
  61. PANGO_DEPRECATED_IN_1_38
  62. void pango_map_get_engines (PangoMap *map,
  63. PangoScript script,
  64. GSList **exact_engines,
  65. GSList **fallback_engines);
  66. PANGO_DEPRECATED_IN_1_38
  67. void pango_module_register (PangoIncludedModule *module);
  68. #endif /* PANGO_DISABLE_DEPRECATED */
  69. #endif /* __GI_SCANNER__ */
  70. G_END_DECLS
  71. #endif /* __PANGO_MODULES_H__ */