[pango/pango2: 11/135] Add PangoLeadingTrim
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2: 11/135] Add PangoLeadingTrim
- Date: Fri, 18 Feb 2022 20:10:57 +0000 (UTC)
commit 28713165d90260075fd9ba26a0e9723311f9607a
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]