6 #define FNAME image_blend_occlude1_few_start
7 #define NAME "Image Blend Occlude 1 Few"
8 #define ICON "blend.png"
20 static Evas_Object *o_images[OBNUM];
23 static void _setup(void)
28 for (i = 0; i < OBNUM; i++)
30 o = evas_object_image_add(evas);
33 evas_object_image_file_set(o, PACKAGE_DATA_DIR"/data/logo.png", NULL);
38 evas_object_image_file_set(o, PACKAGE_DATA_DIR"/data/image.png", NULL);
39 x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
40 y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
41 evas_object_move(o, x, y);
43 evas_object_image_fill_set(o, 0, 0, 120, 160);
44 evas_object_resize(o, 120, 160);
51 static void _cleanup(void)
54 for (i = 0; i < OBNUM; i++) evas_object_del(o_images[i]);
57 /* loop - do things */
58 static void _loop(double t, int f)
61 Evas_Coord x, y, w, h;
62 for (i = 0; i < OBNUM; i++)
68 x = (win_w / 2) - (w / 2);
69 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
70 y = (win_h / 2) - (h / 2);
71 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
72 evas_object_move(o_images[i], x, y);
78 /* prepend special key handlers if interactive (before STD) */
79 static void _key(char *key)
95 /* template stuff - ignore */
100 _ui_menu_item_add(ICON, NAME, FNAME);
111 ui_func_set(_key, _loop);