summaryrefslogtreecommitdiff
path: root/pango/pango-glyph.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-28 09:29:53 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-29 22:49:02 -0400
commitea2c84eb7357031af60d37cb5378a254abe37ccc (patch)
treeb6cb57e84959021280b3088ff7a26d142b022392 /pango/pango-glyph.h
parentb5d3ad90e39a58967aa75aa08acd623c440aa97b (diff)
downloadpango-ea2c84eb7357031af60d37cb5378a254abe37ccc.tar.gz
Add pango_glyph_string_index_to_x_full
This variant of pango_glyph_string_index_to_x takes log attrs so it does not have to compute them when it needs them to determine grapheme boundaries.
Diffstat (limited to 'pango/pango-glyph.h')
-rw-r--r--pango/pango-glyph.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/pango/pango-glyph.h b/pango/pango-glyph.h
index 2094fa53..cd29b77a 100644
--- a/pango/pango-glyph.h
+++ b/pango/pango-glyph.h
@@ -24,6 +24,7 @@
#include <pango/pango-types.h>
#include <pango/pango-item.h>
+#include <pango/pango-break.h>
G_BEGIN_DECLS
@@ -198,6 +199,16 @@ void pango_glyph_string_x_to_index (PangoGlyphStrin
int *index_,
int *trailing);
+PANGO_AVAILABLE_IN_1_50
+void pango_glyph_string_index_to_x_full (PangoGlyphString *glyphs,
+ const char *text,
+ int length,
+ PangoAnalysis *analysis,
+ PangoLogAttr *attrs,
+ int index_,
+ gboolean trailing,
+ int *x_pos);
+
/* Shaping */
/**