diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-02-22 22:20:10 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-02-22 22:20:10 +0100 |
commit | aee387068f5b9013687250e8d655b56a0c5776f2 (patch) | |
tree | b835c6a32dc1731a3a1634564fee82851e26790d /libstorycode/slide.c | |
parent | 3ff425d840876c0db965b23826998161ee87c1fd (diff) |
Rearrange rendering stuff
Rendering parts are allowed to access the internals of the slide
structure, to avoid a profusion of getter/setter functions.
Diffstat (limited to 'libstorycode/slide.c')
-rw-r--r-- | libstorycode/slide.c | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/libstorycode/slide.c b/libstorycode/slide.c index 400b614..4e98ba2 100644 --- a/libstorycode/slide.c +++ b/libstorycode/slide.c @@ -30,43 +30,7 @@ #include <stdio.h> #include "slide.h" - -enum slide_item_type -{ - SLIDE_ITEM_TEXT, - SLIDE_ITEM_IMAGE, - SLIDE_ITEM_FOOTER, - SLIDE_ITEM_SLIDETITLE, - SLIDE_ITEM_PRESTITLE, -}; - - -struct slide_item -{ - enum slide_item_type type; - - /* For TEXT */ - char **paragraphs; - int n_paras; - - /* For IMAGE */ - char *filename; - - /* For SLIDETITLE */ - char *text; - - /* For TEXT and IMAGE */ - struct frame_geom geom; -}; - - -struct _slide -{ - double logical_w; - double logical_h; - int n_items; - struct slide_item *items; -}; +#include "slide_priv.h" Slide *slide_new() |