aboutsummaryrefslogtreecommitdiff
path: root/libstorycode/slide.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2019-02-20 22:51:31 +0100
committerThomas White <taw@bitwiz.me.uk>2019-02-20 22:51:31 +0100
commit2244ab129bf25893cae4d68313222ef810bd0631 (patch)
treebafc8f43f481f5ae380d084cccfa4fdbc87f5bad /libstorycode/slide.h
parent24c20239779d0ec616adde651c594c7bf08d58c7 (diff)
Add creation of most slide items
Diffstat (limited to 'libstorycode/slide.h')
-rw-r--r--libstorycode/slide.h25
1 files changed, 20 insertions, 5 deletions
diff --git a/libstorycode/slide.h b/libstorycode/slide.h
index c9be25a..f42562b 100644
--- a/libstorycode/slide.h
+++ b/libstorycode/slide.h
@@ -30,13 +30,26 @@
typedef struct _slide Slide;
typedef struct _slideitem SlideItem;
+enum length_unit
+{
+ LENGTH_FRAC,
+ LENGTH_UNIT
+};
+
+
+struct length
+{
+ double len;
+ enum length_unit unit;
+};
+
+
struct frame_geom
{
- double x;
- double y;
- double w;
- double h;
- /* FIXME: units */
+ struct length x;
+ struct length y;
+ struct length w;
+ struct length h;
};
@@ -49,5 +62,7 @@ extern int slide_add_text(Slide *s, char **text, int n_text, struct frame_geom g
extern int slide_add_footer(Slide *s);
extern int slide_add_slidetitle(Slide *s, char *slidetitle);
+/* For debugging, not really part of API */
+extern void describe_slide(Slide *s);
#endif /* SLIDE_H */