summaryrefslogtreecommitdiff
path: root/pango/pango-layout-private.h
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-12-07 06:30:17 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-12-07 06:30:17 +0000
commit819c2195c4615ae155160cc63b8fa3f77ee6ae53 (patch)
treeb35100c65e376e1c75f8d7ad537b732f5b4619e0 /pango/pango-layout-private.h
parentd6956a1ad956ad4f5322059fff7baac70ea3c039 (diff)
downloadpango-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.h9
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 */