summaryrefslogtreecommitdiff
path: root/pango/pango-layout.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-10 09:40:34 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-10 09:40:34 -0400
commite0584a4b590bad645c2f9666dd4d19379e887ff6 (patch)
tree3ca5317041d561299c94fc90b75fb84881eafb71 /pango/pango-layout.h
parent770fd4d4d23cd901ace30472df3431cd564a1bf3 (diff)
downloadpango-e0584a4b590bad645c2f9666dd4d19379e887ff6.tar.gz
Add pango_justify_last_line
Add a way to justify the last line in a justified paragraph. Fixes: #74
Diffstat (limited to 'pango/pango-layout.h')
-rw-r--r--pango/pango-layout.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/pango/pango-layout.h b/pango/pango-layout.h
index ab4029db..9436dbcb 100644
--- a/pango/pango-layout.h
+++ b/pango/pango-layout.h
@@ -223,9 +223,14 @@ PANGO_AVAILABLE_IN_1_44
float pango_layout_get_line_spacing (PangoLayout *layout);
PANGO_AVAILABLE_IN_ALL
void pango_layout_set_justify (PangoLayout *layout,
- gboolean justify);
+ gboolean justify);
PANGO_AVAILABLE_IN_ALL
gboolean pango_layout_get_justify (PangoLayout *layout);
+PANGO_AVAILABLE_IN_1_50
+void pango_layout_set_justify_last_line (PangoLayout *layout,
+ gboolean justify);
+PANGO_AVAILABLE_IN_1_50
+gboolean pango_layout_get_justify_last_line (PangoLayout *layout);
PANGO_AVAILABLE_IN_1_4
void pango_layout_set_auto_dir (PangoLayout *layout,
gboolean auto_dir);