[pango/pango2: 54/168] Add PangoLeadingTrim




commit c4fff450fdf83a9fcfb98b37bf11fa84d5f391ec
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jan 23 18:46:39 2022 -0500

    Add PangoLeadingTrim

 pango/pango-types.h | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
---
diff --git a/pango/pango-types.h b/pango/pango-types.h
index ef966340..98846969 100644
--- a/pango/pango-types.h
+++ b/pango/pango-types.h
@@ -310,6 +310,30 @@ typedef enum {
   PANGO_ELLIPSIZE_END
 } PangoEllipsizeMode;
 
+/**
+* PangoLeadingTrim:
+ * @PANGO_LEADING_TRIM_NONE: No trimming
+ * @PANGO_LEADING_TRIM_START: Trim leading at the top
+ * @PANGO_LEADING_TRIM_END: Trim leading at the bottom
+ *
+ * The `PangoLeadingTrim` flags control how the line height affects
+ * the extents of runs and lines.
+ */
+typedef enum
+{
+  PANGO_LEADING_TRIM_NONE  = 0,
+  PANGO_LEADING_TRIM_START = 1 << 0,
+  PANGO_LEADING_TRIM_END   = 1 << 1,
+
+} PangoLeadingTrim;
+
+/**
+ * PANGO_LEADING_TRIM_BOTH:
+ *
+ * Shorthand for `PANGO_LEADING_TRIM_START|PANGO_LEADING_TRIM_END`.
+ */
+#define PANGO_LEADING_TRIM_BOTH (PANGO_LEADING_TRIM_START|PANGO_LEADING_TRIM_END)
+
 
 /*
  * PANGO_DECLARE_INTERNAL_TYPE:


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