Convert all o_images to efl::evas::list<evas::image>.

This commit is contained in:
Savio Sena 2014-09-23 04:16:23 -03:00
parent 95e8ec6f9e
commit 12e33a9c12
70 changed files with 331 additions and 345 deletions

View File

@ -1,7 +1,19 @@
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "Eo.h"
#include "Evas.h"
#include "Eo.hh"
#include "Eina.hh"
#include "Evas.hh"
#include "main.h" #include "main.h"
#include "ui.h" #define EXPEDITE_CXX_TEST_IMPL
#include <font_effect_blur_alpha_capi.h>
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
@ -52,7 +64,7 @@ static void _key(char *key)
KEY_STD; KEY_STD;
} }
void FNAME(void) extern "C" void FNAME(void)
{ {
ui_func_set(_key, _loop); ui_func_set(_key, _loop);
_setup(); _setup();

View File

@ -21,7 +21,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[MANYNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -31,7 +31,7 @@ static void _setup(void)
for (i = 0; i < MANYNUM; i++) for (i = 0; i < MANYNUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
n = rnd() % 100; n = rnd() % 100;
w = 3 + ((n * (60 - 3)) / 100); w = 3 + ((n * (60 - 3)) / 100);
h = 4 + ((n * (80 - 4)) / 100); h = 4 + ((n * (80 - 4)) / 100);
@ -49,7 +49,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < MANYNUM; i++) eo_del(o_images[i]); for (i = 0; i < MANYNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -59,12 +59,12 @@ static void _loop(double t, int f)
Evas_Coord x, y, w, h; Evas_Coord x, y, w, h;
for (i = 0; i < MANYNUM; i++) for (i = 0; i < MANYNUM; i++)
{ {
eo_do(o_images[i], evas_obj_size_get(&w, &h)); eo_do(images[i], evas_obj_size_get(&w, &h));
x = (win_w / 2) - (w / 2); x = (win_w / 2) - (w / 2);
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (win_w / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (win_w / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (win_h / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (win_h / 2);
eo_do(o_images[i], evas_obj_position_set(x, y)); eo_do(images[i], evas_obj_position_set(x, y));
} }
FPS_STD(NAME); FPS_STD(NAME);
} }

View File

@ -18,7 +18,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -28,7 +28,7 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++) for (i = 0; i < OBNUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
efl_file_set(build_path("logo.png"), NULL), efl_file_set(build_path("logo.png"), NULL),
efl_image_smooth_scale_set(0), efl_image_smooth_scale_set(0),
@ -41,7 +41,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -59,7 +59,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i], eo_do(images[i],
evas_obj_position_set(x, y), evas_obj_position_set(x, y),
evas_obj_size_set(w, h), evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h)); evas_obj_image_fill_set(0, 0, w, h));

View File

@ -13,11 +13,12 @@
#include "main.h" #include "main.h"
#define EXPEDITE_CXX_TEST_IMPL #define EXPEDITE_CXX_TEST_IMPL
#include <image_blend_nearest_scaled_capi.h>
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -27,7 +28,7 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++) for (i = 0; i < OBNUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
efl_file_set(build_path("logo.png"), NULL), efl_file_set(build_path("logo.png"), NULL),
efl_image_smooth_scale_set(0), efl_image_smooth_scale_set(0),
@ -40,7 +41,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -58,7 +59,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i], eo_do(images[i],
evas_obj_position_set(x, y), evas_obj_position_set(x, y),
evas_obj_size_set(w, h), evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h)); evas_obj_image_fill_set(0, 0, w, h));

View File

@ -18,7 +18,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -28,7 +28,7 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++) for (i = 0; i < OBNUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
efl_file_set(build_path("image.png"), NULL), efl_file_set(build_path("image.png"), NULL),
efl_image_smooth_scale_set(0), efl_image_smooth_scale_set(0),
@ -41,7 +41,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -59,7 +59,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i], eo_do(images[i],
evas_obj_position_set(x, y), evas_obj_position_set(x, y),
evas_obj_size_set(w, h), evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h)); evas_obj_image_fill_set(0, 0, w, h));

View File

@ -18,7 +18,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -28,7 +28,7 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++) for (i = 0; i < OBNUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
efl_file_set(build_path("image.png"), NULL), efl_file_set(build_path("image.png"), NULL),
efl_image_smooth_scale_set(0), efl_image_smooth_scale_set(0),
@ -41,7 +41,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -59,7 +59,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i], eo_do(images[i],
evas_obj_position_set(x, y), evas_obj_position_set(x, y),
evas_obj_size_set(w, h), evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h)); evas_obj_image_fill_set(0, 0, w, h));

View File

@ -18,7 +18,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -29,7 +29,7 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++) for (i = 0; i < OBNUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
if (i < (OBNUM / 2)) if (i < (OBNUM / 2))
{ {
eo_do(o, efl_file_set(build_path("logo.png"), NULL)); eo_do(o, efl_file_set(build_path("logo.png"), NULL));
@ -56,7 +56,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -74,7 +74,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
eo_do(o_images[i], evas_obj_position_set(x, y)); eo_do(images[i], evas_obj_position_set(x, y));
} }
} }
FPS_STD(NAME); FPS_STD(NAME);

View File

@ -21,7 +21,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -32,7 +32,7 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++) for (i = 0; i < OBNUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
if (i < (OBNUM / 2)) if (i < (OBNUM / 2))
{ {
eo_do(o, efl_file_set(PACKAGE_DATA_DIR"/data/logo.png", NULL)); eo_do(o, efl_file_set(PACKAGE_DATA_DIR"/data/logo.png", NULL));
@ -59,7 +59,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -77,7 +77,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
eo_do(o_images[i], evas_obj_position_set(x, y)); eo_do(images[i], evas_obj_position_set(x, y));
} }
} }
FPS_STD(NAME); FPS_STD(NAME);

View File

@ -21,7 +21,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -32,7 +32,7 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++) for (i = 0; i < OBNUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
if (i < (OBNUM / 2)) if (i < (OBNUM / 2))
{ {
eo_do(o, efl_file_set(build_path("logo.png"), NULL)); eo_do(o, efl_file_set(build_path("logo.png"), NULL));
@ -59,7 +59,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -77,7 +77,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
eo_do(o_images[i], evas_obj_position_set(x, y)); eo_do(images[i], evas_obj_position_set(x, y));
} }
} }
FPS_STD(NAME); FPS_STD(NAME);

View File

@ -23,7 +23,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -34,7 +34,7 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++) for (i = 0; i < OBNUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
if (i < (OBNUM / 2)) if (i < (OBNUM / 2))
{ {
eo_do(o, efl_file_set(build_path("logo.png"), NULL)); eo_do(o, efl_file_set(build_path("logo.png"), NULL));
@ -61,7 +61,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -79,7 +79,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
eo_do(o_images[i], evas_obj_position_set(x, y)); eo_do(images[i], evas_obj_position_set(x, y));
} }
} }
FPS_STD(NAME); FPS_STD(NAME);

View File

@ -20,7 +20,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -31,7 +31,7 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++) for (i = 0; i < OBNUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
if (i & 0x1) if (i & 0x1)
{ {
eo_do(o, efl_file_set(build_path("logo.png"), NULL)); eo_do(o, efl_file_set(build_path("logo.png"), NULL));
@ -58,7 +58,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -76,7 +76,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
eo_do(o_images[i], evas_obj_position_set(x, y)); eo_do(images[i], evas_obj_position_set(x, y));
} }
} }
FPS_STD(NAME); FPS_STD(NAME);

View File

@ -23,7 +23,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -34,7 +34,7 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++) for (i = 0; i < OBNUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
if (i & 0x1) if (i & 0x1)
{ {
eo_do(o, efl_file_set(build_path("logo.png"), NULL)); eo_do(o, efl_file_set(build_path("logo.png"), NULL));
@ -61,7 +61,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -79,7 +79,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
eo_do(o_images[i], evas_obj_position_set(x, y)); eo_do(images[i], evas_obj_position_set(x, y));
} }
} }
FPS_STD(NAME); FPS_STD(NAME);

View File

@ -23,7 +23,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -34,7 +34,7 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++) for (i = 0; i < OBNUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
if (i & 0x1) if (i & 0x1)
{ {
eo_do(o, efl_file_set(build_path("logo.png"), NULL)); eo_do(o, efl_file_set(build_path("logo.png"), NULL));
@ -61,7 +61,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -79,7 +79,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
eo_do(o_images[i], evas_obj_position_set(x, y)); eo_do(images[i], evas_obj_position_set(x, y));
} }
} }
FPS_STD(NAME); FPS_STD(NAME);

View File

@ -23,7 +23,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -34,7 +34,7 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++) for (i = 0; i < OBNUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
if (i & 0x1) if (i & 0x1)
{ {
eo_do(o, efl_file_set(build_path("logo.png"), NULL)); eo_do(o, efl_file_set(build_path("logo.png"), NULL));
@ -61,7 +61,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -79,7 +79,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
eo_do(o_images[i], evas_obj_position_set(x, y)); eo_do(images[i], evas_obj_position_set(x, y));
} }
} }
FPS_STD(NAME); FPS_STD(NAME);

View File

