2 * Hic Est Leo -- MapCSS Stylesheets
4 * (c) 2014 Martin Mares <mj@ucw.cz>
20 cnode n; // In the list of rules
21 clist selectors; // Alternative selectors
27 clist path; // Element path
30 enum css_object_type {
31 CSS_TYPE_ANY = OSM_TYPE_INVALID,
32 CSS_TYPE_NODE = OSM_TYPE_NODE,
33 CSS_TYPE_WAY = OSM_TYPE_WAY,
34 CSS_TYPE_RELATION = OSM_TYPE_RELATION,
41 enum css_object_type type; // Object type or CSS_TYPE_ANY
42 clist conditions; // Attribute conditions
43 layer_t layer; // STYLE_LAYER_xxx or more
48 enum css_path_modifier {
49 PATH_MOD_NEVER = 1, // Unknown modifier, never match
65 struct css_condition {
74 struct style_prop prop;
79 extern struct css_sheet *css_this;
81 struct css_sheet *css_load(char *filename);
85 void css_error(char *err, ...);
87 void css_lex_open(void);
88 void css_lex_close(void);
90 color_t css_rgb_to_color(const char *rgb);
94 void css_dump(struct css_sheet *ss);
95 void css_dump_rule(struct css_rule *r);
96 void css_dump_selector(struct css_selector *s);
97 void css_dump_action(struct css_action *a);
99 void css_apply(struct css_sheet *ss, struct style_results *r);