summaryrefslogtreecommitdiffstats
path: root/friendfinder/render/line.h
diff options
context:
space:
mode:
authorPatrick Hornecker2009-12-21 16:07:36 +0100
committerPatrick Hornecker2009-12-21 16:07:36 +0100
commit3cefadd098bb72a087406ecc09c1c04f1dca0ab5 (patch)
treebbec3ea006ac2abc6bdf52f00ca2b970f27274d9 /friendfinder/render/line.h
parentfew changes (diff)
downloadfriendfinder-3cefadd098bb72a087406ecc09c1c04f1dca0ab5.tar.gz
friendfinder-3cefadd098bb72a087406ecc09c1c04f1dca0ab5.tar.xz
friendfinder-3cefadd098bb72a087406ecc09c1c04f1dca0ab5.zip
file locations reorderd, map in gui...build problems on local machine
Diffstat (limited to 'friendfinder/render/line.h')
-rw-r--r--friendfinder/render/line.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/friendfinder/render/line.h b/friendfinder/render/line.h
new file mode 100644
index 0000000..7f3ef09
--- /dev/null
+++ b/friendfinder/render/line.h
@@ -0,0 +1,39 @@
+#ifndef __LINE_H
+#define __LINE_H
+
+struct point
+{
+ Evas_Coord x, y;
+ double lat, lon;
+};
+
+static inline void point_dump(struct point *p)
+{
+ printf("%lf,%lf -> %i,%i\n", p->lat, p->lon, p->x, p->y);
+}
+
+struct line
+{
+ struct point p0;
+ struct point p1;
+};
+
+struct polyline
+{
+ struct point *points;
+ int count;
+ unsigned char a, r, g, b, w;
+ int mode;
+};
+
+Evas_Object *e_smart_line_add(Evas *e);
+void e_smart_line_set(Evas_Object *o, struct polyline *pl);
+struct polyline *e_smart_line_get(Evas_Object *o);
+
+void polyline_add_point(struct polyline *pl, struct point p);
+void polyline_set_width(struct polyline *pl, int w);
+void polyline_set_color(struct polyline *pl, int r, int g, int b, int a);
+void polyline_delete(struct polyline *pl);
+struct polyline *polyline_empty();
+
+#endif