[pango/line-breaker: 15/41] Add PangoAlignment




commit 790d03e7d4fb3dfafa7c89c69721e15cb26bcb0b
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 | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/pango/pango-types.h b/pango/pango-types.h
index a359c91a..2bce6075 100644
--- a/pango/pango-types.h
+++ b/pango/pango-types.h
@@ -302,6 +302,16 @@ typedef enum {
 } PangoEllipsizeMode;
 
 
+typedef enum
+{
+  PANGO_ALIGNMENT_LEFT,
+  PANGO_ALIGNMENT_CENTER,
+  PANGO_ALIGNMENT_RIGHT,
+  PANGO_ALIGNMENT_JUSTIFY,
+  PANGO_ALIGNMENT_JUSTIFY_ALL,
+} PangoAlignmentMode;
+
+
 G_END_DECLS
 
 #endif /* __PANGO_TYPES_H__ */


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