/binding/pango/glyphitem.d

http://github.com/wilkie/djehuty · D · 62 lines · 24 code · 9 blank · 29 comment · 0 complexity · 8ae584f6f69fd19e7b7477ce192e0be1 MD5 · raw file

  1. /*
  2. * glyphitem.d
  3. *
  4. * This file holds bindings to pango's pango-glyphitem.h. The original
  5. * copyright is displayed below, but does not pertain to this file.
  6. *
  7. * Author: Dave Wilkinson
  8. *
  9. */
  10. module binding.pango.glyphitem;
  11. /* Pango
  12. * pango-glyph-item.h: Pair of PangoItem and a glyph string
  13. *
  14. * Copyright (C) 2002 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.types;
  32. import binding.pango.attributes;
  33. import binding.pango.pbreak;
  34. import binding.pango.item;
  35. import binding.pango.glyph;
  36. alias _PangoGlyphItem PangoGlyphItem;
  37. extern(C):
  38. struct _PangoGlyphItem
  39. {
  40. PangoItem *item;
  41. PangoGlyphString *glyphs;
  42. }
  43. PangoGlyphItem *pango_glyph_item_split (PangoGlyphItem *orig,
  44. char *text,
  45. int split_index);
  46. void pango_glyph_item_free (PangoGlyphItem *glyph_item);
  47. GSList * pango_glyph_item_apply_attrs (PangoGlyphItem *glyph_item,
  48. char *text,
  49. PangoAttrList *list);
  50. void pango_glyph_item_letter_space (PangoGlyphItem *glyph_item,
  51. char *text,
  52. PangoLogAttr *log_attrs,
  53. int letter_spacing);