[pango/line-breaker: 11/33] Introduce PangoLineWrapMode




commit a4a550e3c0c43d9cb87e923c91eecca55a5450b9
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jan 17 16:56:28 2022 -0500

    Introduce PangoLineWrapMode
    
    These flags are like PangoWrapMode, but
    we can add a PANGO_WRAP_NO_PARA flag that
    will be used for single-paragraph mode.

 pango/pango-types.h | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/pango/pango-types.h b/pango/pango-types.h
index 2bce6075..b01f9207 100644
--- a/pango/pango-types.h
+++ b/pango/pango-types.h
@@ -277,7 +277,7 @@ typedef enum {
 typedef enum {
   PANGO_WRAP_WORD,
   PANGO_WRAP_CHAR,
-  PANGO_WRAP_WORD_CHAR
+  PANGO_WRAP_WORD_CHAR,
 } PangoWrapMode;
 
 /**
@@ -311,6 +311,12 @@ typedef enum
   PANGO_ALIGNMENT_JUSTIFY_ALL,
 } PangoAlignmentMode;
 
+typedef enum {
+  PANGO_LINE_WRAP_WORD      = 1 << 0,
+  PANGO_LINE_WRAP_CHAR      = 1 << 1,
+  PANGO_LINE_WRAP_WORD_CHAR = PANGO_LINE_WRAP_WORD|PANGO_LINE_WRAP_CHAR,
+  PANGO_LINE_WRAP_NO_PARA   = 1 << 2,
+} PangoLineWrapMode;
 
 G_END_DECLS
 


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