diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-07-13 23:04:02 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-07-19 10:38:49 -0700 |
commit | 513e45cf8cf1cb15cc32f95cf62617fc75baa99c (patch) | |
tree | 47d3eb2da4b6babf684f73a4c18734c3df335afb /pango/pango-attributes.h | |
parent | 8df747b7d161d08dca7dc08de032bb0d30a1e9b9 (diff) | |
download | pango-513e45cf8cf1cb15cc32f95cf62617fc75baa99c.tar.gz |
Add a function to update attribute lists
Add a function that can update positions of
attributes as the underlying text is changing.
This is meant to be used to update an attribute
list as text transformations are applied, like
capitalization.
Diffstat (limited to 'pango/pango-attributes.h')
-rw-r--r-- | pango/pango-attributes.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pango/pango-attributes.h b/pango/pango-attributes.h index 1f43c27f..6f021c06 100644 --- a/pango/pango-attributes.h +++ b/pango/pango-attributes.h @@ -547,6 +547,11 @@ void pango_attr_list_splice (PangoAttrList *list, PangoAttrList *other, gint pos, gint len); +PANGO_AVAILABLE_IN_1_44 +void pango_attr_list_update (PangoAttrList *list, + int pos, + int remove, + int add); PANGO_AVAILABLE_IN_1_2 PangoAttrList *pango_attr_list_filter (PangoAttrList *list, |