aboutsummaryrefslogtreecommitdiff
path: root/libstorycode/stylesheet.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2019-03-17 17:46:42 +0100
committerThomas White <taw@bitwiz.me.uk>2019-03-18 08:15:48 +0100
commit59284281f6440dab5e8d0be4b67aac2970d05652 (patch)
tree3badea7c706c08b4bb13ae8a76fd14091c593217 /libstorycode/stylesheet.c
parent0e1f2f49f4d3b02901c8ba291a8ffb2605418db4 (diff)
Initial slide clicky stuff
Diffstat (limited to 'libstorycode/stylesheet.c')
-rw-r--r--libstorycode/stylesheet.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libstorycode/stylesheet.c b/libstorycode/stylesheet.c
index d287836..742c880 100644
--- a/libstorycode/stylesheet.c
+++ b/libstorycode/stylesheet.c
@@ -251,6 +251,15 @@ int stylesheet_set_alignment(Stylesheet *s, enum style_element el, enum alignmen
}
+int stylesheet_get_geometry(Stylesheet *s, enum style_element el, struct frame_geom *geom)
+{
+ struct style *sty = get_style(s, el);
+ if ( sty == NULL ) return 1;
+ *geom = sty->geom;
+ return 0;
+}
+
+
const char *stylesheet_get_font(Stylesheet *s, enum style_element el,
double *fgcol, enum alignment *alignment)
{