@ -20,7 +20,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -31,7 +31,7 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++) for (i = 0; i < OBNUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
if (i > (OBNUM / 2)) if (i > (OBNUM / 2))
{ {
eo_do(o, efl_file_set(build_path("logo.png"), NULL)); eo_do(o, efl_file_set(build_path("logo.png"), NULL));
@ -58,7 +58,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -76,7 +76,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
eo_do(o_images[i], evas_obj_position_set(x, y)); eo_do(images[i], evas_obj_position_set(x, y));
} }
} }
FPS_STD(NAME); FPS_STD(NAME);

View File

@ -23,7 +23,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -34,7 +34,7 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++) for (i = 0; i < OBNUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
if (i > (OBNUM / 2)) if (i > (OBNUM / 2))
{ {
eo_do(o, efl_file_set(build_path("logo.png"), NULL)); eo_do(o, efl_file_set(build_path("logo.png"), NULL));
@ -61,7 +61,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -79,7 +79,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
eo_do(o_images[i], evas_obj_position_set(x, y)); eo_do(images[i], evas_obj_position_set(x, y));
} }
} }
FPS_STD(NAME); FPS_STD(NAME);

View File

@ -21,7 +21,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -32,7 +32,7 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++) for (i = 0; i < OBNUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
if (i > (OBNUM / 2)) if (i > (OBNUM / 2))
{ {
eo_do(o, efl_file_set(build_path("logo.png"), NULL)); eo_do(o, efl_file_set(build_path("logo.png"), NULL));
@ -59,7 +59,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -77,7 +77,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
eo_do(o_images[i], evas_obj_position_set(x, y)); eo_do(images[i], evas_obj_position_set(x, y));
} }
} }
FPS_STD(NAME); FPS_STD(NAME);

View File

@ -22,7 +22,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -33,7 +33,7 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++) for (i = 0; i < OBNUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
if (i > (OBNUM / 2)) if (i > (OBNUM / 2))
{ {
eo_do(o, efl_file_set(build_path("logo.png"), NULL)); eo_do(o, efl_file_set(build_path("logo.png"), NULL));
@ -60,7 +60,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -78,7 +78,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
eo_do(o_images[i], evas_obj_position_set(x, y)); eo_do(images[i], evas_obj_position_set(x, y));
} }
} }
FPS_STD(NAME); FPS_STD(NAME);

View File

@ -19,7 +19,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -29,7 +29,7 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++) for (i = 0; i < OBNUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
efl_file_set(build_path("logo.png"), NULL), efl_file_set(build_path("logo.png"), NULL),
efl_image_smooth_scale_set(1), efl_image_smooth_scale_set(1),
@ -42,7 +42,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -60,7 +60,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i], eo_do(images[i],
evas_obj_position_set(x, y), evas_obj_position_set(x, y),
evas_obj_size_set(w, h), evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h)); evas_obj_image_fill_set(0, 0, w, h));

View File

@ -17,7 +17,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -27,7 +27,7 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++) for (i = 0; i < OBNUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
efl_file_set(build_path("logo.png"), NULL), efl_file_set(build_path("logo.png"), NULL),
efl_image_smooth_scale_set(1), efl_image_smooth_scale_set(1),
@ -40,7 +40,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -58,7 +58,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i], eo_do(images[i],
evas_obj_position_set(x, y), evas_obj_position_set(x, y),
evas_obj_size_set(w, h), evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h)); evas_obj_image_fill_set(0, 0, w, h));

View File

@ -17,7 +17,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -27,7 +27,7 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++) for (i = 0; i < OBNUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
efl_file_set(build_path("image.png"), NULL), efl_file_set(build_path("image.png"), NULL),
efl_image_smooth_scale_set(1), efl_image_smooth_scale_set(1),
@ -40,7 +40,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -58,7 +58,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i], eo_do(images[i],
evas_obj_position_set(x, y), evas_obj_position_set(x, y),
evas_obj_size_set(w, h), evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h)); evas_obj_image_fill_set(0, 0, w, h));

View File

@ -17,7 +17,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -27,7 +27,7 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++) for (i = 0; i < OBNUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
efl_file_set(build_path("image.png"), NULL), efl_file_set(build_path("image.png"), NULL),
efl_image_smooth_scale_set(1), efl_image_smooth_scale_set(1),
@ -40,7 +40,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -58,7 +58,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i], eo_do(images[i],
evas_obj_position_set(x, y), evas_obj_position_set(x, y),
evas_obj_size_set(w, h), evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h)); evas_obj_image_fill_set(0, 0, w, h));

View File

@ -17,7 +17,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -27,7 +27,7 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++) for (i = 0; i < OBNUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
efl_file_set(build_path("bar.png"), NULL), efl_file_set(build_path("bar.png"), NULL),
evas_obj_image_border_set(6, 6, 6, 6), evas_obj_image_border_set(6, 6, 6, 6),
@ -41,7 +41,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -59,7 +59,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i], eo_do(images[i],
evas_obj_position_set(x, y), evas_obj_position_set(x, y),
evas_obj_size_set(w, h), evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h)); evas_obj_image_fill_set(0, 0, w, h));

View File

@ -17,7 +17,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -27,7 +27,7 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++) for (i = 0; i < OBNUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
efl_file_set(build_path("logo.png"), NULL), efl_file_set(build_path("logo.png"), NULL),
evas_obj_image_fill_set(0, 0, 120, 160), evas_obj_image_fill_set(0, 0, 120, 160),
@ -43,7 +43,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -59,7 +59,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
eo_do(o_images[i], evas_obj_position_set(x, y)); eo_do(images[i], evas_obj_position_set(x, y));
} }
FPS_STD(NAME); FPS_STD(NAME);
} }

View File

@ -17,7 +17,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -27,7 +27,7 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++) for (i = 0; i < OBNUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
efl_file_set(build_path("logo.png"), NULL), efl_file_set(build_path("logo.png"), NULL),
evas_obj_image_fill_set(0, 0, 120, 160), evas_obj_image_fill_set(0, 0, 120, 160),
@ -41,7 +41,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -57,7 +57,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
eo_do(o_images[i], evas_obj_position_set(x, y)); eo_do(images[i], evas_obj_position_set(x, y));
} }
FPS_STD(NAME); FPS_STD(NAME);
} }

View File

@ -18,7 +18,7 @@
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[2]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -26,7 +26,7 @@ static void _setup(void)
Evas_Object *o; Evas_Object *o;
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[0] = o; images[0] = o;
eo_do(o, eo_do(o,
efl_file_set(build_path("im1.png"), NULL), efl_file_set(build_path("im1.png"), NULL),
evas_obj_image_fill_set(0, 0, 720, 420), evas_obj_image_fill_set(0, 0, 720, 420),
@ -34,7 +34,7 @@ static void _setup(void)
evas_obj_visibility_set(EINA_TRUE)); evas_obj_visibility_set(EINA_TRUE));
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[1] = o; images[1] = o;
eo_do(o, eo_do(o,
efl_file_set(build_path("im2.png"), NULL), efl_file_set(build_path("im2.png"), NULL),
evas_obj_image_fill_set(0, 0, 720, 420), evas_obj_image_fill_set(0, 0, 720, 420),
@ -48,7 +48,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < 2; i++) eo_del(o_images[i]); for (i = 0; i < 2; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -58,7 +58,7 @@ static void _loop(double t, int f)
a = f & 0x1f; a = f & 0x1f;
a = ((a << 3) | (a >> 2)) & 0xff; a = ((a << 3) | (a >> 2)) & 0xff;
eo_do(o_images[1], evas_obj_color_set(a, a, a, a)); eo_do(images[1], evas_obj_color_set(a, a, a, a));
FPS_STD(NAME); FPS_STD(NAME);
} }

View File

@ -18,7 +18,7 @@
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[1]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -28,7 +28,7 @@ static void _setup(void)
for (i = 0; i < 1; i++) for (i = 0; i < 1; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC), evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC),
evas_obj_image_colorspace_set(EVAS_COLORSPACE_ARGB8888), evas_obj_image_colorspace_set(EVAS_COLORSPACE_ARGB8888),
@ -45,7 +45,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < 1; i++) eo_del(o_images[i]); for (i = 0; i < 1; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -61,7 +61,7 @@ static void _loop(double t, int f)
h = 480; h = 480;
x = (win_w / 2) - (w / 2); x = (win_w / 2) - (w / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
eo_do(o_images[i], eo_do(images[i],
evas_obj_position_set(x, y), evas_obj_position_set(x, y),
evas_obj_size_set(w, h), evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h), evas_obj_image_fill_set(0, 0, w, h),
@ -78,7 +78,7 @@ static void _loop(double t, int f)
} }
p += (st - w); p += (st - w);
} }
eo_do(o_images[i], eo_do(images[i],
evas_obj_image_data_set(data), evas_obj_image_data_set(data),
evas_obj_image_data_update_add( 0, 0, w, h)); evas_obj_image_data_update_add( 0, 0, w, h));
} }

View File

