diff options
Diffstat (limited to 'pango/pango-types.h')
-rw-r--r-- | pango/pango-types.h | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/pango/pango-types.h b/pango/pango-types.h index 5c111a65..69913b31 100644 --- a/pango/pango-types.h +++ b/pango/pango-types.h @@ -53,7 +53,9 @@ typedef struct _PangoLanguage PangoLanguage; */ typedef guint32 PangoGlyph; - +typedef struct _PangoLines PangoLines; +typedef struct _PangoGlyphItem PangoLayoutRun; +typedef struct _PangoLayoutIter PangoLayoutIter; /** * PANGO_SCALE: @@ -243,31 +245,23 @@ void pango_extents_to_pixels (PangoRectangle *inclusive, * @PANGO_ALIGN_LEFT: Put all available space on the right * @PANGO_ALIGN_CENTER: Center the line within the available space * @PANGO_ALIGN_RIGHT: Put all available space on the left + * @PANGO_ALIGN_JUSTIFY: Justify the content to fill the available + * space, unless the line ends the paragraph + * @PANGO_ALIGN_JUSTIFY_ALL: Justify the content to fill the available + * space, even if the line ends the paragraph * * `PangoAlignment` describes how to align the lines of a `PangoLayout` * within the available space. - * - * If the `PangoLayout` is set to justify using [method@Pango.Layout.set_justify], - * this only affects partial lines. - * - * See [method@Pango.Layout.set_auto_dir] for how text direction affects - * the interpretation of `PangoAlignment` values. */ -typedef enum { +typedef enum +{ PANGO_ALIGN_LEFT, PANGO_ALIGN_CENTER, - PANGO_ALIGN_RIGHT + PANGO_ALIGN_RIGHT, + PANGO_ALIGN_JUSTIFY, + PANGO_ALIGN_JUSTIFY_ALL, } 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. |