/binding/pango/fontmap.d

http://github.com/wilkie/djehuty · D · 110 lines · 44 code · 28 blank · 38 comment · 0 complexity · 7962c82ec9fdcb8f7bd68e93e460837a MD5 · raw file

  1. /*
  2. * fontmap.d
  3. *
  4. * This file holds bindings to pango's pango-fontmap.h. The original copyright
  5. * is displayed below, but does not pertain to this file.
  6. *
  7. * Author: Dave Wilkinson
  8. *
  9. */
  10. module binding.pango.fontmap;
  11. /* Pango
  12. * pango-font.h: Font handling
  13. *
  14. * Copyright (C) 2000 Red Hat Software
  15. *
  16. * This library is free software; you can redistribute it and/or
  17. * modify it under the terms of the GNU Library General Public
  18. * License as published by the Free Software Foundation; either
  19. * version 2 of the License, or (at your option) any later version.
  20. *
  21. * This library is distributed in the hope that it will be useful,
  22. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  24. * Library General Public License for more details.
  25. *
  26. * You should have received a copy of the GNU Library General Public
  27. * License along with this library; if not, write to the
  28. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  29. * Boston, MA 02111-1307, USA.
  30. */
  31. import binding.pango.context;
  32. import binding.pango.types;
  33. import binding.pango.font;
  34. import binding.pango.fontset;
  35. import binding.pango.font;
  36. import binding.pango.fontmap;
  37. extern(C):
  38. //#define PANGO_TYPE_FONT_MAP (pango_font_map_get_type ())
  39. //#define PANGO_FONT_MAP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FONT_MAP, PangoFontMap))
  40. //#define PANGO_IS_FONT_MAP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FONT_MAP))
  41. GType pango_font_map_get_type () ;
  42. PangoFont * pango_font_map_load_font (PangoFontMap *fontmap,
  43. PangoContext *context,
  44. PangoFontDescription *desc);
  45. PangoFontset *pango_font_map_load_fontset (PangoFontMap *fontmap,
  46. PangoContext *context,
  47. PangoFontDescription *desc,
  48. PangoLanguage *language);
  49. void pango_font_map_list_families (PangoFontMap *fontmap,
  50. PangoFontFamily ***families,
  51. int *n_families);
  52. //#define PANGO_FONT_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_FONT_MAP, PangoFontMapClass))
  53. //#define PANGO_IS_FONT_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_FONT_MAP))
  54. //#define PANGO_FONT_MAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_FONT_MAP, PangoFontMapClass))
  55. alias _PangoFontMapClass PangoFontMapClass;
  56. struct _PangoFontMap
  57. {
  58. GObject parent_instance;
  59. }
  60. struct _PangoFontMapClass
  61. {
  62. GObjectClass parent_class;
  63. /*< public >*/
  64. PangoFont * (*load_font) (PangoFontMap *fontmap,
  65. PangoContext *context,
  66. PangoFontDescription *desc);
  67. void (*list_families) (PangoFontMap *fontmap,
  68. PangoFontFamily ***families,
  69. int *n_families);
  70. PangoFontset *(*load_fontset) (PangoFontMap *fontmap,
  71. PangoContext *context,
  72. PangoFontDescription *desc,
  73. PangoLanguage *language);
  74. char *shape_engine_type;
  75. /*< private >*/
  76. /* Padding for future expansion */
  77. void (*_pango_reserved1) ();
  78. void (*_pango_reserved2) ();
  79. void (*_pango_reserved3) ();
  80. void (*_pango_reserved4) ();
  81. }
  82. char *pango_font_map_get_shape_engine_type (PangoFontMap *fontmap);