summaryrefslogtreecommitdiff
path: root/navit/layout.h
diff options
context:
space:
mode:
authorStefan Wildemann <metalstrolch@users.noreply.github.com>2022-01-01 14:12:44 +0100
committerGitHub <noreply@github.com>2022-01-01 14:12:44 +0100
commit17f1a6ec6aebbc51a67be6ac6064d231ce02a62e (patch)
treeade88ff515cba3763fc9ac00ec2f0a392ec32ba5 /navit/layout.h
parent13e550f93052ef6d51fcbde76cd6796a3cc6bb4e (diff)
downloadnavit-17f1a6ec6aebbc51a67be6ac6064d231ce02a62e.tar.gz
feature: graphics: allow spiked lines for cliff and embarkments (#1174)
* feature: graphics: allow spiked lines for cliff and embarkments This adds another drwing element to graphics system. It can produce lines with spikes as used for cliffs on maps. Additionally this adds embarlment support for map. * review fixes. Add changes requested by review, plus add paranoia check on xml parameter.
Diffstat (limited to 'navit/layout.h')
-rw-r--r--navit/layout.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/navit/layout.h b/navit/layout.h
index 47b078ab1..210519a83 100644
--- a/navit/layout.h
+++ b/navit/layout.h
@@ -34,7 +34,7 @@ struct poly_hole {
};
struct element {
- enum { element_point, element_polyline, element_polygon, element_circle, element_text, element_icon, element_image, element_arrows } type;
+ enum { element_point, element_polyline, element_polygon, element_circle, element_text, element_icon, element_image, element_arrows, element_spikes } type;
struct color color;
int text_size;
int oneway;
@@ -77,6 +77,10 @@ struct element {
struct element_arrows {
int width;
} arrows;
+ struct element_spikes {
+ int width;
+ int distance;
+ } spikes;
} u;
int coord_count;
struct coord *coord;
@@ -162,6 +166,7 @@ struct text *text_new(struct attr *parent, struct attr **attrs);
struct icon *icon_new(struct attr *parent, struct attr **attrs);
struct image *image_new(struct attr *parent, struct attr **attrs);
struct arrows *arrows_new(struct attr *parent, struct attr **attrs);
+struct spikes *spikes_new(struct attr *parent, struct attr **attrs);
int element_add_attr(struct element *e, struct attr *attr);
/* end of prototypes */