PageRenderTime 26ms CodeModel.GetById 14ms app.highlight 10ms RepoModel.GetById 1ms app.codeStats 0ms

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