From 7362e8a85cd2543abda221fbfb5282342924d3de Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 14 Jan 2022 21:42:05 -0500 Subject: 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). --- pango/pango-types.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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. -- cgit v1.2.1