1 #include "Elementary.h"
4 # include "elementary_config.h"
7 static Evas_Object *view;
10 map_module_name_get(void)
12 return "Test Map Engine";
16 map_module_add(Evas_Object *parent __UNUSED__)
20 view = evas_object_rectangle_add(evas_object_evas_get(parent));
21 evas_object_color_set(view, 0, 50, 0, 50);
22 evas_object_repeat_events_set(view, EINA_TRUE);
24 evas_object_show(view);
29 map_module_del(Evas_Object *parent __UNUSED__)
31 if (view) evas_object_hide(view);
35 map_module_resize(Evas_Object *parent __UNUSED__, int w __UNUSED__, int h __UNUSED__)
37 evas_object_resize(view, w, h);
41 map_module_zoom_min_get()
47 map_module_zoom_max_get()
53 map_module_show(Evas_Object *obj __UNUSED__, double lon __UNUSED__, double lat __UNUSED__, int animation __UNUSED__)
55 if (view) evas_object_color_set(view, 0, 0, 50, 50);
59 map_module_zoom(Evas_Object *obj __UNUSED__, double zoom __UNUSED__, int animation __UNUSED__)
61 if (view) evas_object_color_set(view, 50, 0, 0, 50);
65 map_module_rotate(Evas_Object *obj __UNUSED__, double angle __UNUSED__, int x __UNUSED__, int y __UNUSED__, int animation __UNUSED__)
67 if (view) evas_object_color_set(view, 0, 0, 50, 50);
71 map_module_region_get(Evas_Object *obj __UNUSED__, double *lon __UNUSED__, double *lat __UNUSED__)
77 map_module_rotate_get(const Evas_Object *obj __UNUSED__, double *angle __UNUSED__, int *x __UNUSED__, int *y __UNUSED__)
83 map_module_perpective_set(Evas_Object *obj __UNUSED__, double perspective __UNUSED__, int animation __UNUSED__)
85 if (view) evas_object_color_set(view, 50, 50, 50, 50);
89 map_module_canvas_to_region(const Evas_Object *obj __UNUSED__, int x __UNUSED__, int y __UNUSED__, double *lon __UNUSED__, double *lat __UNUSED__)
95 map_module_region_to_canvas(const Evas_Object *obj __UNUSED__, double lon __UNUSED__, double lat __UNUSED__, int *x __UNUSED__, int *y __UNUSED__)
101 map_module_pan(Evas_Object *obj __UNUSED__, int x_1 __UNUSED__, int y_1 __UNUSED__, int x_2 __UNUSED__, int y_2 __UNUSED__)
103 if (view) evas_object_color_set(view, 128, 128,128, 128);
117 EINA_MODULE_INIT(_module_init);
118 EINA_MODULE_SHUTDOWN(_module_shutdown);