6 #define FNAME image_quality_scale_start
7 #define NAME "Image Quality Scale"
8 #define ICON "data.png"
18 static Evas_Object *o_images[1];
21 static void _setup(void)
25 for (i = 0; i < 1; i++)
27 o = efl_add(EFL_CANVAS_IMAGE_CLASS, evas);
29 efl_file_simple_load(o, build_path("tp.png"), NULL);
30 efl_gfx_fill_set(o, EINA_RECT(0, 0, 640, 480));
31 efl_gfx_entity_size_set(o, EINA_SIZE2D(640, 480));
32 efl_gfx_entity_visible_set(o, EINA_TRUE);
38 static void _cleanup(void)
41 for (i = 0; i < 1; i++) efl_del(o_images[i]);
44 /* loop - do things */
45 static void _loop(double t, int f)
48 Evas_Coord x, y, w, h;
49 for (i = 0; i < 1; i++)
53 w *= (f / 100.0) * 4.0;
54 h *= (f / 100.0) * 4.0;
55 x = (win_w / 2) - (w / 2);
56 y = (win_h / 2) - (h / 2);
57 efl_gfx_entity_position_set(o_images[i], EINA_POSITION2D(x, y));
58 efl_gfx_entity_size_set(o_images[i], EINA_SIZE2D(w, h));
59 efl_gfx_fill_set(o_images[i], EINA_RECT(0, 0, w, h));
64 /* prepend special key handlers if interactive (before STD) */
65 static void _key(const char *key)
81 /* template stuff - ignore */
86 _ui_menu_item_add(ICON, NAME, FNAME);
97 ui_func_set(_key, _loop, _setup);