diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-02-19 18:17:56 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-02-19 18:17:56 +0100 |
commit | 24c20239779d0ec616adde651c594c7bf08d58c7 (patch) | |
tree | c1900bda6b2c5f58a66d4b8d89f4a946a24465dc /libstorycode/slide.c | |
parent | 9fbe4d66565e6ab11c5022bcfe5ed0ddfb91dc7e (diff) |
WIP
Diffstat (limited to 'libstorycode/slide.c')
-rw-r--r-- | libstorycode/slide.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libstorycode/slide.c b/libstorycode/slide.c index 28ca159..6ff5691 100644 --- a/libstorycode/slide.c +++ b/libstorycode/slide.c @@ -27,12 +27,17 @@ #include <stdlib.h> #include <string.h> +#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, }; @@ -82,8 +87,13 @@ int slide_add_image(Slide *s, char *filename, struct frame_geom geom) } -int slide_add_text(Slide *s, char *text, struct frame_geom geom) +int slide_add_text(Slide *s, char **text, int n_text, struct frame_geom geom) { + int i; + printf("got text:\n"); + for ( i=0; i<n_text; i++ ) { + printf("%3i: '%s'\n", i, text[i]); + } return 0; } |