1/* Pango
2 * pango-attributes-private.h: Internal structures of PangoLayout
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
18 */
19
20#ifndef __PANGO_ATTRIBUTES_PRIVATE_H__
21#define __PANGO_ATTRIBUTES_PRIVATE_H__
22
23struct _PangoAttrIterator
24{
25 GPtrArray *attrs; /* From the list */
26 guint n_attrs; /* Copied from the list */
27
28 GPtrArray *attribute_stack;
29
30 guint attr_index;
31 guint start_index;
32 guint end_index;
33};
34
35struct _PangoAttrList
36{
37 guint ref_count;
38 GPtrArray *attributes;
39};
40
41void _pango_attr_list_init (PangoAttrList *list);
42void _pango_attr_list_destroy (PangoAttrList *list);
43gboolean _pango_attr_list_has_attributes (const PangoAttrList *list);
44
45void _pango_attr_list_get_iterator (PangoAttrList *list,
46 PangoAttrIterator *iterator);
47
48void _pango_attr_iterator_destroy (PangoAttrIterator *iterator);
49gboolean pango_attr_iterator_advance (PangoAttrIterator *iterator,
50 int index);
51
52
53#endif
54

source code of gtk/subprojects/pango/pango/pango-attributes-private.h