@ -18,7 +18,7 @@
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[1]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -28,7 +28,7 @@ static void _setup(void)
for (i = 0; i < 1; i++) for (i = 0; i < 1; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC), evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC),
evas_obj_image_colorspace_set(EVAS_COLORSPACE_ARGB8888), evas_obj_image_colorspace_set(EVAS_COLORSPACE_ARGB8888),
@ -45,7 +45,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < 1; i++) eo_del(o_images[i]); for (i = 0; i < 1; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -61,7 +61,7 @@ static void _loop(double t, int f)
h = 480; h = 480;
x = (win_w / 2) - (w / 2); x = (win_w / 2) - (w / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
eo_do(o_images[i], eo_do(images[i],
evas_obj_position_set(x, y), evas_obj_position_set(x, y),
evas_obj_size_set(w, h), evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h), evas_obj_image_fill_set(0, 0, w, h),
@ -89,7 +89,7 @@ static void _loop(double t, int f)
} }
p += (st - w); p += (st - w);
} }
eo_do(o_images[i], eo_do(images[i],
evas_obj_image_data_set(data), evas_obj_image_data_set(data),
evas_obj_image_data_update_add( 0, 0, w, h)); evas_obj_image_data_update_add( 0, 0, w, h));
} }

View File

@ -18,7 +18,7 @@
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[1]; static efl::eina::list<evas::image> images;
static unsigned char *yp = NULL, *up = NULL, *vp = NULL; static unsigned char *yp = NULL, *up = NULL, *vp = NULL;
/* setup */ /* setup */
@ -31,7 +31,7 @@ static void _setup(void)
for (i = 0; i < 1; i++) for (i = 0; i < 1; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC), evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC),
evas_obj_image_colorspace_set(EVAS_COLORSPACE_YCBCR422P601_PL), evas_obj_image_colorspace_set(EVAS_COLORSPACE_YCBCR422P601_PL),
@ -51,7 +51,7 @@ static void _setup(void)
fread(vp, 320 * 240, 1, f); fread(vp, 320 * 240, 1, f);
fclose(f); fclose(f);
} }
data = evas_object_image_data_get(o_images[i], 1); data = evas_object_image_data_get(images[i], 1);
lp = data; lp = data;
for (y = 0; y < 480; y++) for (y = 0; y < 480; y++)
{ {
@ -68,7 +68,7 @@ static void _setup(void)
*lp = vp + (y * 320); *lp = vp + (y * 320);
lp++; lp++;
} }
eo_do(o_images[i], evas_obj_image_data_set(data)); eo_do(images[i], evas_obj_image_data_set(data));
} }
done = 0; done = 0;
} }
@ -77,7 +77,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < 1; i++) eo_del(o_images[i]); for (i = 0; i < 1; i++) eo_del(images[i]);
free(yp); free(yp);
free(up); free(up);
free(vp); free(vp);
@ -94,7 +94,7 @@ static void _loop(double t, int f)
h = 480; h = 480;
x = (win_w / 2) - (w / 2); x = (win_w / 2) - (w / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
eo_do(o_images[i], eo_do(images[i],
evas_obj_position_set(x, y), evas_obj_position_set(x, y),
evas_obj_size_set(w, h), evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h), evas_obj_image_fill_set(0, 0, w, h),

View File

@ -18,7 +18,7 @@
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[1]; static efl::eina::list<evas::image> images;
static unsigned char *yp = NULL, *up = NULL, *vp = NULL; static unsigned char *yp = NULL, *up = NULL, *vp = NULL;
/* setup */ /* setup */
@ -31,7 +31,7 @@ static void _setup(void)
for (i = 0; i < 1; i++) for (i = 0; i < 1; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC), evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC),
evas_obj_image_colorspace_set(EVAS_COLORSPACE_YCBCR422P601_PL), evas_obj_image_colorspace_set(EVAS_COLORSPACE_YCBCR422P601_PL),
@ -52,7 +52,7 @@ static void _setup(void)
fread(vp, 320 * 240, 1, f); fread(vp, 320 * 240, 1, f);
fclose(f); fclose(f);
} }
data = evas_object_image_data_get(o_images[i], 1); data = evas_object_image_data_get(images[i], 1);
lp = data; lp = data;
for (y = 0; y < 480; y++) for (y = 0; y < 480; y++)
{ {
@ -69,7 +69,7 @@ static void _setup(void)
*lp = vp + (y * 320); *lp = vp + (y * 320);
lp++; lp++;
} }
eo_do(o_images[i], evas_obj_image_data_set(data)); eo_do(images[i], evas_obj_image_data_set(data));
} }
done = 0; done = 0;
} }
@ -78,7 +78,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < 1; i++) eo_del(o_images[i]); for (i = 0; i < 1; i++) eo_del(images[i]);
free(yp); free(yp);
free(up); free(up);
free(vp); free(vp);
@ -103,7 +103,7 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2)); evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i], eo_do(images[i],
evas_obj_map_enable_set(1), evas_obj_map_enable_set(1),
evas_obj_map_set(m)); evas_obj_map_set(m));
} }

View File

@ -18,7 +18,7 @@
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[1]; static efl::eina::list<evas::image> images;
static unsigned char *yp = NULL, *up = NULL, *vp = NULL; static unsigned char *yp = NULL, *up = NULL, *vp = NULL;
/* setup */ /* setup */
@ -31,7 +31,7 @@ static void _setup(void)
for (i = 0; i < 1; i++) for (i = 0; i < 1; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC), evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC),
evas_obj_image_colorspace_set(EVAS_COLORSPACE_YCBCR422P601_PL), evas_obj_image_colorspace_set(EVAS_COLORSPACE_YCBCR422P601_PL),
@ -51,7 +51,7 @@ static void _setup(void)
fread(vp, 320 * 240, 1, f); fread(vp, 320 * 240, 1, f);
fclose(f); fclose(f);
} }
data = evas_object_image_data_get(o_images[i], 1); data = evas_object_image_data_get(images[i], 1);
lp = data; lp = data;
for (y = 0; y < 480; y++) for (y = 0; y < 480; y++)
{ {
@ -68,7 +68,7 @@ static void _setup(void)
*lp = vp + (y * 320); *lp = vp + (y * 320);
lp++; lp++;
} }
eo_do(o_images[i], evas_obj_image_data_set(data)); eo_do(images[i], evas_obj_image_data_set(data));
} }
done = 0; done = 0;
} }
@ -77,7 +77,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < 1; i++) eo_del(o_images[i]); for (i = 0; i < 1; i++) eo_del(images[i]);
free(yp); free(yp);
free(up); free(up);
free(vp); free(vp);
@ -101,7 +101,7 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2)); evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i], eo_do(images[i],
evas_obj_map_enable_set(1), evas_obj_map_enable_set(1),
evas_obj_map_set(m)); evas_obj_map_set(m));
} }

View File

@ -18,7 +18,7 @@
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[1]; static efl::eina::list<evas::image> images;
static unsigned char *yp = NULL, *up = NULL, *vp = NULL; static unsigned char *yp = NULL, *up = NULL, *vp = NULL;
/* setup */ /* setup */
@ -31,7 +31,7 @@ static void _setup(void)
for (i = 0; i < 1; i++) for (i = 0; i < 1; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC), evas_obj_image_content_hint_set(EVAS_IMAGE_CONTENT_HINT_DYNAMIC),
evas_obj_image_colorspace_set(EVAS_COLORSPACE_YCBCR422P601_PL), evas_obj_image_colorspace_set(EVAS_COLORSPACE_YCBCR422P601_PL),
@ -51,7 +51,7 @@ static void _setup(void)
fread(vp, 320 * 240, 1, f); fread(vp, 320 * 240, 1, f);
fclose(f); fclose(f);
} }
data = evas_object_image_data_get(o_images[i], 1); data = evas_object_image_data_get(images[i], 1);
if (data) if (data)
{ {
lp = data; lp = data;
@ -70,7 +70,7 @@ static void _setup(void)
*lp = vp + (y * 320); *lp = vp + (y * 320);
lp++; lp++;
} }
eo_do(o_images[i], eo_do(images[i],
evas_obj_image_data_set(data), evas_obj_image_data_set(data),
evas_obj_image_data_update_add( 0, 0, 320, 480)); evas_obj_image_data_update_add( 0, 0, 320, 480));
} }
@ -82,7 +82,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < 1; i++) eo_del(o_images[i]); for (i = 0; i < 1; i++) eo_del(images[i]);
free(yp); free(yp);
free(up); free(up);
free(vp); free(vp);
@ -101,7 +101,7 @@ static void _loop(double t, int f)
h = 480; h = 480;
x = (win_w / 2) - (w / 2); x = (win_w / 2) - (w / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
eo_do(o_images[i], eo_do(images[i],
evas_obj_position_set(x, y), evas_obj_position_set(x, y),
evas_obj_size_set(w, h), evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h)); evas_obj_image_fill_set(0, 0, w, h));
@ -112,8 +112,8 @@ static void _loop(double t, int f)
w &= ~0x1; w &= ~0x1;
eo_do(o_images[i], evas_obj_image_size_set(w, 480)); eo_do(images[i], evas_obj_image_size_set(w, 480));
data = evas_object_image_data_get(o_images[i], 1); data = evas_object_image_data_get(images[i], 1);
if (data) if (data)
{ {
lp = data; lp = data;
@ -132,7 +132,7 @@ static void _loop(double t, int f)
*lp = vp + (y * 320); *lp = vp + (y * 320);
lp++; lp++;
} }
eo_do(o_images[i], eo_do(images[i],
evas_obj_image_data_set(data), evas_obj_image_data_set(data),
evas_obj_image_data_update_add( 0, 0, w, 480)); evas_obj_image_data_update_add( 0, 0, w, 480));
} }

View File

