pango-markup.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* Pango
  2. * pango-markup.h: Parser for attributed text
  3. *
  4. * Copyright (C) 2000 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_MARKUP_H__
  22. #define __PANGO_MARKUP_H__
  23. #include <pango/pango-attributes.h>
  24. G_BEGIN_DECLS
  25. PANGO_AVAILABLE_IN_1_32
  26. GMarkupParseContext * pango_markup_parser_new (gunichar accel_marker);
  27. PANGO_AVAILABLE_IN_1_32
  28. gboolean pango_markup_parser_finish (GMarkupParseContext *context,
  29. PangoAttrList **attr_list,
  30. char **text,
  31. gunichar *accel_char,
  32. GError **error);
  33. PANGO_AVAILABLE_IN_ALL
  34. gboolean pango_parse_markup (const char *markup_text,
  35. int length,
  36. gunichar accel_marker,
  37. PangoAttrList **attr_list,
  38. char **text,
  39. gunichar *accel_char,
  40. GError **error);
  41. G_END_DECLS
  42. #endif /* __PANGO_MARKUP_H__ */