summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-01-14 21:42:05 -0500
committerMatthias Clasen <mclasen@redhat.com>2022-01-24 07:46:42 -0500
commit7362e8a85cd2543abda221fbfb5282342924d3de (patch)
tree7d43792c6c56712ac2e992baef1165885bbdc965
parent9104931d9ca842954fad96c6ff30b55e4b44ed55 (diff)
downloadpango-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.h9
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.