#include <Elementary.h>
typedef struct _Overlay_Data
{
const char *name;
const char *file;
} Overlay_Data;
Overlay_Data data_argentina = {"Argentina", NULL};
Overlay_Data data_chile = {"Chile", NULL};
Overlay_Data data_sampa = {"São Paulo", NULL};
Overlay_Data data_rio = {"Rio de Janeiro", NULL};
Overlay_Data data_brasilia = {"Brasília", NULL};
const char *data_dir;
{
return icon;
}
{
char buf[256];
snprintf(buf, sizeof(buf), "%s/images/icon_07.png", data_dir);
return _icon_get(obj, buf);
}
{
char buf[256];
snprintf(buf, sizeof(buf), "%s/images/icon_05.png", data_dir);
return _icon_get(obj, buf);
}
{
char buf[256];
snprintf(buf, sizeof(buf), "%s/images/icon_06.png", data_dir);
return _icon_get(obj, buf);
}
{
char buf[256];
snprintf(buf, sizeof(buf), "%s/images/icon_04.png", data_dir);
return _icon_get(obj, buf);
}
{
elm_box_pack_end(bx, img);
elm_object_text_set(label, data->name);
elm_box_pack_end(bx, label);
return bx;
}
static void
{
printf("Overlay clicked\n");
if (!bubble) bubble = elm_map_overlay_bubble_add(map);
}
static void
{
int zoom;
}
static void
{
int zoom;
}
static void
{
}
static void
{
}
_nasty_hack(void *data)
{
Evas *e = evas_object_evas_get(o);
}
EAPI_MAIN int
{
char buf[255];
snprintf(buf, sizeof(buf), "%s/images/rock_01.jpg", "sdf");
data_argentina.file = strdup(buf);
snprintf(buf, sizeof(buf), "%s/images/rock_02.jpg", "sdf");
data_chile.file = strdup(buf);
snprintf(buf, sizeof(buf), "%s/images/sky_01.jpg", "sdf");
data_sampa.file = strdup(buf);
snprintf(buf, sizeof(buf), "%s/images/sky_02.jpg", "sdf");
data_rio.file = strdup(buf);
snprintf(buf, sizeof(buf), "%s/images/sky_03.jpg", "sdf");
data_brasilia.file = strdup(buf);
elm_object_text_set(bt, "+");
elm_box_pack_end(box, bt);
elm_object_text_set(bt, "-");
elm_box_pack_end(box, bt);
elm_object_text_set(bt, "X");
elm_box_pack_end(box, bt);
elm_object_text_set(bt, "#");
elm_box_pack_end(box, bt);
city_clas = elm_map_overlay_class_add(map);
country_clas = elm_map_overlay_class_add(map);
ovl = elm_map_overlay_add(map, -43.2, -22.9);
ovl = elm_map_overlay_add(map, -46.63, -23.55);
ovl = elm_map_overlay_add(map, -47.88, -15.78);
ovl = elm_map_overlay_add(map, -65.23, -35.1);
ovl = elm_map_overlay_add(map, -71.3, -31.75);
return 0;
}