diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-02-25 23:10:10 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-02-25 23:10:10 +0100 |
commit | fd60b77df51cb24c33440ab7d9afe8043f9e43db (patch) | |
tree | 1085e56ec2686a3435c06fe01645aaa5b6d7ddb4 /libstorycode/stylesheet.c | |
parent | 2cd7252202c10ef8918ce8885cdf26dd5fcf00f5 (diff) |
Use padding
Diffstat (limited to 'libstorycode/stylesheet.c')
-rw-r--r-- | libstorycode/stylesheet.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libstorycode/stylesheet.c b/libstorycode/stylesheet.c index 7054a09..5d40f4b 100644 --- a/libstorycode/stylesheet.c +++ b/libstorycode/stylesheet.c @@ -262,3 +262,14 @@ int stylesheet_get_background(Stylesheet *s, enum style_element el, *grad = sty->bggrad; return 0; } + + +int stylesheet_get_padding(Stylesheet *s, enum style_element el, + struct length padding[4]) +{ + int i; + struct style *sty = get_style(s, el); + if ( sty == NULL ) return 1; + for ( i=0; i<4; i++ ) padding[i] = sty->padding[i]; + return 0; +} |