diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-01-23 21:06:55 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-01-25 15:29:16 -0500 |
commit | d2602cc0ee6a0b7abb982e27ccf90b0da98ebedf (patch) | |
tree | 883cdb2cb8533cd08368decda9680f4f3e698a02 /pango/pango-layout-run.c | |
parent | 45762d6b50b29447ee97c759c7a7cc55cb534703 (diff) | |
download | pango-d2602cc0ee6a0b7abb982e27ccf90b0da98ebedf.tar.gz |
Make PangoLayoutRun a separate type
It is nicer to have an opaque type for
the iter, and only use PangoGlyphItem
in the implementation.
Diffstat (limited to 'pango/pango-layout-run.c')
-rw-r--r-- | pango/pango-layout-run.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pango/pango-layout-run.c b/pango/pango-layout-run.c index 63965842..90edb3f0 100644 --- a/pango/pango-layout-run.c +++ b/pango/pango-layout-run.c @@ -9,13 +9,13 @@ PangoItem * pango_layout_run_get_item (PangoLayoutRun *run) { - return run->item; + return run->glyph_item.item; } PangoGlyphString * pango_layout_run_get_glyphs (PangoLayoutRun *run) { - return run->glyphs; + return run->glyph_item.glyphs; } /** @@ -40,7 +40,7 @@ pango_layout_run_get_extents (PangoLayoutRun *run, PangoRectangle *ink_rect, PangoRectangle *logical_rect) { - PangoGlyphItem *glyph_item = run; + PangoGlyphItem *glyph_item = &run->glyph_item; ItemProperties properties; gboolean has_underline; gboolean has_overline; |