aboutsummaryrefslogtreecommitdiff
path: root/libstorycode/slide.h
diff options
context:
space:
mode:
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 */