summaryrefslogtreecommitdiff
path: root/pango/pango-context.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2012-12-05 13:56:06 +0100
committerAlexander Larsson <alexl@redhat.com>2012-12-06 16:36:19 +0100
commit3070717bc6e4c2a7bf83508ae5bf7a03eb77bf4b (patch)
tree271e308ecba228326aa3126f0719936f8d73904b /pango/pango-context.h
parent3f3a095a1809375ef600dc3a947b3ff2df08f22c (diff)
downloadpango-3070717bc6e4c2a7bf83508ae5bf7a03eb77bf4b.tar.gz
Track changes in PangoContext via a serial
Whenever a PangoContext or its fontmap changes we bump the contexts serial, you can get it via pango_context_get_serial() to see find out if the context changed since the last time and you need to relayout. You can also force the context to be "changed" by calling pango_context_changed(). https://bugzilla.gnome.org/show_bug.cgi?id=340066
Diffstat (limited to 'pango/pango-context.h')
-rw-r--r--pango/pango-context.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/pango/pango-context.h b/pango/pango-context.h
index d85928a5..65b1d245 100644
--- a/pango/pango-context.h
+++ b/pango/pango-context.h
@@ -50,10 +50,11 @@ typedef struct _PangoContextClass PangoContextClass;
GType pango_context_get_type (void) G_GNUC_CONST;
PangoContext *pango_context_new (void);
+void pango_context_changed (PangoContext *context);
void pango_context_set_font_map (PangoContext *context,
PangoFontMap *font_map);
PangoFontMap *pango_context_get_font_map (PangoContext *context);
-
+guint pango_context_get_serial (PangoContext *context);
void pango_context_list_families (PangoContext *context,
PangoFontFamily ***families,
int *n_families);