diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-09-25 21:09:14 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-09-25 21:09:14 +0000 |
commit | 7a7abf241431bff42fce5872acdf9ea89e1f84b8 (patch) | |
tree | 637de030a56af4cace13668155b3a03771a6074b /navit/layout.c | |
parent | 33d8122236bf7ea84baa25ce1d0fbc732573c115 (diff) | |
download | navit-svn-7a7abf241431bff42fce5872acdf9ea89e1f84b8.tar.gz |
Add:Core:Added support for arrows showing the direction of lines
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1417 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/layout.c')
-rw-r--r-- | navit/layout.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/navit/layout.c b/navit/layout.c index eb124dfa..890e3660 100644 --- a/navit/layout.c +++ b/navit/layout.c @@ -20,6 +20,7 @@ #include <glib.h> #include <string.h> #include "item.h" +#include "attr.h" #include "layout.h" struct layout * layout_new(struct attr *parent, struct attr **attrs) @@ -169,3 +170,17 @@ image_new(void) return e; } +struct element * +arrows_new(struct attr **attrs) +{ + struct element *e; + struct attr *color=attr_search(attrs, NULL, attr_color); + + e = g_malloc0(sizeof(*e)); + e->type=element_arrows; + if (color) + e->color=*color->u.color; + + return e; +} + |