[pango/line-breaker: 2/32] Add PangoAlignment




commit a149603e1ee750997d1f877ecc59078acbd03ec3
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 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.


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