aboutsummaryrefslogtreecommitdiff
path: root/libstorycode/stylesheet.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2019-02-23 18:04:22 +0100
committerThomas White <taw@bitwiz.me.uk>2019-02-23 18:04:22 +0100
commit0cf09c110c9919efcbc3ff3b59cb83622b4ce1b2 (patch)
treef9da8c140afb5dabc8f6d5b8f4dbe8c20793a938 /libstorycode/stylesheet.h
parent14c998b253489b88bc4da904409e32c86bbe92c0 (diff)
Render text with font
Diffstat (limited to 'libstorycode/stylesheet.h')
-rw-r--r--libstorycode/stylesheet.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/libstorycode/stylesheet.h b/libstorycode/stylesheet.h
index f7af223..56a6969 100644
--- a/libstorycode/stylesheet.h
+++ b/libstorycode/stylesheet.h
@@ -29,8 +29,37 @@
typedef struct _stylesheet Stylesheet;
+
+enum length_unit
+{
+ LENGTH_FRAC,
+ LENGTH_UNIT
+};
+
+
+struct length
+{
+ double len;
+ enum length_unit unit;
+};
+
+
+struct frame_geom
+{
+ struct length x;
+ struct length y;
+ struct length w;
+ struct length h;
+};
+
+
extern Stylesheet *stylesheet_new(void);
extern void stylesheet_free(Stylesheet *s);
+extern int stylesheet_set_default_slide_size(Stylesheet *s, double w, double h);
+extern int stylesheet_set_slide_text_font(Stylesheet *s, char *font);
+
+extern const char *stylesheet_get_slide_text_font(Stylesheet *s);
+
#endif /* STYLESHEET_H */