summaryrefslogtreecommitdiff
path: root/pango/pango-layout.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-05-14 08:31:02 -0400
committerMatthias Clasen <mclasen@redhat.com>2011-05-16 09:28:57 -0400
commit4587e5d2231b717dd116253a49badc1ba3aa5db5 (patch)
tree0aba3f65c1f71cd6d2697d6d27a5fa20f916ef86 /pango/pango-layout.h
parentc43c4884bf4b405f58a0c966384ee751f82ee69c (diff)
downloadpango-4587e5d2231b717dd116253a49badc1ba3aa5db5.tar.gz
Add a readonly version of pango_layout_get_log_attrs()
Otherwise, we are forced to either make many unnecessary copies or pass the log attrs around alongside the layout in APIs operating on the attrs. https://bugzilla.gnome.org/show_bug.cgi?id=650170
Diffstat (limited to 'pango/pango-layout.h')
-rw-r--r--pango/pango-layout.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/pango/pango-layout.h b/pango/pango-layout.h
index 3b769ffa..52dc36a8 100644
--- a/pango/pango-layout.h
+++ b/pango/pango-layout.h
@@ -166,6 +166,9 @@ void pango_layout_get_log_attrs (PangoLayout *layout,
PangoLogAttr **attrs,
gint *n_attrs);
+PangoLogAttr *pango_layout_get_log_attrs_readonly (PangoLayout *layout,
+ gint *n_attrs);
+
void pango_layout_index_to_pos (PangoLayout *layout,
int index_,
PangoRectangle *pos);