diff options
author | Christian Hergert <chergert@redhat.com> | 2021-06-19 12:20:23 -0700 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2021-06-19 12:28:18 -0700 |
commit | a6101f01815123a3708926361dc6f1950e85da08 (patch) | |
tree | 0e2117eff32312a2b7bae08dbbc5dccc0f1a6944 /gtk/gtktextview.h | |
parent | 13a2db22381d102258e44e4af7d5828e7c781705 (diff) | |
download | gtk+-a6101f01815123a3708926361dc6f1950e85da08.tar.gz |
textview: give application developers access to RTL and LTR context
This allows developers to modify the pango context that is used when
rendering text within the text view.
Such access can be useful to alter how rounding occurs with API such as
pango_context_set_round_glyph_positions() and is needed by GtkSourceView
for proper placement of glyphs within the overview map.
Diffstat (limited to 'gtk/gtktextview.h')
-rw-r--r-- | gtk/gtktextview.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtktextview.h b/gtk/gtktextview.h index 2b412e6500..325077a871 100644 --- a/gtk/gtktextview.h +++ b/gtk/gtktextview.h @@ -427,6 +427,10 @@ void gtk_text_view_set_extra_menu (GtkTextView *text_vi GMenuModel *model); GDK_AVAILABLE_IN_ALL GMenuModel * gtk_text_view_get_extra_menu (GtkTextView *text_view); +GDK_AVAILABLE_IN_ALL +PangoContext *gtk_text_view_get_rtl_context (GtkTextView *text_view); +GDK_AVAILABLE_IN_ALL +PangoContext *gtk_text_view_get_ltr_context (GtkTextView *text_view); G_END_DECLS |