@ -20,7 +20,7 @@ static int done = 0;
#define CNUM 48 #define CNUM 48
/* private data */ /* private data */
static Evas_Object *o_images[CNUM]; static efl::eina::list<evas::image> images;
static Evas_Object *o_reflec[CNUM]; static Evas_Object *o_reflec[CNUM];
/* setup */ /* setup */
@ -33,7 +33,7 @@ static void _setup(void)
char buf[256]; char buf[256];
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
snprintf(buf, sizeof(buf), "cube%i.png", (i % 6) + 1); snprintf(buf, sizeof(buf), "cube%i.png", (i % 6) + 1);
eo_do(o, eo_do(o,
efl_file_set(build_path(buf), NULL), efl_file_set(build_path(buf), NULL),
@ -61,7 +61,7 @@ static void _cleanup(void)
int i; int i;
for (i = 0; i < CNUM; i++) for (i = 0; i < CNUM; i++)
{ {
eo_del(o_images[i]); eo_del(images[i]);
eo_del(o_reflec[i]); eo_del(o_reflec[i]);
} }
} }
@ -133,12 +133,12 @@ static void _loop(double t, int f)
if (c <= 0) if (c <= 0)
{ {
eo_do(o_images[i], evas_obj_raise()); eo_do(images[i], evas_obj_raise());
eo_do(o_reflec[i], evas_obj_raise()); eo_do(o_reflec[i], evas_obj_raise());
} }
else else
{ {
eo_do(o_images[i], evas_obj_lower()); eo_do(images[i], evas_obj_lower());
eo_do(o_reflec[i], evas_obj_lower()); eo_do(o_reflec[i], evas_obj_lower());
} }
@ -162,7 +162,7 @@ static void _loop(double t, int f)
x + (w / 2), y + (h / 2), 0); x + (w / 2), y + (h / 2), 0);
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), -256, 512); evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), -256, 512);
eo_do(o_images[i], eo_do(images[i],
evas_obj_map_enable_set(1), evas_obj_map_enable_set(1),
evas_obj_map_set(m)); evas_obj_map_set(m));

View File

@ -18,7 +18,7 @@
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -28,7 +28,7 @@ static void _setup(void)
for (i = 0; i < (OBNUM / 2); i++) for (i = 0; i < (OBNUM / 2); i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
efl_file_set(build_path("logo.png"), NULL), efl_file_set(build_path("logo.png"), NULL),
evas_obj_image_fill_set(0, 0, 120, 160), evas_obj_image_fill_set(0, 0, 120, 160),
@ -43,7 +43,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]); for (i = 0; i < (OBNUM / 2); i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -72,7 +72,7 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2)); evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i], eo_do(images[i],
evas_obj_map_enable_set(1), evas_obj_map_enable_set(1),
evas_obj_map_set(m)); evas_obj_map_set(m));
} }

View File

@ -18,7 +18,7 @@
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -28,7 +28,7 @@ static void _setup(void)
for (i = 0; i < (OBNUM / 2); i++) for (i = 0; i < (OBNUM / 2); i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
efl_file_set(build_path("image.png"), NULL), efl_file_set(build_path("image.png"), NULL),
evas_obj_image_fill_set(0, 0, 120, 160), evas_obj_image_fill_set(0, 0, 120, 160),
@ -43,7 +43,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]); for (i = 0; i < (OBNUM / 2); i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -72,7 +72,7 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2)); evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i], eo_do(images[i],
evas_obj_map_enable_set(1), evas_obj_map_enable_set(1),
evas_obj_map_set(m)); evas_obj_map_set(m));
} }

View File

@ -18,7 +18,7 @@
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -28,7 +28,7 @@ static void _setup(void)
for (i = 0; i < (OBNUM / 2); i++) for (i = 0; i < (OBNUM / 2); i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
efl_file_set(build_path("logo.png"), NULL), efl_file_set(build_path("logo.png"), NULL),
evas_obj_image_fill_set(0, 0, 120, 160), evas_obj_image_fill_set(0, 0, 120, 160),
@ -42,7 +42,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]); for (i = 0; i < (OBNUM / 2); i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -70,7 +70,7 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2)); evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i], eo_do(images[i],
evas_obj_map_enable_set(1), evas_obj_map_enable_set(1),
evas_obj_map_set(m)); evas_obj_map_set(m));
} }

View File

@ -18,7 +18,7 @@
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -28,7 +28,7 @@ static void _setup(void)
for (i = 0; i < (OBNUM / 2); i++) for (i = 0; i < (OBNUM / 2); i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
efl_file_set(build_path("image.png"), NULL), efl_file_set(build_path("image.png"), NULL),
evas_obj_image_fill_set(0, 0, 120, 160), evas_obj_image_fill_set(0, 0, 120, 160),
@ -42,7 +42,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]); for (i = 0; i < (OBNUM / 2); i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -69,7 +69,7 @@ static void _loop(double t, int f)
evas_map_point_color_set(m, 3, 0, 0, 0, 0); evas_map_point_color_set(m, 3, 0, 0, 0, 0);
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2)); evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i], eo_do(images[i],
evas_obj_map_enable_set(1), evas_obj_map_enable_set(1),
evas_obj_map_set(m)); evas_obj_map_set(m));
} }

View File

@ -18,7 +18,7 @@
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -28,7 +28,7 @@ static void _setup(void)
for (i = 0; i < (OBNUM / 2); i++) for (i = 0; i < (OBNUM / 2); i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
efl_file_set(build_path("logo.png"), NULL), efl_file_set(build_path("logo.png"), NULL),
evas_obj_image_fill_set(0, 0, 120, 160), evas_obj_image_fill_set(0, 0, 120, 160),
@ -43,7 +43,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]); for (i = 0; i < (OBNUM / 2); i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -72,7 +72,7 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2)); evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i], eo_do(images[i],
evas_obj_map_enable_set(1), evas_obj_map_enable_set(1),
evas_obj_map_set(m)); evas_obj_map_set(m));
} }

View File

@ -18,7 +18,7 @@
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -28,7 +28,7 @@ static void _setup(void)
for (i = 0; i < (OBNUM / 2); i++) for (i = 0; i < (OBNUM / 2); i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
efl_file_set(build_path("image.png"), NULL), efl_file_set(build_path("image.png"), NULL),
evas_obj_image_fill_set(0, 0, 120, 160), evas_obj_image_fill_set(0, 0, 120, 160),
@ -43,7 +43,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]); for (i = 0; i < (OBNUM / 2); i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -72,7 +72,7 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2)); evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i], eo_do(images[i],
evas_obj_map_enable_set(1), evas_obj_map_enable_set(1),
evas_obj_map_set(m)); evas_obj_map_set(m));
} }

View File

@ -18,7 +18,7 @@
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -28,7 +28,7 @@ static void _setup(void)
for (i = 0; i < (OBNUM / 2); i++) for (i = 0; i < (OBNUM / 2); i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
efl_file_set(build_path("logo.png"), NULL), efl_file_set(build_path("logo.png"), NULL),
evas_obj_image_fill_set(0, 0, 120, 160), evas_obj_image_fill_set(0, 0, 120, 160),
@ -42,7 +42,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]); for (i = 0; i < (OBNUM / 2); i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -70,7 +70,7 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2)); evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i], eo_do(images[i],
evas_obj_map_enable_set(1), evas_obj_map_enable_set(1),
evas_obj_map_set(m)); evas_obj_map_set(m));
} }

View File

@ -18,7 +18,7 @@
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -28,7 +28,7 @@ static void _setup(void)
for (i = 0; i < (OBNUM / 2); i++) for (i = 0; i < (OBNUM / 2); i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
efl_file_set(build_path("image.png"), NULL), efl_file_set(build_path("image.png"), NULL),
evas_obj_image_fill_set(0, 0, 120, 160), evas_obj_image_fill_set(0, 0, 120, 160),
@ -42,7 +42,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]); for (i = 0; i < (OBNUM / 2); i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -70,7 +70,7 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2)); evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i], eo_do(images[i],
evas_obj_map_enable_set(1), evas_obj_map_enable_set(1),
evas_obj_map_set(m)); evas_obj_map_set(m));
} }

View File

@ -18,7 +18,7 @@
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -28,7 +28,7 @@ static void _setup(void)
for (i = 0; i < (OBNUM / 2); i++) for (i = 0; i < (OBNUM / 2); i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
efl_file_set(build_path("logo.png"), NULL), efl_file_set(build_path("logo.png"), NULL),
evas_obj_image_fill_set(0, 0, 120, 160), evas_obj_image_fill_set(0, 0, 120, 160),
@ -43,7 +43,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]); for (i = 0; i < (OBNUM / 2); i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -67,7 +67,7 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2)); evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i], eo_do(images[i],
evas_obj_map_enable_set(1), evas_obj_map_enable_set(1),
evas_obj_map_set(m)); evas_obj_map_set(m));
} }

View File

@ -18,7 +18,7 @@
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -28,7 +28,7 @@ static void _setup(void)
for (i = 0; i < (OBNUM / 2); i++) for (i = 0; i < (OBNUM / 2); i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
efl_file_set(build_path("image.png"), NULL), efl_file_set(build_path("image.png"), NULL),
evas_obj_image_fill_set(0, 0, 120, 160), evas_obj_image_fill_set(0, 0, 120, 160),
@ -43,7 +43,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]); for (i = 0; i < (OBNUM / 2); i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -67,7 +67,7 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2)); evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i], eo_do(images[i],
evas_obj_map_enable_set(1), evas_obj_map_enable_set(1),
evas_obj_map_set(m)); evas_obj_map_set(m));
} }

