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-private.h | |
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-private.h')
-rw-r--r-- | pango/pango-layout-run-private.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pango/pango-layout-run-private.h b/pango/pango-layout-run-private.h index 4d315da7..ce3b2bc8 100644 --- a/pango/pango-layout-run-private.h +++ b/pango/pango-layout-run-private.h @@ -6,9 +6,13 @@ #include "pango-glyph-item.h" #include "pango-item-private.h" +struct _PangoLayoutRun +{ + PangoGlyphItem glyph_item; +}; static inline PangoGlyphItem * pango_layout_run_get_glyph_item (PangoLayoutRun *run) { - return (PangoGlyphItem *)run; + return &run->glyph_item; } |