diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-08-10 09:40:34 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-08-10 09:40:34 -0400 |
commit | e0584a4b590bad645c2f9666dd4d19379e887ff6 (patch) | |
tree | 3ca5317041d561299c94fc90b75fb84881eafb71 /pango/pango-layout.h | |
parent | 770fd4d4d23cd901ace30472df3431cd564a1bf3 (diff) | |
download | pango-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.h | 7 |
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); |