diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-01-14 21:42:05 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-01-24 07:46:42 -0500 |
commit | 7362e8a85cd2543abda221fbfb5282342924d3de (patch) | |
tree | 7d43792c6c56712ac2e992baef1165885bbdc965 | |
parent | 9104931d9ca842954fad96c6ff30b55e4b44ed55 (diff) | |
download | pango-7362e8a85cd2543abda221fbfb5282342924d3de.tar.gz |
Add PangoAlignment
Tnis is an enum that combines alignment and justification.
This makes sense, is commonly done in other systems, and
lets us pass a single argument instead of 3 (align, justify
and justify-last).
-rw-r--r-- | pango/pango-types.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pango/pango-types.h b/pango/pango-types.h index a359c91a..3e062690 100644 --- a/pango/pango-types.h +++ b/pango/pango-types.h @@ -259,6 +259,15 @@ typedef enum { PANGO_ALIGN_RIGHT } PangoAlignment; +typedef enum +{ + PANGO_ALIGNMENT_LEFT, + PANGO_ALIGNMENT_CENTER, + PANGO_ALIGNMENT_RIGHT, + PANGO_ALIGNMENT_JUSTIFY, + PANGO_ALIGNMENT_JUSTIFY_ALL, +} PangoAlignmentMode; + /** * PangoWrapMode: * @PANGO_WRAP_WORD: wrap lines at word boundaries. |