summaryrefslogtreecommitdiff
path: root/pango/pango-layout.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-24 16:07:02 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-24 19:55:23 -0400
commit3f508127a873a2085aefe6e7ca18c1511147c053 (patch)
tree6fee64e3faea5f9e953611648e1fa6d9684725f7 /pango/pango-layout.h
parent4740e552b3c8ca005beea88001a82ea6bb266076 (diff)
downloadpango-3f508127a873a2085aefe6e7ca18c1511147c053.tar.gz
Add pango_layout_get_caret_pos
This is like pango_layout_get_cursor_pos, but returns a rectangle that has caret font metrics applied to it.
Diffstat (limited to 'pango/pango-layout.h')
-rw-r--r--pango/pango-layout.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/pango/pango-layout.h b/pango/pango-layout.h
index 9436dbcb..3b30a251 100644
--- a/pango/pango-layout.h
+++ b/pango/pango-layout.h
@@ -298,6 +298,13 @@ void pango_layout_get_cursor_pos (PangoLayout *layout,
int index_,
PangoRectangle *strong_pos,
PangoRectangle *weak_pos);
+
+PANGO_AVAILABLE_IN_1_50
+void pango_layout_get_caret_pos (PangoLayout *layout,
+ int index_,
+ PangoRectangle *strong_pos,
+ PangoRectangle *weak_pos);
+
PANGO_AVAILABLE_IN_ALL
void pango_layout_move_cursor_visually (PangoLayout *layout,
gboolean strong,