diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2006-12-07 06:30:17 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2006-12-07 06:30:17 +0000 |
commit | 819c2195c4615ae155160cc63b8fa3f77ee6ae53 (patch) | |
tree | b35100c65e376e1c75f8d7ad537b732f5b4619e0 /pango/pango-layout-private.h | |
parent | d6956a1ad956ad4f5322059fff7baac70ea3c039 (diff) | |
download | pango-819c2195c4615ae155160cc63b8fa3f77ee6ae53.tar.gz |
Cache layout ink and logical extents.
2006-12-07 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-layout-private.h:
* pango/pango-layout.c (pango_layout_get_extents_internal),
(pango_layout_get_extents), (pango_layout_clear_lines),
(pango_layout_line_leaked), (pango_layout_line_get_extents),
(pango_layout_iter_copy), (pango_layout_get_iter),
(pango_layout_iter_get_layout_extents):
Cache layout ink and logical extents.
Diffstat (limited to 'pango/pango-layout-private.h')
-rw-r--r-- | pango/pango-layout-private.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pango/pango-layout-private.h b/pango/pango-layout-private.h index bcb5d7c6..75913940 100644 --- a/pango/pango-layout-private.h +++ b/pango/pango-layout-private.h @@ -52,7 +52,14 @@ struct _PangoLayout guint wrap : 2; /* PangoWrapMode */ guint ellipsize : 2; /* PangoEllipsizeMode */ - + + /* some caching */ + guint logical_rect_cached : 1; + guint ink_rect_cached : 1; + PangoRectangle logical_rect; + PangoRectangle ink_rect; + + gint n_chars; /* Total number of characters in layout */ PangoLogAttr *log_attrs; /* Logical attributes for layout's text */ |