View File

@ -18,7 +18,7 @@
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -28,7 +28,7 @@ static void _setup(void)
for (i = 0; i < (OBNUM / 2); i++) for (i = 0; i < (OBNUM / 2); i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, efl_file_set(build_path("logo.png"), NULL), eo_do(o, efl_file_set(build_path("logo.png"), NULL),
evas_obj_image_fill_set(0, 0, 120, 160), evas_obj_image_fill_set(0, 0, 120, 160),
evas_obj_size_set(120, 160), evas_obj_size_set(120, 160),
@ -41,7 +41,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]); for (i = 0; i < (OBNUM / 2); i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -64,7 +64,7 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2)); evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i], evas_obj_map_enable_set(1), eo_do(images[i], evas_obj_map_enable_set(1),
evas_obj_map_set(m)); evas_obj_map_set(m));
} }
FPS_STD(NAME); FPS_STD(NAME);

View File

@ -18,7 +18,7 @@
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -28,7 +28,7 @@ static void _setup(void)
for (i = 0; i < (OBNUM / 2); i++) for (i = 0; i < (OBNUM / 2); i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
efl_file_set(build_path("image.png"), NULL), efl_file_set(build_path("image.png"), NULL),
evas_obj_image_fill_set(0, 0, 120, 160), evas_obj_image_fill_set(0, 0, 120, 160),
@ -42,7 +42,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]); for (i = 0; i < (OBNUM / 2); i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -65,7 +65,7 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2)); evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
eo_do(o_images[i], eo_do(images[i],
evas_obj_map_enable_set(1), evas_obj_map_enable_set(1),
evas_obj_map_set(m)); evas_obj_map_set(m));
} }

View File

@ -18,7 +18,7 @@
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[1]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -28,7 +28,7 @@ static void _setup(void)
for (i = 0; i < 1; i++) for (i = 0; i < 1; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, efl_file_set(build_path("tp.png"), NULL), eo_do(o, efl_file_set(build_path("tp.png"), NULL),
evas_obj_image_fill_set(0, 0, 640, 480), evas_obj_image_fill_set(0, 0, 640, 480),
evas_obj_size_set(640, 480), evas_obj_size_set(640, 480),
@ -41,7 +41,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < 1; i++) eo_del(o_images[i]); for (i = 0; i < 1; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -57,7 +57,7 @@ static void _loop(double t, int f)
h *= (f / 100.0) * 4.0; h *= (f / 100.0) * 4.0;
x = (win_w / 2) - (w / 2); x = (win_w / 2) - (w / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
eo_do(o_images[i], evas_obj_position_set(x, y), eo_do(images[i], evas_obj_position_set(x, y),
evas_obj_size_set(w, h), evas_obj_size_set(w, h),
evas_obj_image_fill_set(0, 0, w, h)); evas_obj_image_fill_set(0, 0, w, h));
} }

View File

@ -17,7 +17,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -30,7 +30,7 @@ static void _setup(void)
int r, g, b, a; int r, g, b, a;
o = eo_add(EVAS_LINE_CLASS, G_evas); o = eo_add(EVAS_LINE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
a = (rnd()&0xff) / 2; a = (rnd()&0xff) / 2;
r = ((rnd()&0xff) * a) / 255; r = ((rnd()&0xff) * a) / 255;
g = ((rnd()&0xff) * a) / 255; g = ((rnd()&0xff) * a) / 255;
@ -52,7 +52,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
#define PI (double) 3.141592654 #define PI (double) 3.141592654
@ -93,7 +93,7 @@ static void _loop(double t, int f)
for (i = 0; i < OBNUM; i++) for (i = 0; i < OBNUM; i++)
{ {
o = o_images[i]; o = images[i];
eo_do(o, evas_obj_line_xy_get(&ox1, &oy1, &ox2, &oy2)); eo_do(o, evas_obj_line_xy_get(&ox1, &oy1, &ox2, &oy2));
_rotate_point(&ox1, &oy1, i); _rotate_point(&ox1, &oy1, i);

View File

@ -17,7 +17,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -32,12 +32,12 @@ static void _setup(void)
evas_obj_size_set(120, 160), evas_obj_size_set(120, 160),
evas_obj_visibility_set(EINA_TRUE)); evas_obj_visibility_set(EINA_TRUE));
src = o; src = o;
o_images[0] = src; images[0] = src;
for (i = 1; i < OBNUM; i++) for (i = 1; i < OBNUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, eo_do(o,
evas_obj_image_source_set(src), evas_obj_image_source_set(src),
evas_obj_size_set(120, 160), evas_obj_size_set(120, 160),
@ -51,7 +51,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -67,7 +67,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
eo_do(o_images[i], evas_obj_position_set(x, y)); eo_do(images[i], evas_obj_position_set(x, y));
} }
FPS_STD(NAME); FPS_STD(NAME);
} }

View File

@ -17,7 +17,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -35,7 +35,7 @@ static void _setup(void)
for (i = 0; i < OBNUM / 2; i++) for (i = 0; i < OBNUM / 2; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, evas_obj_image_source_set(src, NULL), eo_do(o, evas_obj_image_source_set(src, NULL),
evas_obj_size_set(120, 160), evas_obj_size_set(120, 160),
evas_obj_image_fill_set(0,0,120,160), evas_obj_image_fill_set(0,0,120,160),
@ -48,7 +48,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -64,7 +64,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
eo_do(o_images[i], evas_obj_position_set(x, y)); eo_do(images[i], evas_obj_position_set(x, y));
} }
FPS_STD(NAME); FPS_STD(NAME);
} }

View File

@ -14,7 +14,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -27,7 +27,7 @@ static void _setup(void)
int r, g, b, a; int r, g, b, a;
o = eo_add(EVAS_RECTANGLE_CLASS, G_evas); o = eo_add(EVAS_RECTANGLE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
a = rnd()&0xff; a = rnd()&0xff;
r = ((rnd()&0xff) * a) / 255; r = ((rnd()&0xff) * a) / 255;
g = ((rnd()&0xff) * a) / 255; g = ((rnd()&0xff) * a) / 255;
@ -43,7 +43,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -61,7 +61,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i], eo_do(images[i],
evas_obj_position_set(x, y), evas_obj_position_set(x, y),
evas_obj_size_set(w, h)); evas_obj_size_set(w, h));
} }

View File

@ -17,7 +17,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -30,7 +30,7 @@ static void _setup(void)
int r, g, b, a; int r, g, b, a;
o = eo_add(EVAS_RECTANGLE_CLASS, G_evas); o = eo_add(EVAS_RECTANGLE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
a = rnd()&0xff; a = rnd()&0xff;
r = ((rnd()&0xff) * a) / 255; r = ((rnd()&0xff) * a) / 255;
g = ((rnd()&0xff) * a) / 255; g = ((rnd()&0xff) * a) / 255;
@ -45,7 +45,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -63,7 +63,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 113)) / (36.7 * SLOW)) * (w0 / 2); x += sin((double)(f + (i * 113)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 228)) / (43.8 * SLOW)) * (h0 / 2); y += cos((double)(f + (i * 228)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i], evas_obj_position_set(x, y), eo_do(images[i], evas_obj_position_set(x, y),
evas_obj_size_set(w, h)); evas_obj_size_set(w, h));
} }
FPS_STD(NAME); FPS_STD(NAME);

View File

@ -14,7 +14,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -27,7 +27,7 @@ static void _setup(void)
int r, g, b, a; int r, g, b, a;
o = eo_add(EVAS_RECTANGLE_CLASS, G_evas); o = eo_add(EVAS_RECTANGLE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
a = 256 - (1 << ((rnd() % 8) + 1)); a = 256 - (1 << ((rnd() % 8) + 1));
if (a < 128) a = 128; if (a < 128) a = 128;
r = ((rnd()&0xff) * a) / 255; r = ((rnd()&0xff) * a) / 255;
@ -44,7 +44,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -62,7 +62,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i], eo_do(images[i],
evas_obj_position_set(x, y), evas_obj_position_set(x, y),
evas_obj_size_set(w, h)); evas_obj_size_set(w, h));
} }

View File

@ -17,7 +17,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -30,7 +30,7 @@ static void _setup(void)
int r, g, b, a; int r, g, b, a;
o = eo_add(EVAS_RECTANGLE_CLASS, G_evas); o = eo_add(EVAS_RECTANGLE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
a = 256 - (1 << ((rnd() % 8) + 1)); a = 256 - (1 << ((rnd() % 8) + 1));
if (a < 128) a = 128; if (a < 128) a = 128;
r = ((rnd()&0xff) * a) / 255; r = ((rnd()&0xff) * a) / 255;
@ -46,7 +46,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -64,7 +64,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 113)) / (36.7 * SLOW)) * (w0 / 2); x += sin((double)(f + (i * 113)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 228)) / (43.8 * SLOW)) * (h0 / 2); y += cos((double)(f + (i * 228)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i], evas_obj_position_set(x, y), eo_do(images[i], evas_obj_position_set(x, y),
evas_obj_size_set(w, h)); evas_obj_size_set(w, h));
} }
FPS_STD(NAME); FPS_STD(NAME);

