summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-01-23 18:46:39 -0500
committerMatthias Clasen <mclasen@redhat.com>2022-01-24 07:46:42 -0500
commit04aff39ebcbf43ed4e89d0e00c4b42669dcda0af (patch)
tree21ee85ac6032507d71a5b8956fd8698d7806b870
parent7362e8a85cd2543abda221fbfb5282342924d3de (diff)
downloadpango-04aff39ebcbf43ed4e89d0e00c4b42669dcda0af.tar.gz
Add PangoLeadingTrim
-rw-r--r--pango/pango-types.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/pango/pango-types.h b/pango/pango-types.h
index 3e062690..5c111a65 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)
+
G_END_DECLS