diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-11-28 16:24:35 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-11-29 08:12:11 -0500 |
commit | b8dbc92ab571d88f9d9dca4a61ade2492c6e0642 (patch) | |
tree | c15087451d3d4dd02dd50c37b4d22fb9cafe081d /pango/pango-tabs.h | |
parent | 7a96294c33cc6f2a6e34b7f4f9d57c93754eff0c (diff) | |
download | pango-b8dbc92ab571d88f9d9dca4a61ade2492c6e0642.tar.gz |
tabs: Add other tab alignments
Add right, center, decimal tab alignments and support
them in serialization. They are not implemented yet.
Diffstat (limited to 'pango/pango-tabs.h')
-rw-r--r-- | pango/pango-tabs.h | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/pango/pango-tabs.h b/pango/pango-tabs.h index d2a68d5a..81ac1550 100644 --- a/pango/pango-tabs.h +++ b/pango/pango-tabs.h @@ -30,21 +30,27 @@ typedef struct _PangoTabArray PangoTabArray; /** * PangoTabAlign: - * @PANGO_TAB_LEFT: the tab stop appears to the left of the text. + * @PANGO_TAB_LEFT: the text appears to the right of the tab stop position + * @PANGO_TAB_RIGHT: the text appears to the left of the tab stop position + * until the available space is filled + * @PANGO_TAB_CENTER: the text is centered at the tab stop position + * until the available space is filled + * @PANGO_TAB_DECIMAL: text before the first '.' appears to the left of the + * tab stop position (until the available space is filled), the rest to + * the right * - * `PangoTabAlign` specifies where a tab stop appears relative to the text. + * `PangoTabAlign` specifies where the text appears relative to the tab stop + * position. + * + * Support for tab alignments other than %PANGO_TAB_LEFT was added + * in Pango 1.50. */ typedef enum { - PANGO_TAB_LEFT - - /* These are not supported now, but may be in the - * future. - * - * PANGO_TAB_RIGHT, - * PANGO_TAB_CENTER, - * PANGO_TAB_NUMERIC - */ + PANGO_TAB_LEFT, + PANGO_TAB_RIGHT, + PANGO_TAB_CENTER, + PANGO_TAB_DECIMAL } PangoTabAlign; #define PANGO_TYPE_TAB_ARRAY (pango_tab_array_get_type ()) |