pango-fontset-simple.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /* Pango
  2. * pango-fontset-simple.h: Font set handling
  3. *
  4. * Copyright (C) 2001 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_FONTSET_SIMPLE_H__
  22. #define __PANGO_FONTSET_SIMPLE_H__
  23. #include <pango/pango-coverage.h>
  24. #include <pango/pango-types.h>
  25. #include <pango/pango-fontset.h>
  26. #include <glib-object.h>
  27. G_BEGIN_DECLS
  28. /**
  29. * PangoFontsetSimple:
  30. *
  31. * `PangoFontsetSimple` is a implementation of the abstract
  32. * `PangoFontset` base class as an array of fonts.
  33. *
  34. * When creating a `PangoFontsetSimple`, you have to provide
  35. * the array of fonts that make up the fontset.
  36. */
  37. #define PANGO_TYPE_FONTSET_SIMPLE (pango_fontset_simple_get_type ())
  38. #define PANGO_FONTSET_SIMPLE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FONTSET_SIMPLE, PangoFontsetSimple))
  39. #define PANGO_IS_FONTSET_SIMPLE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FONTSET_SIMPLE))
  40. typedef struct _PangoFontsetSimple PangoFontsetSimple;
  41. typedef struct _PangoFontsetSimpleClass PangoFontsetSimpleClass;
  42. PANGO_AVAILABLE_IN_ALL
  43. GType pango_fontset_simple_get_type (void) G_GNUC_CONST;
  44. PANGO_AVAILABLE_IN_ALL
  45. PangoFontsetSimple * pango_fontset_simple_new (PangoLanguage *language);
  46. PANGO_AVAILABLE_IN_ALL
  47. void pango_fontset_simple_append (PangoFontsetSimple *fontset,
  48. PangoFont *font);
  49. PANGO_AVAILABLE_IN_ALL
  50. int pango_fontset_simple_size (PangoFontsetSimple *fontset);
  51. G_END_DECLS
  52. #endif /* __PANGO_FONTSET_SIMPLE_H__ */