2 * pango-item.h: Structure for storing run information
4 * Copyright (C) 2000 Red Hat Software
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.
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.
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.
22 #ifndef __PANGO_ITEM_H__
23 #define __PANGO_ITEM_H__
25 #include <pango/pango-types.h>
29 typedef struct _PangoAnalysis PangoAnalysis;
30 typedef struct _PangoItem PangoItem;
32 /* TODO: if more flags are needed, turn this into a real PangoAnalysisFlags enum */
33 #define PANGO_ANALYSIS_FLAG_CENTERED_BASELINE (1 << 0)
37 PangoEngineShape *shape_engine;
38 PangoEngineLang *lang_engine;
42 guint8 gravity; /* PangoGravity */
45 guint8 script; /* PangoScript */
46 PangoLanguage *language;
56 PangoAnalysis analysis;
59 #define PANGO_TYPE_ITEM (pango_item_get_type ())
61 GType pango_item_get_type (void) G_GNUC_CONST;
63 PangoItem *pango_item_new (void);
64 PangoItem *pango_item_copy (PangoItem *item);
65 void pango_item_free (PangoItem *item);
66 PangoItem *pango_item_split (PangoItem *orig,
72 #endif /* __PANGO_ITEM_H__ */