View File

@ -14,7 +14,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -27,7 +27,7 @@ static void _setup(void)
int r, g, b, a; int r, g, b, a;
o = eo_add(EVAS_RECTANGLE_CLASS, G_evas); o = eo_add(EVAS_RECTANGLE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
a = 0xff; a = 0xff;
r = ((rnd()&0xff) * a) / 255; r = ((rnd()&0xff) * a) / 255;
g = ((rnd()&0xff) * a) / 255; g = ((rnd()&0xff) * a) / 255;
@ -43,7 +43,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -61,7 +61,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2); x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2); y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i], eo_do(images[i],
evas_obj_position_set(x, y), evas_obj_position_set(x, y),
evas_obj_size_set(w, h)); evas_obj_size_set(w, h));
} }

View File

@ -17,7 +17,7 @@
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
static Evas_Object *o_images[OBNUM]; static efl::eina::list<evas::image> images;
/* setup */ /* setup */
static void _setup(void) static void _setup(void)
@ -30,7 +30,7 @@ static void _setup(void)
int r, g, b, a; int r, g, b, a;
o = eo_add(EVAS_RECTANGLE_CLASS, G_evas); o = eo_add(EVAS_RECTANGLE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
a = 0xff; a = 0xff;
r = ((rnd()&0xff) * a) / 255; r = ((rnd()&0xff) * a) / 255;
g = ((rnd()&0xff) * a) / 255; g = ((rnd()&0xff) * a) / 255;
@ -45,7 +45,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]); for (i = 0; i < OBNUM; i++) eo_del(images[i]);
} }
/* loop - do things */ /* loop - do things */
@ -63,7 +63,7 @@ static void _loop(double t, int f)
x += sin((double)(f + (i * 113)) / (36.7 * SLOW)) * (w0 / 2); x += sin((double)(f + (i * 113)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2); y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 228)) / (43.8 * SLOW)) * (h0 / 2); y += cos((double)(f + (i * 228)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(o_images[i], evas_obj_position_set(x, y), eo_do(images[i], evas_obj_position_set(x, y),
evas_obj_size_set(w, h)); evas_obj_size_set(w, h));
} }
FPS_STD(NAME); FPS_STD(NAME);

View File

@ -16,7 +16,7 @@ static int done = 0;
/* private data */ /* private data */
#define NUM 512 #define NUM 512
#define ICON_SIZE 64 #define ICON_SIZE 64
static Evas_Object *o_images[NUM]; static efl::eina::list<evas::image> images;
static Evas_Object *o_texts[NUM]; static Evas_Object *o_texts[NUM];
static const char *icons[] = static const char *icons[] =
@ -47,7 +47,7 @@ static void _setup(void)
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, efl_file_set(build_path(icons[i % 13]), NULL), eo_do(o, efl_file_set(build_path(icons[i % 13]), NULL),
evas_obj_image_fill_set(0, 0, ICON_SIZE, ICON_SIZE), evas_obj_image_fill_set(0, 0, ICON_SIZE, ICON_SIZE),
evas_obj_size_set(ICON_SIZE, ICON_SIZE), evas_obj_size_set(ICON_SIZE, ICON_SIZE),
@ -71,7 +71,7 @@ static void _cleanup(void)
int i; int i;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_del(o_images[i]); eo_del(images[i]);
eo_del(o_texts[i]); eo_del(o_texts[i]);
} }
} }
@ -85,7 +85,7 @@ static void _loop(double t, int f)
y = 0 - f; y = 0 - f;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_do(o_images[i], evas_obj_position_set(x + 8, y)); eo_do(images[i], evas_obj_position_set(x + 8, y));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th)); eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE + 16 - tw) / 2; cent = (ICON_SIZE + 16 - tw) / 2;
eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4)); eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4));

View File

@ -16,7 +16,7 @@ static int done = 0;
/* private data */ /* private data */
#define NUM 512 #define NUM 512
#define ICON_SIZE 64 #define ICON_SIZE 64
static Evas_Object *o_images[NUM]; static efl::eina::list<evas::image> images;
static Evas_Object *o_texts[NUM]; static Evas_Object *o_texts[NUM];
static const char *icons[] = static const char *icons[] =
@ -47,7 +47,7 @@ static void _setup(void)
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, efl_file_set(build_path(icons[i % 13]), NULL), eo_do(o, efl_file_set(build_path(icons[i % 13]), NULL),
evas_obj_image_fill_set(0, 0, ICON_SIZE, ICON_SIZE), evas_obj_image_fill_set(0, 0, ICON_SIZE, ICON_SIZE),
evas_obj_size_set(ICON_SIZE, ICON_SIZE), evas_obj_size_set(ICON_SIZE, ICON_SIZE),
@ -69,7 +69,7 @@ static void _cleanup(void)
int i; int i;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_del(o_images[i]); eo_del(images[i]);
eo_del(o_texts[i]); eo_del(o_texts[i]);
} }
} }
@ -83,7 +83,7 @@ static void _loop(double t, int f)
y = 0 - f; y = 0 - f;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_do(o_images[i], evas_obj_position_set(x + 8, y)); eo_do(images[i], evas_obj_position_set(x + 8, y));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th)); eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE + 16 - tw) / 2; cent = (ICON_SIZE + 16 - tw) / 2;
eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4)); eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4));

View File

@ -16,7 +16,7 @@ static int done = 0;
/* private data */ /* private data */
#define NUM 512 #define NUM 512
#define ICON_SIZE 64 #define ICON_SIZE 64
static Evas_Object *o_images[NUM]; static efl::eina::list<evas::image> images;
static Evas_Object *o_texts[NUM]; static Evas_Object *o_texts[NUM];
static const char *icons[] = static const char *icons[] =
@ -47,7 +47,7 @@ static void _setup(void)
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, efl_file_set(build_path(icons[i % 13]), NULL), eo_do(o, efl_file_set(build_path(icons[i % 13]), NULL),
evas_obj_image_fill_set(0, 0, ICON_SIZE, ICON_SIZE), evas_obj_image_fill_set(0, 0, ICON_SIZE, ICON_SIZE),
evas_obj_size_set(ICON_SIZE, ICON_SIZE), evas_obj_size_set(ICON_SIZE, ICON_SIZE),
@ -62,12 +62,12 @@ static void _setup(void)
} }
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_do(o_images[i], evas_obj_raise()); eo_do(images[i], evas_obj_raise());
} }
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
if (i > 13) if (i > 13)
eo_do(o_images[i], evas_obj_stack_above(o_images[i - 13])); eo_do(images[i], evas_obj_stack_above(images[i - 13]));
} }
done = 0; done = 0;
} }
@ -78,7 +78,7 @@ static void _cleanup(void)
int i; int i;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_del(o_images[i]); eo_del(images[i]);
eo_del(o_texts[i]); eo_del(o_texts[i]);
} }
} }
@ -92,7 +92,7 @@ static void _loop(double t, int f)
y = 0 - f; y = 0 - f;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_do(o_images[i], evas_obj_position_set(x + 8, y)); eo_do(images[i], evas_obj_position_set(x + 8, y));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th)); eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE + 16 - tw) / 2; cent = (ICON_SIZE + 16 - tw) / 2;
eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4)); eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4));

View File

@ -16,7 +16,7 @@ static int done = 0;
/* private data */ /* private data */
#define NUM 512 #define NUM 512
#define ICON_SIZE 64 #define ICON_SIZE 64
static Evas_Object *o_images[NUM]; static efl::eina::list<evas::image> images;
static Evas_Object *o_texts[NUM]; static Evas_Object *o_texts[NUM];
static const char *icons[] = static const char *icons[] =
@ -32,7 +32,7 @@ static void _setup(void)
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, efl_file_set(build_path(icons[i % 1]), NULL), eo_do(o, efl_file_set(build_path(icons[i % 1]), NULL),
evas_obj_image_fill_set(0, 0, ICON_SIZE, ICON_SIZE), evas_obj_image_fill_set(0, 0, ICON_SIZE, ICON_SIZE),
evas_obj_size_set(ICON_SIZE, ICON_SIZE), evas_obj_size_set(ICON_SIZE, ICON_SIZE),
@ -54,7 +54,7 @@ static void _cleanup(void)
int i; int i;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_del(o_images[i]); eo_del(images[i]);
eo_del(o_texts[i]); eo_del(o_texts[i]);
} }
} }
@ -68,7 +68,7 @@ static void _loop(double t, int f)
y = 0 - f; y = 0 - f;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_do(o_images[i], evas_obj_position_set(x + 8, y)); eo_do(images[i], evas_obj_position_set(x + 8, y));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th)); eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE + 16 - tw) / 2; cent = (ICON_SIZE + 16 - tw) / 2;
eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4)); eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4));

View File

