summaryrefslogtreecommitdiff
path: root/pango/pango-layout-private.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2012-12-05 14:04:20 +0100
committerAlexander Larsson <alexl@redhat.com>2012-12-06 16:36:19 +0100
commitd169449e7179ef0028fe8932ee4306bacb099fd2 (patch)
treec4715f0d3fab60877197591b52487284b1a5764e /pango/pango-layout-private.h
parent3070717bc6e4c2a7bf83508ae5bf7a03eb77bf4b (diff)
downloadpango-d169449e7179ef0028fe8932ee4306bacb099fd2.tar.gz
Track changes in layout and dependencies via serials
We track changes in the PangoContext and automatically call pango_layout_context_changed() when needed, plus we track changes in the layout and let apps know via pango_layout_get_serial when the layout changed and needs to be redrawn. https://bugzilla.gnome.org/show_bug.cgi?id=340066
Diffstat (limited to 'pango/pango-layout-private.h')
-rw-r--r--pango/pango-layout-private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/pango/pango-layout-private.h b/pango/pango-layout-private.h
index dc4f3d4c..d0bf93eb 100644
--- a/pango/pango-layout-private.h
+++ b/pango/pango-layout-private.h
@@ -46,6 +46,9 @@ struct _PangoLayout
/* Value fields. These will be memcpy'd in _copy() */
int copy_begin;
+ guint serial;
+ guint context_serial;
+
int length; /* length of text in bytes */
int n_chars; /* number of characters in layout */
int width; /* wrap/ellipsize width, in device units, or -1 if not set */