X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=sym.h;h=53ba3fa3b8fbc266b0f743cba664d8e04e086086;hb=597a0c524295c721a9f1a150463b1edfa228ca4a;hp=e53409e7b8d9ecc9a35874bfae3ff72bdad4d1fa;hpb=3d14be2fa32fe908dfef0f6ac3b76067c080a43a;p=leo.git diff --git a/sym.h b/sym.h index e53409e..53ba3fa 100644 --- a/sym.h +++ b/sym.h @@ -33,6 +33,8 @@ struct symbolizer { void (*draw)(struct symbol *sym, struct svg *svg); void (*gen)(struct osm_object *o, struct style_info *si, struct svg *svg); void (*init)(void); + struct symbol* (*copy)(struct symbol *sym); + bool (*look_same)(struct symbol *s1, struct symbol *s2); }; extern struct mempool *sym_mp; @@ -58,6 +60,9 @@ void sym_draw_all(struct svg *svg); void sym_from_style(struct osm_object *o, struct style_results *sr, struct svg *svg); z_index_t sym_zindex(struct osm_object *o, struct style_info *si, double default_mzi); +struct symbol * sym_copy(struct symbol *sym); +bool sym_look_same(struct symbol *s1, struct symbol *s2); + /* sym-point.c handles point symbols and icons */ struct sym_point { @@ -71,6 +76,8 @@ struct sym_point { double fill_opacity; bool do_stroke; bool do_fill; + double x; + double y; }; // FIXME: Make sym_*_new() and symbolizer structs internal