diff options
author | Stefan Wildemann <gta04@metalstrolche.de> | 2019-07-27 11:05:40 +0200 |
---|---|---|
committer | Stefan Wildemann <gta04@metalstrolche.de> | 2019-07-28 12:33:49 +0200 |
commit | f99e5245364d2b7cf9eb1d6c9ad8a09b263f7498 (patch) | |
tree | 2a172137231cb94348ab91ba33bd6d80c75d9862 /navit/layout.h | |
parent | 6bc6c0cca6c105450f7cc6f080c72d99f87c173f (diff) | |
download | navit-f99e5245364d2b7cf9eb1d6c9ad8a09b263f7498.tar.gz |
Process multipolygons to mapfile
Diffstat (limited to 'navit/layout.h')
-rw-r--r-- | navit/layout.h | 130 |
1 files changed, 68 insertions, 62 deletions
diff --git a/navit/layout.h b/navit/layout.h index ece5d0cc8..6900f16a4 100644 --- a/navit/layout.h +++ b/navit/layout.h @@ -22,88 +22,94 @@ #include "item.h" #include "color.h" +#include "coord.h" #ifdef __cplusplus extern "C" { #endif +struct poly_hole { + long long osmid; + int coord_count; + struct coord coord[1]; +}; struct element { - enum { element_point, element_polyline, element_polygon, element_circle, element_text, element_icon, element_image, element_arrows } type; - struct color color; - int text_size; - union { - struct element_point { - char stub; - } point; - struct element_polyline { - int width; - int directed; - int dash_num; - int offset; - unsigned char dash_table[4]; - } polyline; - struct element_polygon { - char stub; - } polygon; - struct element_circle { - int width; - int radius; - struct color background_color; - } circle; - struct element_icon { - char *src; - int width; - int height; - int rotation; - int x; - int y; - } icon; - struct element_text { - struct color background_color; - } text; - } u; - int coord_count; - struct coord *coord; + enum { element_point, element_polyline, element_polygon, element_circle, element_text, element_icon, element_image, element_arrows } type; + struct color color; + int text_size; + union { + struct element_point { + char stub; + } point; + struct element_polyline { + int width; + int directed; + int dash_num; + int offset; + unsigned char dash_table[4]; + } polyline; + struct element_polygon { + char stub; + } polygon; + struct element_circle { + int width; + int radius; + struct color background_color; + } circle; + struct element_icon { + char *src; + int width; + int height; + int rotation; + int x; + int y; + } icon; + struct element_text { + struct color background_color; + } text; + } u; + int coord_count; + struct coord *coord; }; struct itemgra { - struct range order,sequence_range,speed_range,angle_range; - GList *type; - GList *elements; + struct range order,sequence_range,speed_range,angle_range; + GList *type; + GList *elements; }; struct layer { - NAVIT_OBJECT - struct navit *navit; - char *name; - int details; - GList *itemgras; - int active; - struct layer *ref; + NAVIT_OBJECT + struct navit *navit; + char *name; + int details; + GList *itemgras; + int active; + struct layer *ref; }; struct cursor { - struct attr **attrs; - struct range *sequence_range; - char *name; - int w,h; - int interval; + struct attr **attrs; + struct range *sequence_range; + char *name; + int w,h; + int interval; }; struct layout { - NAVIT_OBJECT - struct navit *navit; - char *name; - char* dayname; - char* nightname; - char *font; - struct color color; - GList *layers; - GList *cursors; - int order_delta; - int active; + NAVIT_OBJECT + struct navit *navit; + char *name; + char* dayname; + char* nightname; + char *font; + struct color color; + GList *layers; + GList *cursors; + int order_delta; + int active; }; /* prototypes */ |