[pango/pango2: 61/301] Add PangoAlignment
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2: 61/301] Add PangoAlignment
- Date: Wed, 22 Jun 2022 15:53:34 +0000 (UTC)
commit 86dca0e84c525a6f5f708fa81358ee1b664a6d4a
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jan 14 21:42:05 2022 -0500
Add PangoAlignment
Tnis is an enum that combines alignment and justification.
This makes sense, is commonly done in other systems, and
lets us pass a single argument instead of 3 (align, justify
and justify-last).
pango/pango-types.h | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/pango/pango-types.h b/pango/pango-types.h
index a1d9ef2ca..ef9663406 100644
--- a/pango/pango-types.h
+++ b/pango/pango-types.h
@@ -259,6 +259,15 @@ typedef enum {
PANGO_ALIGN_RIGHT
} PangoAlignment;
+typedef enum
+{
+ PANGO_ALIGNMENT_LEFT,
+ PANGO_ALIGNMENT_CENTER,
+ PANGO_ALIGNMENT_RIGHT,
+ PANGO_ALIGNMENT_JUSTIFY,
+ PANGO_ALIGNMENT_JUSTIFY_ALL,
+} PangoAlignmentMode;
+
/**
* PangoWrapMode:
* @PANGO_WRAP_WORD: wrap lines at word boundaries.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]