| 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 | |
| 22 | #ifndef __PANGO_MARKUP_H__ |
| 23 | #define __PANGO_MARKUP_H__ |
| 24 | |
| 25 | #include <pango/pango-attributes.h> |
| 26 | |
| 27 | G_BEGIN_DECLS |
| 28 | |
| 29 | |
| 30 | PANGO_AVAILABLE_IN_1_32 |
| 31 | GMarkupParseContext * pango_markup_parser_new (gunichar accel_marker); |
| 32 | |
| 33 | PANGO_AVAILABLE_IN_1_32 |
| 34 | gboolean pango_markup_parser_finish (GMarkupParseContext *context, |
| 35 | PangoAttrList **attr_list, |
| 36 | char **text, |
| 37 | gunichar *accel_char, |
| 38 | GError **error); |
| 39 | |
| 40 | PANGO_AVAILABLE_IN_ALL |
| 41 | gboolean pango_parse_markup (const char *markup_text, |
| 42 | int length, |
| 43 | gunichar accel_marker, |
| 44 | PangoAttrList **attr_list, |
| 45 | char **text, |
| 46 | gunichar *accel_char, |
| 47 | GError **error); |
| 48 | |
| 49 | |
| 50 | G_END_DECLS |
| 51 | |
| 52 | #endif /* __PANGO_MARKUP_H__ */ |
| 53 | |