@ -1,22 +1,25 @@
#undef FNAME
#undef NAME
#undef ICON
/* metadata */ #ifdef HAVE_CONFIG_H
#define FNAME widgets_file_icons_2_same_grouped_start # include <config.h>
#define NAME "Widgets File Icons 2 Same Grouped" #endif
#define ICON "widgets.png"
#ifndef PROTO #include "Eo.h"
# ifndef UI #include "Evas.h"
# include "main.h"
#include "Eo.hh"
#include "Eina.hh"
#include "Evas.hh"
#include "main.h"
#define EXPEDITE_CXX_TEST_IMPL
/* standard var */ /* standard var */
static int done = 0; static int done = 0;
/* private data */ /* private data */
#define NUM 512 #define NUM 512
#define ICON_SIZE 64 #define ICON_SIZE 64
static Evas_Object *o_images[NUM]; static efl::eina::list<evas::image> images;
static Evas_Object *o_texts[NUM]; static Evas_Object *o_texts[NUM];
static const char *icons[] = static const char *icons[] =
@ -32,7 +35,7 @@ static void _setup(void)
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, efl_file_set(build_path(icons[i % 1]), NULL), eo_do(o, efl_file_set(build_path(icons[i % 1]), NULL),
evas_obj_image_fill_set(0, 0, ICON_SIZE, ICON_SIZE), evas_obj_image_fill_set(0, 0, ICON_SIZE, ICON_SIZE),
evas_obj_size_set(ICON_SIZE, ICON_SIZE), evas_obj_size_set(ICON_SIZE, ICON_SIZE),
@ -47,7 +50,7 @@ static void _setup(void)
} }
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_do(o_images[i], evas_obj_raise()); eo_do(images[i], evas_obj_raise());
} }
done = 0; done = 0;
} }
@ -58,7 +61,7 @@ static void _cleanup(void)
int i; int i;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_del(o_images[i]); eo_del(images[i]);
eo_del(o_texts[i]); eo_del(o_texts[i]);
} }
} }
@ -72,7 +75,7 @@ static void _loop(double t, int f)
y = 0 - f; y = 0 - f;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_do(o_images[i], evas_obj_position_set(x + 8, y)); eo_do(images[i], evas_obj_position_set(x + 8, y));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th)); eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE + 16 - tw) / 2; cent = (ICON_SIZE + 16 - tw) / 2;
eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4)); eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4));
@ -92,38 +95,8 @@ static void _key(char *key)
KEY_STD; KEY_STD;
} }
extern "C" void FNAME(void)
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{ {
ui_func_set(_key, _loop); ui_func_set(_key, _loop);
_setup(); _setup();
} }
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -16,7 +16,7 @@ static int done = 0;
/* private data */ /* private data */
#define NUM 512 #define NUM 512
#define ICON_SIZE 16 #define ICON_SIZE 16
static Evas_Object *o_images[NUM]; static efl::eina::list<evas::image> images;
static Evas_Object *o_texts[NUM]; static Evas_Object *o_texts[NUM];
static const char *icons[] = static const char *icons[] =
@ -47,7 +47,7 @@ static void _setup(void)
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, efl_file_set(build_path(icons[i % 13]), NULL), eo_do(o, efl_file_set(build_path(icons[i % 13]), NULL),
evas_obj_image_fill_set(0, 0, ICON_SIZE, ICON_SIZE), evas_obj_image_fill_set(0, 0, ICON_SIZE, ICON_SIZE),
evas_obj_size_set(ICON_SIZE, ICON_SIZE), evas_obj_size_set(ICON_SIZE, ICON_SIZE),
@ -69,7 +69,7 @@ static void _cleanup(void)
int i; int i;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_del(o_images[i]); eo_del(images[i]);
eo_del(o_texts[i]); eo_del(o_texts[i]);
} }
} }
@ -83,7 +83,7 @@ static void _loop(double t, int f)
y = 0 - f; y = 0 - f;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_do(o_images[i], evas_obj_position_set(x + 8, y)); eo_do(images[i], evas_obj_position_set(x + 8, y));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th)); eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE + 16 - tw) / 2; cent = (ICON_SIZE + 16 - tw) / 2;
eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4)); eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4));

View File

@ -16,7 +16,7 @@ static int done = 0;
/* private data */ /* private data */
#define NUM 512 #define NUM 512
#define ICON_SIZE 96 #define ICON_SIZE 96
static Evas_Object *o_images[NUM]; static efl::eina::list<evas::image> images;
static Evas_Object *o_texts[NUM]; static Evas_Object *o_texts[NUM];
static const char *icons[] = static const char *icons[] =
@ -47,7 +47,7 @@ static void _setup(void)
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, efl_file_set(build_path(icons[i % 13]), NULL), eo_do(o, efl_file_set(build_path(icons[i % 13]), NULL),
evas_obj_image_fill_set(0, 0, ICON_SIZE, ICON_SIZE), evas_obj_image_fill_set(0, 0, ICON_SIZE, ICON_SIZE),
evas_obj_size_set(ICON_SIZE, ICON_SIZE), evas_obj_size_set(ICON_SIZE, ICON_SIZE),
@ -69,7 +69,7 @@ static void _cleanup(void)
int i; int i;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_del(o_images[i]); eo_del(images[i]);
eo_del(o_texts[i]); eo_del(o_texts[i]);
} }
} }
@ -83,7 +83,7 @@ static void _loop(double t, int f)
y = 0 - f; y = 0 - f;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_do(o_images[i], evas_obj_position_set(x + 8, y)); eo_do(images[i], evas_obj_position_set(x + 8, y));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th)); eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE + 16 - tw) / 2; cent = (ICON_SIZE + 16 - tw) / 2;
eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4)); eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4));

View File

@ -16,7 +16,7 @@ static int done = 0;
/* private data */ /* private data */
#define NUM 512 #define NUM 512
#define ICON_SIZE 64 #define ICON_SIZE 64
static Evas_Object *o_images[NUM]; static efl::eina::list<evas::image> images;
static Evas_Object *o_texts[NUM]; static Evas_Object *o_texts[NUM];
static const char *labels[] = static const char *labels[] =
@ -63,7 +63,7 @@ static void _setup(void)
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, evas_obj_image_filled_set(1), eo_do(o, evas_obj_image_filled_set(1),
evas_obj_image_border_set(2, 2, 2, 2), evas_obj_image_border_set(2, 2, 2, 2),
efl_file_set(build_path("pan.png"), NULL), efl_file_set(build_path("pan.png"), NULL),
@ -86,7 +86,7 @@ static void _cleanup(void)
int i; int i;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_del(o_images[i]); eo_del(images[i]);
eo_del(o_texts[i]); eo_del(o_texts[i]);
} }
} }
@ -100,7 +100,7 @@ static void _loop(double t, int f)
y = 0 - f; y = 0 - f;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_do(o_images[i], evas_obj_position_set(x, y)); eo_do(images[i], evas_obj_position_set(x, y));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th)); eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE - th) / 2; cent = (ICON_SIZE - th) / 2;
eo_do(o_texts[i], evas_obj_position_set(x + 8, y + cent)); eo_do(o_texts[i], evas_obj_position_set(x + 8, y + cent));

View File

@ -16,7 +16,7 @@ static int done = 0;
/* private data */ /* private data */
#define NUM 512 #define NUM 512
#define ICON_SIZE 64 #define ICON_SIZE 64
static Evas_Object *o_images[NUM]; static efl::eina::list<evas::image> images;
static Evas_Object *o_texts[NUM]; static Evas_Object *o_texts[NUM];
static const char *labels[] = static const char *labels[] =
@ -63,7 +63,7 @@ static void _setup(void)
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, evas_obj_image_filled_set(1), eo_do(o, evas_obj_image_filled_set(1),
evas_obj_image_border_set(2, 2, 2, 2), evas_obj_image_border_set(2, 2, 2, 2),
efl_file_set(build_path("pan.png"), NULL), efl_file_set(build_path("pan.png"), NULL),
@ -79,7 +79,7 @@ static void _setup(void)
} }
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_do(o_images[i], evas_obj_raise()); eo_do(images[i], evas_obj_raise());
} }
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
@ -94,7 +94,7 @@ static void _cleanup(void)
int i; int i;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_del(o_images[i]); eo_del(images[i]);
eo_del(o_texts[i]); eo_del(o_texts[i]);
} }
} }
@ -108,7 +108,7 @@ static void _loop(double t, int f)
y = 0 - f; y = 0 - f;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_do(o_images[i], evas_obj_position_set(x, y)); eo_do(images[i], evas_obj_position_set(x, y));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th)); eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE - th) / 2; cent = (ICON_SIZE - th) / 2;
eo_do(o_texts[i], evas_obj_position_set(x + 8, y + cent)); eo_do(o_texts[i], evas_obj_position_set(x + 8, y + cent));

View File

@ -16,7 +16,7 @@ static int done = 0;
/* private data */ /* private data */
#define NUM 512 #define NUM 512
#define ICON_SIZE 32 #define ICON_SIZE 32
static Evas_Object *o_images[NUM]; static efl::eina::list<evas::image> images;
static Evas_Object *o_texts[NUM]; static Evas_Object *o_texts[NUM];
static const char *labels[] = static const char *labels[] =
@ -63,7 +63,7 @@ static void _setup(void)
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, evas_obj_image_filled_set(1), eo_do(o, evas_obj_image_filled_set(1),
evas_obj_image_border_set(2, 2, 2, 2), evas_obj_image_border_set(2, 2, 2, 2),
efl_file_set(build_path("pan.png"), NULL), efl_file_set(build_path("pan.png"), NULL),
@ -86,7 +86,7 @@ static void _cleanup(void)
int i; int i;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_del(o_images[i]); eo_del(images[i]);
eo_del(o_texts[i]); eo_del(o_texts[i]);
} }
} }
@ -100,7 +100,7 @@ static void _loop(double t, int f)
y = 0 - f; y = 0 - f;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_do(o_images[i], evas_obj_position_set(x, y)); eo_do(images[i], evas_obj_position_set(x, y));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th)); eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE - th) / 2; cent = (ICON_SIZE - th) / 2;
eo_do(o_texts[i], evas_obj_position_set(x + 8, y + cent)); eo_do(o_texts[i], evas_obj_position_set(x + 8, y + cent));

