diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-02-24 17:56:21 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-02-24 17:56:21 +0100 |
commit | 7f09291dcbde21fb182a32482c3985470eda41d7 (patch) | |
tree | 5ed6e26c55e67a783c20e79f3a4ac00ddd59df06 /libstorycode/scparse_priv.h | |
parent | 0cf09c110c9919efcbc3ff3b59cb83622b4ce1b2 (diff) |
Stylesheet parser stuff
Diffstat (limited to 'libstorycode/scparse_priv.h')
-rw-r--r-- | libstorycode/scparse_priv.h | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/libstorycode/scparse_priv.h b/libstorycode/scparse_priv.h index 5812c94..0ddfe1c 100644 --- a/libstorycode/scparse_priv.h +++ b/libstorycode/scparse_priv.h @@ -27,6 +27,17 @@ #include "narrative.h" #include "slide.h" +enum style_mask +{ + STYMASK_GEOM = 1<<0, + STYMASK_FONT = 1<<1, + STYMASK_ALIGNMENT = 1<<2, + STYMASK_PADDING = 1<<3, + STYMASK_PARASPACE = 1<<4, + STYMASK_FGCOL = 1<<5, + STYMASK_BGCOL = 1<<6, +}; + struct scpctx { Presentation *p; @@ -38,10 +49,17 @@ struct scpctx int max_str; char **str; - /* Frame options */ + /* Current style or frame options. + * These will be copied to a stylesheet entry or frame when the + * top-level rule is matched. */ + enum style_mask mask; struct frame_geom geom; - int geom_set; char *font; + enum alignment alignment; + struct length padding[4]; + struct length paraspace[4]; + double fgcol[4]; + double bgcol[4]; }; #endif /* SCPARSE_PRIV_H */ |