diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-03-23 11:34:48 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-03-23 11:35:49 +0100 |
commit | 91eeae07bd6a4d4db2ec81c4237819c73d79b0de (patch) | |
tree | 120ad27f72db8ea49415e8870f3cbe73edc0fabd /libstorycode/slide_priv.h | |
parent | eb0cc508dc81172aaf6ae4714216259148c74e23 (diff) |
Combine slide text strings and layouts in one structure
Diffstat (limited to 'libstorycode/slide_priv.h')
-rw-r--r-- | libstorycode/slide_priv.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/libstorycode/slide_priv.h b/libstorycode/slide_priv.h index 0d80663..75a2ac5 100644 --- a/libstorycode/slide_priv.h +++ b/libstorycode/slide_priv.h @@ -39,17 +39,25 @@ enum slide_item_type }; +struct slide_text_paragraph +{ + char *text; +#ifdef HAVE_PANGO + PangoLayout *layout; +#else + void *layout; +#endif +}; + + struct _slideitem { enum slide_item_type type; /* For TEXT, SLIDETITLE, PRESTITLE */ - char **paragraphs; int n_paras; + struct slide_text_paragraph *paras; enum alignment align; -#ifdef HAVE_PANGO - PangoLayout **layouts; -#endif /* For IMAGE */ char *filename; |