View File

@ -16,7 +16,7 @@ static int done = 0;
/* private data */ /* private data */
#define NUM 512 #define NUM 512
#define ICON_SIZE 64 #define ICON_SIZE 64
static Evas_Object *o_images[NUM]; static efl::eina::list<evas::image> images;
static Evas_Object *o_texts[NUM]; static Evas_Object *o_texts[NUM];
static const char *labels[] = static const char *labels[] =
@ -63,7 +63,7 @@ static void _setup(void)
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, evas_obj_image_filled_set(1), eo_do(o, evas_obj_image_filled_set(1),
evas_obj_image_border_set(2, 2, 2, 2), evas_obj_image_border_set(2, 2, 2, 2),
efl_file_set(build_path("pan.png"), NULL), efl_file_set(build_path("pan.png"), NULL),
@ -79,7 +79,7 @@ static void _setup(void)
} }
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_do(o_images[i], evas_obj_raise()); eo_do(images[i], evas_obj_raise());
} }
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
@ -94,7 +94,7 @@ static void _cleanup(void)
int i; int i;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_del(o_images[i]); eo_del(images[i]);
eo_del(o_texts[i]); eo_del(o_texts[i]);
} }
} }
@ -108,7 +108,7 @@ static void _loop(double t, int f)
y = 0 - f; y = 0 - f;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_do(o_images[i], evas_obj_position_set(x, y)); eo_do(images[i], evas_obj_position_set(x, y));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th)); eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE - th) / 2; cent = (ICON_SIZE - th) / 2;
eo_do(o_texts[i], evas_obj_position_set(x + 8, y + cent)); eo_do(o_texts[i], evas_obj_position_set(x + 8, y + cent));

View File

@ -16,7 +16,7 @@ static int done = 0;
/* private data */ /* private data */
#define NUM 512 #define NUM 512
#define ICON_SIZE 64 #define ICON_SIZE 64
static Evas_Object *o_images[NUM]; static efl::eina::list<evas::image> images;
static Evas_Object *o_icons[NUM]; static Evas_Object *o_icons[NUM];
static Evas_Object *o_texts[NUM]; static Evas_Object *o_texts[NUM];
@ -84,7 +84,7 @@ static void _setup(void)
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, evas_obj_image_filled_set(1), eo_do(o, evas_obj_image_filled_set(1),
evas_obj_image_border_set(2, 2, 2, 2), evas_obj_image_border_set(2, 2, 2, 2),
efl_file_set(build_path("pan.png"), NULL), efl_file_set(build_path("pan.png"), NULL),
@ -115,7 +115,7 @@ static void _cleanup(void)
int i; int i;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_del(o_images[i]); eo_del(images[i]);
eo_del(o_icons[i]); eo_del(o_icons[i]);
eo_del(o_texts[i]); eo_del(o_texts[i]);
} }
@ -130,7 +130,7 @@ static void _loop(double t, int f)
y = 0 - f; y = 0 - f;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_do(o_images[i], evas_obj_position_set(x, y)); eo_do(images[i], evas_obj_position_set(x, y));
eo_do(o_icons[i], evas_obj_position_set(x + 4, y + 4)); eo_do(o_icons[i], evas_obj_position_set(x + 4, y + 4));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th)); eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE - th) / 2; cent = (ICON_SIZE - th) / 2;

View File

@ -16,7 +16,7 @@ static int done = 0;
/* private data */ /* private data */
#define NUM 512 #define NUM 512
#define ICON_SIZE 64 #define ICON_SIZE 64
static Evas_Object *o_images[NUM]; static efl::eina::list<evas::image> images;
static Evas_Object *o_icons[NUM]; static Evas_Object *o_icons[NUM];
static Evas_Object *o_texts[NUM]; static Evas_Object *o_texts[NUM];
@ -84,7 +84,7 @@ static void _setup(void)
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, evas_obj_image_filled_set(1), eo_do(o, evas_obj_image_filled_set(1),
evas_obj_image_border_set(2, 2, 2, 2), evas_obj_image_border_set(2, 2, 2, 2),
efl_file_set(build_path("pan.png"), NULL), efl_file_set(build_path("pan.png"), NULL),
@ -108,7 +108,7 @@ static void _setup(void)
} }
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_do(o_images[i], evas_obj_raise()); eo_do(images[i], evas_obj_raise());
} }
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
@ -132,7 +132,7 @@ static void _cleanup(void)
int i; int i;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_del(o_images[i]); eo_del(images[i]);
eo_del(o_icons[i]); eo_del(o_icons[i]);
eo_del(o_texts[i]); eo_del(o_texts[i]);
} }
@ -147,7 +147,7 @@ static void _loop(double t, int f)
y = 0 - f; y = 0 - f;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_do(o_images[i], evas_obj_position_set(x, y)); eo_do(images[i], evas_obj_position_set(x, y));
eo_do(o_icons[i], evas_obj_position_set(x + 4, y + 4)); eo_do(o_icons[i], evas_obj_position_set(x + 4, y + 4));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th)); eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE - th) / 2; cent = (ICON_SIZE - th) / 2;

View File

@ -16,7 +16,7 @@ static int done = 0;
/* private data */ /* private data */
#define NUM 512 #define NUM 512
#define ICON_SIZE 32 #define ICON_SIZE 32
static Evas_Object *o_images[NUM]; static efl::eina::list<evas::image> images;
static Evas_Object *o_icons[NUM]; static Evas_Object *o_icons[NUM];
static Evas_Object *o_texts[NUM]; static Evas_Object *o_texts[NUM];
@ -84,7 +84,7 @@ static void _setup(void)
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, evas_obj_image_filled_set(1), eo_do(o, evas_obj_image_filled_set(1),
evas_obj_image_border_set(2, 2, 2, 2), evas_obj_image_border_set(2, 2, 2, 2),
efl_file_set(build_path("pan.png"), NULL), efl_file_set(build_path("pan.png"), NULL),
@ -113,7 +113,7 @@ static void _setup(void)
static void _cleanup(void) static void _cleanup(void)
{ {
int i; int i;
for (i = 0; i < NUM; i++) eo_del(o_images[i]); for (i = 0; i < NUM; i++) eo_del(images[i]);
for (i = 0; i < NUM; i++) eo_del(o_icons[i]); for (i = 0; i < NUM; i++) eo_del(o_icons[i]);
for (i = 0; i < NUM; i++) eo_del(o_texts[i]); for (i = 0; i < NUM; i++) eo_del(o_texts[i]);
} }
@ -127,7 +127,7 @@ static void _loop(double t, int f)
y = 0 - f; y = 0 - f;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_do(o_images[i], evas_obj_position_set(x, y)); eo_do(images[i], evas_obj_position_set(x, y));
eo_do(o_icons[i], evas_obj_position_set(x + 4, y + 4)); eo_do(o_icons[i], evas_obj_position_set(x + 4, y + 4));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th)); eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE - th) / 2; cent = (ICON_SIZE - th) / 2;

View File

@ -16,7 +16,7 @@ static int done = 0;
/* private data */ /* private data */
#define NUM 512 #define NUM 512
#define ICON_SIZE 32 #define ICON_SIZE 32
static Evas_Object *o_images[NUM]; static efl::eina::list<evas::image> images;
static Evas_Object *o_icons[NUM]; static Evas_Object *o_icons[NUM];
static Evas_Object *o_texts[NUM]; static Evas_Object *o_texts[NUM];
@ -84,7 +84,7 @@ static void _setup(void)
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
o = eo_add(EVAS_IMAGE_CLASS, G_evas); o = eo_add(EVAS_IMAGE_CLASS, G_evas);
o_images[i] = o; images[i] = o;
eo_do(o, evas_obj_image_filled_set(1), eo_do(o, evas_obj_image_filled_set(1),
evas_obj_image_border_set(2, 2, 2, 2), evas_obj_image_border_set(2, 2, 2, 2),
efl_file_set(build_path("pan.png"), NULL), efl_file_set(build_path("pan.png"), NULL),
@ -108,7 +108,7 @@ static void _setup(void)
} }
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_do(o_images[i], evas_obj_raise()); eo_do(images[i], evas_obj_raise());
} }
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
@ -131,7 +131,7 @@ static void _cleanup(void)
int i; int i;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_del(o_images[i]); eo_del(images[i]);
eo_del(o_icons[i]); eo_del(o_icons[i]);
eo_del(o_texts[i]); eo_del(o_texts[i]);
} }
@ -146,7 +146,7 @@ static void _loop(double t, int f)
y = 0 - f; y = 0 - f;
for (i = 0; i < NUM; i++) for (i = 0; i < NUM; i++)
{ {
eo_do(o_images[i], evas_obj_position_set(x, y)); eo_do(images[i], evas_obj_position_set(x, y));
eo_do(o_icons[i], evas_obj_position_set(x + 4, y + 4)); eo_do(o_icons[i], evas_obj_position_set(x + 4, y + 4));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th)); eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE - th) / 2; cent = (ICON_SIZE - th) / 2;