summaryrefslogtreecommitdiffstats
path: root/friendfinder/map/e_smart_tile.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/map/e_smart_tile.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/map/e_smart_tile.h')
-rw-r--r--friendfinder/map/e_smart_tile.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/friendfinder/map/e_smart_tile.h b/friendfinder/map/e_smart_tile.h
new file mode 100644
index 0000000..1a35df3
--- /dev/null
+++ b/friendfinder/map/e_smart_tile.h
@@ -0,0 +1,31 @@
+#ifndef _E_SMART_TILE
+#define _E_SMART_TILE
+
+
+struct tile_array
+{
+ Evas_Object **tiles;
+ int tw, th;
+ int ox, oy;
+ int mode;
+ double lat, lon;
+ int w, h;
+};
+
+struct osm_data
+{
+ int x, y, z;
+};
+
+static inline char *osm_string(struct osm_data *osm)
+{
+ static char buf[64];
+ snprintf(buf, 64, "%i/%i/%i", osm->z, osm->x, osm->y);
+ return buf;
+}
+
+Evas_Object *e_smart_tile_add(Evas *e);
+struct osm_data *e_smart_tile_load(Evas_Object *tile, const char *path, int z, int x, int y);
+struct osm_data *e_smart_tile_unload(Evas_Object *tile);
+struct osm_data *e_smart_tile_needs_update(Evas_Object *tile, int z, int x, int y);
+#endif