/*
* Hic Est Leo -- Symbolizers
*
- * (c) 2014 Martin Mares <mj@ucw.cz>
+ * (c) 2014--2015 Martin Mares <mj@ucw.cz>
*/
#ifndef _LEO_SYM_H
SYMBOLIZER_AREA,
SYMBOLIZER_TEXT,
SYMBOLIZER_LINEIMG,
+ SYMBOLIZER_SCALE,
SYMBOLIZER_MAX,
};
void (*draw)(struct symbol *sym, struct svg *svg);
void (*gen)(struct osm_object *o, struct style_info *si, struct svg *svg);
void (*init)(void);
+ osm_val_t special; // Generated automatically only upon request
};
extern struct mempool *sym_mp;
void scale_text(struct svg *svg, double x, double y, osm_val_t text);
+/* sym-scale.c */
+
+struct sym_scale {
+ struct symbol s;
+ double width;
+ color_t color;
+ double casing_width;
+ color_t casing_color;
+ double tick_length;
+};
+
+extern struct symbolizer symbolizer_scale;
+struct sym_scale *sym_scale_new(struct osm_object *o);
+
#endif