6 #define FNAME image_map_solid_rotate_start
7 #define NAME "Image Map Solid Rotate"
18 static Evas_Object *o_images[OBNUM];
21 static void _setup(void)
25 for (i = 0; i < (OBNUM / 2); i++)
27 o = evas_object_image_add(evas);
29 evas_object_image_file_set(o, build_path("image.png"), NULL);
30 evas_object_image_fill_set(o, 0, 0, 120, 160);
31 evas_object_resize(o, 120, 160);
38 static void _cleanup(void)
41 for (i = 0; i < (OBNUM / 2); i++) evas_object_del(o_images[i]);
44 /* loop - do things */
45 static void _loop(double t, int f)
49 Evas_Coord x, y, w, h;
51 for (i = 0; i < (OBNUM / 2); i++)
55 x = (win_w / 2) - (w / 2);
56 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
57 y = (win_h / 2) - (h / 2);
58 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
60 evas_map_util_points_populate_from_geometry(m, x, y, w, h, 0);
62 evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
64 evas_object_map_enable_set(o_images[i], 1);
65 evas_object_map_set(o_images[i], m);
71 /* prepend special key handlers if interactive (before STD) */
72 static void _key(char *key)
88 /* template stuff - ignore */
93 _ui_menu_item_add(ICON, NAME, FNAME);
104 ui_func_set(_key, _loop);