summaryrefslogtreecommitdiff
path: root/navit/layout.h
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-05-18 10:01:53 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-05-18 10:01:53 +0000
commit0b74d7f4ee6d448ac811e2741e8cb1ed04f5ce76 (patch)
treebe7bb1cb1020f4022e41c004e2fa9d561ea3580d /navit/layout.h
parentf46eb419c46011d6d103b7f06cb2c842a2cbe6c9 (diff)
downloadnavit-0b74d7f4ee6d448ac811e2741e8cb1ed04f5ce76.tar.gz
Fix:Core:Renamed src to navit for cleanup of includes
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1059 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/layout.h')
-rw-r--r--navit/layout.h70
1 files changed, 70 insertions, 0 deletions
diff --git a/navit/layout.h b/navit/layout.h
new file mode 100644
index 000000000..87831004c
--- /dev/null
+++ b/navit/layout.h
@@ -0,0 +1,70 @@
+#ifndef NAVIT_LAYOUT_H
+#define NAVIT_LAYOUT_H
+
+#include "item.h"
+#include "color.h"
+
+struct element_line;
+struct element_text;
+
+struct element {
+ enum { element_point, element_polyline, element_polygon, element_circle, element_label, element_icon, element_image } type;
+ struct color color;
+ int label_size;
+ union {
+ struct element_point {
+ } point;
+ struct element_polyline {
+ int width;
+ int directed;
+ int dash_num;
+ unsigned char dash_table[4];
+ } polyline;
+ struct element_polygon {
+ } polygon;
+ struct element_circle {
+ int width;
+ int radius;
+ } circle;
+ struct element_icon {
+ char *src;
+ } icon;
+ } u;
+};
+
+
+struct itemtype {
+ int order_min, order_max;
+ GList *type;
+ GList *elements;
+};
+
+struct color;
+
+struct layer { char *name; int details; GList *itemtypes; };
+
+struct layout { char *name; struct color *color; GList *layers; };
+
+/* prototypes */
+enum item_type;
+struct element;
+struct itemtype;
+struct layer;
+struct layout;
+struct layout *layout_new(const char *name, struct color *color);
+struct layer *layer_new(const char *name, int details);
+void layout_add_layer(struct layout *layout, struct layer *layer);
+struct itemtype *itemtype_new(int order_min, int order_max);
+void itemtype_add_type(struct itemtype *this, enum item_type type);
+void layer_add_itemtype(struct layer *layer, struct itemtype *itemtype);
+void itemtype_add_element(struct itemtype *itemtype, struct element *element);
+struct element *polygon_new(struct color *color);
+struct element *polyline_new(struct color *color, int width, int directed,
+ int *dash_table, int dash_num);
+struct element *circle_new(struct color *color, int radius, int width, int label_size);
+struct element *label_new(int label_size);
+struct element *icon_new(const char *src);
+struct element *image_new(void);
+
+#endif
+