[pango/pango2: 10/135] Add PangoAlignment




commit 3e17ad5197e0bd26dafeaefeb4f2da70a6e6d0e3
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jan 14 21:42:05 2022 -0500

    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 a1d9ef2c..ef966340 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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]