[pango/pango2: 62/301] Add PangoLeadingTrim
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [pango/pango2: 62/301] Add PangoLeadingTrim
- Date: Wed, 22 Jun 2022 15:53:34 +0000 (UTC)
commit a996c9b2b91d32c67d395c378b4a5d0ace4e9c04
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 ef9663406..988469693 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]