Fix compilation for git master (1.18-alpha)

This commit is contained in:
Jean-Philippe Andre 2016-07-19 18:21:56 +09:00
parent e79517e490
commit 95d6a6cd9a
117 changed files with 370 additions and 370 deletions

View File

@ -8,7 +8,7 @@ _setup(void)
Evas_Object *o;
Evas_Textblock_Style *st;
o = eo_add(EVAS_TEXTBLOCK_CLASS, evas);
o = evas_object_textblock_add(evas);
efl_gfx_position_set(o, 10, 40);
efl_gfx_size_set(o, win_w - 20, win_h - 50);
efl_gfx_visible_set(o, EINA_TRUE);
@ -21,9 +21,9 @@ _setup(void)
"p='+ font=Vera font_size=10 align=left'"
"/p='- \n \n'"
);
evas_obj_textblock_style_set(o, st);
evas_obj_textblock_clear(o);
evas_obj_textblock_text_markup_set
evas_object_textblock_style_set(o, st);
evas_object_textblock_clear(o);
evas_object_textblock_text_markup_set
(o, "<center>"
"Enlightenment used to be a window manager project, but "
"since has changed a lot to become a miniature desktop and mobile "
@ -60,7 +60,7 @@ _loop(double t EINA_UNUSED,
}
static void
_key(char *key)
_key(const char *key)
{
if ((!strcmp(key, "Escape")) || (!strcmp(key, "q")) || (!strcmp(key, "Q")))
{

View File

@ -60,7 +60,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -62,7 +62,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,7 +23,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("bar.png"), NULL);
efl_image_border_set(o, 6, 6, 6, 6);
@ -62,7 +62,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,7 +23,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("pan.png"), NULL);
efl_gfx_color_set(o, 64, 64, 64, 255);
@ -63,7 +63,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -25,7 +25,7 @@ static void _setup(void)
{
int a;
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
@ -64,7 +64,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -24,7 +24,7 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++)
{
int a;
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
a = rnd()&0xff;
efl_file_set(o, build_path("logo.png"), NULL);
@ -62,7 +62,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -25,7 +25,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < MANYNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
n = rnd() % 100;
w = 3 + ((n * (60 - 3)) / 100);
@ -64,7 +64,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,7 +23,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("logo.png"), NULL);
efl_image_smooth_scale_set(o, 0);
@ -62,7 +62,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,7 +23,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("logo.png"), NULL);
efl_image_smooth_scale_set(o, 0);
@ -62,7 +62,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,7 +23,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("image.png"), NULL);
efl_image_smooth_scale_set(o, 0);
@ -62,7 +62,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,7 +23,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("image.png"), NULL);
efl_image_smooth_scale_set(o, 0);
@ -62,7 +62,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -24,7 +24,7 @@ static void _setup(void)
srnd();
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
if (i < (OBNUM / 2))
{
@ -75,7 +75,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -27,7 +27,7 @@ static void _setup(void)
srnd();
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
if (i < (OBNUM / 2))
{
@ -78,7 +78,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -27,7 +27,7 @@ static void _setup(void)
srnd();
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
if (i < (OBNUM / 2))
{
@ -78,7 +78,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -27,7 +27,7 @@ static void _setup(void)
srnd();
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
if (i < (OBNUM / 2))
{
@ -78,7 +78,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -24,7 +24,7 @@ static void _setup(void)
srnd();
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
if (i & 0x1)
{
@ -75,7 +75,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -27,7 +27,7 @@ static void _setup(void)
srnd();
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
if (i & 0x1)
{
@ -78,7 +78,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -27,7 +27,7 @@ static void _setup(void)
srnd();
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
if (i & 0x1)
{
@ -78,7 +78,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -27,7 +27,7 @@ static void _setup(void)
srnd();
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
if (i & 0x1)
{
@ -78,7 +78,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -24,7 +24,7 @@ static void _setup(void)
srnd();
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
if (i > (OBNUM / 2))
{
@ -75,7 +75,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -27,7 +27,7 @@ static void _setup(void)
srnd();
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
if (i > (OBNUM / 2))
{
@ -78,7 +78,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -27,7 +27,7 @@ static void _setup(void)
srnd();
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
if (i > (OBNUM / 2))
{
@ -78,7 +78,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -27,7 +27,7 @@ static void _setup(void)
srnd();
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
if (i > (OBNUM / 2))
{
@ -78,7 +78,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,7 +23,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("logo.png"), NULL);
efl_image_smooth_scale_set(o, 1);
@ -62,7 +62,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,7 +23,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("logo.png"), NULL);
efl_image_smooth_scale_set(o, 1);
@ -62,7 +62,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,7 +23,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("image.png"), NULL);
efl_image_smooth_scale_set(o, 1);
@ -62,7 +62,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,7 +23,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("image.png"), NULL);
efl_image_smooth_scale_set(o, 1);
@ -62,7 +62,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,7 +23,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("frame.png"), NULL);
efl_image_border_set(o, 8, 8, 8, 8);
@ -62,7 +62,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -25,7 +25,7 @@ static void _setup(void)
{
int a;
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
@ -64,7 +64,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -25,7 +25,7 @@ static void _setup(void)
{
int a;
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
@ -63,7 +63,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,7 +23,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("bar.png"), NULL);
efl_image_border_set(o, 6, 6, 6, 6);
@ -63,7 +63,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,7 +23,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
@ -61,7 +61,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,7 +23,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
@ -59,7 +59,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,7 +23,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
@ -59,7 +59,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -22,14 +22,14 @@ static void _setup(void)
{
Evas_Object *o;
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[0] = o;
efl_file_set(o, build_path("im1.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 720, 420);
efl_gfx_size_set(o, 720, 420);
efl_gfx_visible_set(o, EINA_TRUE);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[1] = o;
efl_file_set(o, build_path("im2.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 720, 420);
@ -58,7 +58,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -27,7 +27,7 @@ static void _setup(void)
pixels = malloc(sizeof (int) * 640 * 480);
for (i = 0; i < 1; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
efl_gfx_buffer_alpha_set(o, 0);
@ -91,7 +91,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -27,7 +27,7 @@ static void _setup(void)
pixels = malloc(sizeof (int) * 640 * 480);
for (i = 0; i < 1; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
efl_gfx_buffer_alpha_set(o, 1);
@ -102,7 +102,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -27,7 +27,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < 1; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
efl_gfx_buffer_alpha_set(o, 0);
@ -104,7 +104,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -27,7 +27,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < 1; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
efl_gfx_buffer_alpha_set(o, 0);
@ -100,14 +100,14 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -27,7 +27,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < 1; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
efl_gfx_buffer_alpha_set(o, 0);
@ -98,14 +98,14 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -27,7 +27,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < 1; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
efl_gfx_buffer_alpha_set(o, 0);
@ -130,7 +130,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -54,7 +54,7 @@ _cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d)
{
Evas_Object *o;
char buf[256];
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
c->side[i].o = o;
snprintf(buf, sizeof(buf), "cube%i.png", i + 1);
efl_file_set(o, build_path(buf), NULL);
@ -130,8 +130,8 @@ _cube_pos(Cube *c,
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), 0, 512);
if (evas_map_util_clockwise_get(m))
{
evas_obj_map_enable_set(c->side[i].o, 1);
evas_obj_map_set(c->side[i].o, m);
evas_object_map_enable_set(c->side[i].o, 1);
evas_object_map_set(c->side[i].o, m);
efl_gfx_visible_set(c->side[i].o, EINA_TRUE);
}
else
@ -219,7 +219,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -54,7 +54,7 @@ _cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d)
{
Evas_Object *o;
char buf[256];
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
c->side[i].o = o;
snprintf(buf, sizeof(buf), "cube%i.png", i + 1);
efl_file_set(o, build_path(buf), NULL);
@ -128,8 +128,8 @@ _cube_pos(Cube *c,
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), 0, 512);
if (evas_map_util_clockwise_get(m))
{
evas_obj_map_enable_set(c->side[i].o, 1);
evas_obj_map_set(c->side[i].o, m);
evas_object_map_enable_set(c->side[i].o, 1);
evas_object_map_set(c->side[i].o, m);
efl_gfx_visible_set(c->side[i].o, EINA_TRUE);
}
else
@ -217,7 +217,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -54,7 +54,7 @@ _cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d)
{
Evas_Object *o;
char buf[256];
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
c->side[i].o = o;
snprintf(buf, sizeof(buf), "cube%i.png", i + 1);
efl_file_set(o, build_path(buf), NULL);
@ -128,8 +128,8 @@ _cube_pos(Cube *c,
255, 255, 255,
20, 20, 20);
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), 0, 512);
evas_obj_map_enable_set(c->side[i].o, 1);
evas_obj_map_set(c->side[i].o, m);
evas_object_map_enable_set(c->side[i].o, 1);
evas_object_map_set(c->side[i].o, m);
order[i] = i;
for (j = 0; j < 4; j++)
@ -211,7 +211,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -54,7 +54,7 @@ _cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d)
{
Evas_Object *o;
char buf[256];
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
c->side[i].o = o;
snprintf(buf, sizeof(buf), "cube%i.png", i + 1);
efl_file_set(o, build_path(buf), NULL);
@ -126,8 +126,8 @@ _cube_pos(Cube *c,
255, 255, 255,
20, 20, 20);
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), 0, 512);
evas_obj_map_enable_set(c->side[i].o, 1);
evas_obj_map_set(c->side[i].o, m);
evas_object_map_enable_set(c->side[i].o, 1);
evas_object_map_set(c->side[i].o, m);
order[i] = i;
for (j = 0; j < 4; j++)
@ -209,7 +209,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -54,7 +54,7 @@ _cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d)
{
Evas_Object *o;
char buf[256];
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
c->side[i].o = o;
snprintf(buf, sizeof(buf), "im%i.png", (i % 2) + 1);
efl_file_set(o, build_path(buf), NULL);
@ -130,8 +130,8 @@ _cube_pos(Cube *c,
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), -360, 720);
if (evas_map_util_clockwise_get(m))
{
evas_obj_map_enable_set(c->side[i].o, 1);
evas_obj_map_set(c->side[i].o, m);
evas_object_map_enable_set(c->side[i].o, 1);
evas_object_map_set(c->side[i].o, m);
efl_gfx_visible_set(c->side[i].o, EINA_TRUE);
}
else
@ -199,7 +199,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -54,7 +54,7 @@ _cube_new(Evas_Coord w, Evas_Coord h, Evas_Coord d)
{
Evas_Object *o;
char buf[256];
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
c->side[i].o = o;
snprintf(buf, sizeof(buf), "im%i.png", (i % 2) + 1);
efl_file_set(o, build_path(buf), NULL);
@ -127,8 +127,8 @@ _cube_pos(Cube *c,
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), -360, 720);
if (evas_map_util_clockwise_get(m))
{
evas_obj_map_enable_set(c->side[i].o, 1);
evas_obj_map_set(c->side[i].o, m);
evas_object_map_enable_set(c->side[i].o, 1);
evas_object_map_set(c->side[i].o, m);
efl_gfx_visible_set(c->side[i].o, EINA_TRUE);
}
else
@ -196,7 +196,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -29,7 +29,7 @@ static void _setup(void)
{
char buf[256];
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
snprintf(buf, sizeof(buf), "cube%i.png", (i % 6) + 1);
efl_file_set(o, build_path(buf), NULL);
@ -38,7 +38,7 @@ static void _setup(void)
efl_image_smooth_scale_set(o, 0);
efl_gfx_visible_set(o, EINA_TRUE);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_reflec[i] = o;
snprintf(buf, sizeof(buf), "cube%i.png", (i % 6) + 1);
efl_file_set(o, build_path(buf), NULL);
@ -157,8 +157,8 @@ static void _loop(double t, int f)
x + (w / 2), y + (h / 2), 0);
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), -256, 512);
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
evas_map_point_coord_set (m, 0, x, yy, -z);
evas_map_point_image_uv_set(m, 0, 0, 256);
@ -180,15 +180,15 @@ static void _loop(double t, int f)
x + (w / 2), y + (h / 2), 0);
evas_map_util_3d_perspective(m, (win_w / 2), (win_h / 2), -256, 512);
evas_obj_map_enable_set(o_reflec[i], 1);
evas_obj_map_set(o_reflec[i], m);
evas_object_map_enable_set(o_reflec[i], 1);
evas_object_map_set(o_reflec[i], m);
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -24,7 +24,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < (OBNUM / 2); i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
@ -68,14 +68,14 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -24,7 +24,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < (OBNUM / 2); i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
@ -68,14 +68,14 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -24,7 +24,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < (OBNUM / 2); i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
@ -66,14 +66,14 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -24,7 +24,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < (OBNUM / 2); i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
@ -65,14 +65,14 @@ static void _loop(double t, int f)
evas_map_point_color_set(m, 3, 0, 0, 0, 0);
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -24,7 +24,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < (OBNUM / 2); i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
@ -68,14 +68,14 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -24,7 +24,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < (OBNUM / 2); i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
@ -68,14 +68,14 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -24,7 +24,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < (OBNUM / 2); i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
@ -66,14 +66,14 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -24,7 +24,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < (OBNUM / 2); i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
@ -66,14 +66,14 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -24,7 +24,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < (OBNUM / 2); i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
@ -63,14 +63,14 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -24,7 +24,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < (OBNUM / 2); i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
@ -63,14 +63,14 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -24,7 +24,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < (OBNUM / 2); i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
@ -61,14 +61,14 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -24,7 +24,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < (OBNUM / 2); i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
@ -61,14 +61,14 @@ static void _loop(double t, int f)
evas_map_util_rotate(m, f, x + (w / 2), y + (h / 2));
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,21 +23,21 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < OBNUM; i+= 2)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i + 1] = o;
efl_file_set(o, build_path("e-logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
evas_obj_clip_set(o_images[i], o);
evas_object_clip_set(o_images[i], o);
}
done = 0;
}
@ -69,7 +69,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,7 +23,7 @@ static void _setup(void)
int i;
Evas_Object *o;
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_mask = o;
efl_file_set(o, build_path("e-logo-mask.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 720, 420);
@ -33,12 +33,12 @@ static void _setup(void)
for (i = 0; i < 1; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("texture.png"), NULL);
efl_gfx_fill_set(o, 0, 0, win_w * 4, win_h * 4);
efl_gfx_size_set(o, win_w * 4, win_h * 4);
evas_obj_clip_set(o, o_mask);
evas_object_clip_set(o, o_mask);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
@ -70,14 +70,14 @@ static void _loop(double t, int f)
win_w * 4, win_h * 4, 0);
evas_map_util_rotate(m, f, win_w / 2, win_h / 2);
evas_obj_map_enable_set(o_images[i], 1);
evas_obj_map_set(o_images[i], m);
evas_object_map_enable_set(o_images[i], 1);
evas_object_map_set(o_images[i], m);
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,7 +23,7 @@ static void _setup(void)
int i;
Evas_Object *o;
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_mask = o;
efl_file_set(o, build_path("e-logo-mask.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 720, 420);
@ -33,12 +33,12 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
evas_obj_clip_set(o, o_mask);
evas_object_clip_set(o, o_mask);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
@ -75,13 +75,13 @@ static void _loop(double t, int f)
720, 420, 0);
evas_map_util_rotate(m, f, win_w / 2, win_h / 2);
evas_obj_map_enable_set(o_mask, 1);
evas_obj_map_set(o_mask, m);
evas_object_map_enable_set(o_mask, 1);
evas_object_map_set(o_mask, m);
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,7 +23,7 @@ static void _setup(void)
int i;
Evas_Object *o;
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_mask = o;
efl_file_set(o, build_path("e-logo-mask.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 720, 420);
@ -33,13 +33,13 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_image_smooth_scale_set(o, 1);
evas_obj_clip_set(o, o_mask);
evas_object_clip_set(o, o_mask);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
@ -77,7 +77,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,7 +23,7 @@ static void _setup(void)
int i;
Evas_Object *o;
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_mask = o;
efl_file_set(o, build_path("e-logo-mask.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 720, 420);
@ -33,13 +33,13 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_image_smooth_scale_set(o, 0);
evas_obj_clip_set(o, o_mask);
evas_object_clip_set(o, o_mask);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
@ -77,7 +77,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,21 +23,21 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < OBNUM; i+= 2)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("image.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i + 1] = o;
efl_file_set(o, build_path("e-logo-2.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
evas_obj_clip_set(o_images[i], o);
evas_object_clip_set(o_images[i], o);
}
done = 0;
}
@ -69,7 +69,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,21 +23,21 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < OBNUM; i+= 2)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("e-logo-2.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i + 1] = o;
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
efl_gfx_visible_set(o, EINA_TRUE);
evas_obj_clip_set(o_images[i], o);
evas_object_clip_set(o_images[i], o);
}
done = 0;
}
@ -69,7 +69,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,7 +23,7 @@ static void _setup(void)
int i;
Evas_Object *o;
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_mask = o;
efl_file_set(o, build_path("e-logo-mask.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 720, 420);
@ -33,12 +33,12 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
evas_obj_clip_set(o, o_mask);
evas_object_clip_set(o, o_mask);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
@ -71,7 +71,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,7 +23,7 @@ static void _setup(void)
int i;
Evas_Object *o;
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_mask = o;
efl_file_set(o, build_path("e-logo-2.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
@ -33,12 +33,12 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
evas_obj_clip_set(o, o_mask);
evas_object_clip_set(o, o_mask);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
@ -71,7 +71,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,7 +23,7 @@ static void _setup(void)
int i;
Evas_Object *o;
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_mask = o;
efl_file_set(o, build_path("e-logo-mask.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 720, 420);
@ -33,12 +33,12 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120 / 2, 160 / 2);
efl_gfx_size_set(o, 120 / 2, 160 / 2);
evas_obj_clip_set(o, o_mask);
evas_object_clip_set(o, o_mask);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
@ -71,7 +71,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,7 +23,7 @@ static void _setup(void)
int i;
Evas_Object *o;
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_mask = o;
efl_file_set(o, build_path("e-logo-2.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
@ -33,12 +33,12 @@ static void _setup(void)
for (i = 0; i < OBNUM; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
evas_obj_clip_set(o, o_mask);
evas_object_clip_set(o, o_mask);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
@ -76,7 +76,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,7 +23,7 @@ static void _setup(void)
int i;
Evas_Object *o;
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_mask = o;
efl_file_set(o, build_path("e-logo-mask.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 720, 420);
@ -33,12 +33,12 @@ static void _setup(void)
for (i = 0; i < 1; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("texture.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 500, 444);
efl_gfx_size_set(o, win_w * 4, win_h * 4);
evas_obj_clip_set(o, o_mask);
evas_object_clip_set(o, o_mask);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
@ -71,7 +71,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,7 +23,7 @@ static void _setup(void)
int i;
Evas_Object *o;
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_mask = o;
efl_file_set(o, build_path("e-logo-mask.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 720, 420);
@ -33,12 +33,12 @@ static void _setup(void)
for (i = 0; i < 1; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("texture.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 500, 444);
efl_gfx_size_set(o, win_w * 4, win_h * 4);
evas_obj_clip_set(o, o_mask);
evas_object_clip_set(o, o_mask);
efl_gfx_visible_set(o, EINA_TRUE);
}
done = 0;
@ -76,13 +76,13 @@ static void _loop(double t, int f)
720, 420, 0);
evas_map_util_rotate(m, f, win_w / 2, win_h / 2);
evas_obj_map_enable_set(o_mask, 1);
evas_obj_map_set(o_mask, m);
evas_object_map_enable_set(o_mask, 1);
evas_object_map_set(o_mask, m);
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -24,7 +24,7 @@ static void _setup(void)
Evas_Object *o;
for (i = 0; i < 1; i++)
{
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path("tp.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 640, 480);
@ -62,7 +62,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -97,7 +97,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -111,7 +111,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -22,7 +22,7 @@ static void _setup(void)
int i;
Evas_Object *o,*src;
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
@ -68,7 +68,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -26,7 +26,7 @@ static void _setup(void)
int i;
Evas_Object *o,*src;
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
efl_file_set(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
efl_gfx_size_set(o, 120, 160);
@ -71,7 +71,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -83,7 +83,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -100,7 +100,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -67,7 +67,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -70,7 +70,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -68,7 +68,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -71,7 +71,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -67,7 +67,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -70,7 +70,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -54,7 +54,7 @@ static void _setup(void)
{
Evas_Coord tw, th, cent;
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_set(o, build_path(icons[i % 13]), NULL);
efl_gfx_fill_set(o, 0, 0, ICON_SIZE, ICON_SIZE);
@ -162,7 +162,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -60,7 +60,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -83,7 +83,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -69,7 +69,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -81,7 +81,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,16 +23,16 @@ static void _setup(void)
Evas_Object *o;
Evas_Textblock_Style *st;
o = eo_add(EVAS_TEXTBLOCK_CLASS, evas);
o = evas_object_textblock_add(evas);
o_text = o;
st = evas_textblock_style_new();
evas_textblock_style_set
(st,
"DEFAULT='font=Sans font_size=10 color=#000000 wrap=word'"
);
evas_obj_textblock_style_set(o, st); \
evas_obj_textblock_clear(o); \
evas_obj_textblock_text_markup_set(o, "This is a test of auto alignment in Evas<ps/>"
evas_object_textblock_style_set(o, st); \
evas_object_textblock_clear(o); \
evas_object_textblock_text_markup_set(o, "This is a test of auto alignment in Evas<ps/>"
"<br/>"
"This text should be left aligned<ps/>"
"\xE2\x80\x8FThis text should be right aligned<ps/>"
@ -67,7 +67,7 @@ static void _loop(double t, int f)
Evas_Coord x, y, w, h, w0, h0;
int i = 0;
evas_obj_textblock_size_native_get(o_text, &w0, &h0);
evas_object_textblock_size_native_get(o_text, &w0, &h0);
w = w0;
h = h0;
w += fabs(sin((double)(f + (i * 13)) / (31.1 * SLOW))) * (w0);
@ -80,7 +80,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,7 +23,7 @@ static void _setup(void)
Evas_Object *o;
Evas_Textblock_Style *st;
o = eo_add(EVAS_TEXTBLOCK_CLASS, evas);
o = evas_object_textblock_add(evas);
o_text = o;
st = evas_textblock_style_new();
evas_textblock_style_set
@ -39,9 +39,9 @@ static void _setup(void)
"p='+ font=Vera,Kochi font_size=10 align=left'"
"/p='- \n'"
);
evas_obj_textblock_style_set(o, st);
evas_obj_textblock_clear(o);
evas_obj_textblock_text_markup_set(o, "<center><h1>Title</h1></center><br/>"
evas_object_textblock_style_set(o, st);
evas_object_textblock_clear(o);
evas_object_textblock_text_markup_set(o, "<center><h1>Title</h1></center><br/>"
"<p><tab>A pragraph here <red>red text</red> and stuff.</p>"
"<p>And escaping &lt, and &gt, as well as &amp, as <h1>normal.</h1></p>"
"<p>If you want a newline use &lt, br&gt, <br/>woo a new line!</p>"
@ -143,7 +143,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,16 +23,16 @@ static void _setup(void)
Evas_Object *o;
Evas_Textblock_Style *st;
o = eo_add(EVAS_TEXTBLOCK_CLASS, evas);
o = evas_object_textblock_add(evas);
o_text = o;
st = evas_textblock_style_new();
evas_textblock_style_set
(st,
"DEFAULT='font=Sans font_size=10 align=left color=#000000 wrap=word'"
);
evas_obj_textblock_style_set(o, st);
evas_obj_textblock_clear(o);
evas_obj_textblock_text_markup_set(o, "This is a test of International test rendering in Evas<br/>"
evas_object_textblock_style_set(o, st);
evas_object_textblock_clear(o);
evas_object_textblock_text_markup_set(o, "This is a test of International test rendering in Evas<br/>"
"<br/>"
"Danish: 'Quizdeltagerne spiste jordbær med fløde, mens cirkusklovnen'<br/>"
"German: 'Heizölrückstoßabdämpfung'<br/>"
@ -99,7 +99,7 @@ static void _loop(double t, int f)
Evas_Coord x, y, w, h, w0, h0;
int i = 0;
evas_obj_textblock_size_native_get(o_text, &w0, &h0);
evas_object_textblock_size_native_get(o_text, &w0, &h0);
w = w0;
h = h0;
x = (win_w / 2) - (w / 2);
@ -113,7 +113,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -23,16 +23,16 @@ static void _setup(void)
Evas_Object *o;
Evas_Textblock_Style *st;
o = eo_add(EVAS_TEXTBLOCK_CLASS, evas);
o = evas_object_textblock_add(evas);
o_text = o;
st = evas_textblock_style_new();
evas_textblock_style_set
(st,
"DEFAULT='font=Sans font_size=10 color=#000000 wrap=word'"
);
evas_obj_textblock_style_set(o, st); \
evas_obj_textblock_clear(o); \
evas_obj_textblock_text_markup_set(o, "This test just appends and removes text from different paragraphs, it's "
evas_object_textblock_style_set(o, st); \
evas_object_textblock_clear(o); \
evas_object_textblock_text_markup_set(o, "This test just appends and removes text from different paragraphs, it's "
"not a very visual test, it's included for benchmarking purposes."
"<ps/>"
"Enlightenment is the flagship and original name bearer for this project. Once it was just a humble window manager for X11 that wanted to do things differently. To do them better, but it has expanded. This can be confusing so when we refer to Enlightenment, we may mean the project as a whole or just the window manager proper. The libraries behind Enlightenment are referred to as EFL collectively, each with a specific name and purpose."
@ -111,7 +111,7 @@ static void _loop(double t, int f)
{
Evas_Textblock_Cursor *cur;
static Evas_Textblock_Cursor *cur2;
cur = evas_obj_textblock_cursor_get(o_text);
cur = evas_object_textblock_cursor_get(o_text);
evas_textblock_cursor_text_append(cur, "*");
evas_textblock_cursor_char_delete(cur);
@ -119,7 +119,7 @@ static void _loop(double t, int f)
if (!o_text) cur2 = NULL;
if (!cur2)
{
cur2 = evas_obj_textblock_cursor_new(o_text);
cur2 = evas_object_textblock_cursor_new(o_text);
evas_textblock_cursor_paragraph_last(cur2);
evas_textblock_cursor_paragraph_char_first(cur2);
}
@ -132,7 +132,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -34,7 +34,7 @@ static double menu_anim_sel = 0.0;
static double p_fps = 0.0;
static void (*key_func) (char *key) = NULL;
static void (*key_func) (const char *key) = NULL;
static void (*loop_func) (double t, int f) = NULL;
double weights[] =
@ -255,73 +255,74 @@ _ui_select(void)
if (func) func();
}
static Eina_Bool
static void
_ui_key(void *data EINA_UNUSED, const Eo_Event *event)
{
Evas_Event_Key_Down *ev = event->info;
Efl_Event_Key *ev = event->info;
const char *keyname = efl_event_key_name_get(ev);
if (!keyname) return;
if (key_func)
{
key_func(ev->keyname);
return EINA_TRUE;
key_func(keyname);
return;
}
if ((!strcmp(ev->keyname, "Escape")) ||
(!strcmp(ev->keyname, "q")) ||
(!strcmp(ev->keyname, "Q")))
if ((!strcmp(keyname, "Escape")) ||
(!strcmp(keyname, "q")) ||
(!strcmp(keyname, "Q")))
{
_ui_exit();
return;
}
if (menu_active)
{
if (!strcmp(ev->keyname, "Left")) menu_sel++;
else if (!strcmp(ev->keyname, "Right")) menu_sel--;
else if (!strcmp(ev->keyname, "Up")) menu_sel++;
else if (!strcmp(ev->keyname, "Down")) menu_sel--;
else if (!strcmp(ev->keyname, "Home")) menu_sel = eina_list_count(menu) - 1;
else if (!strcmp(ev->keyname, "End")) menu_sel = 0;
else if (!strcmp(ev->keyname, "Next")) menu_sel -= 10;
else if (!strcmp(ev->keyname, "Prior")) menu_sel += 10;
if (!strcmp(keyname, "Left")) menu_sel++;
else if (!strcmp(keyname, "Right")) menu_sel--;
else if (!strcmp(keyname, "Up")) menu_sel++;
else if (!strcmp(keyname, "Down")) menu_sel--;
else if (!strcmp(keyname, "Home")) menu_sel = eina_list_count(menu) - 1;
else if (!strcmp(keyname, "End")) menu_sel = 0;
else if (!strcmp(keyname, "Next")) menu_sel -= 10;
else if (!strcmp(keyname, "Prior")) menu_sel += 10;
if (menu_sel < 0) menu_sel = 0;
else if ((unsigned int)menu_sel >= eina_list_count(menu)) menu_sel = eina_list_count(menu) - 1;
menu_anim_sel = menu_sel;
if (!strcmp(ev->keyname, "Return")) _ui_select();
if (!strcmp(keyname, "Return")) _ui_select();
}
return EINA_TRUE;
}
static Evas_Coord down_x, down_y;
static int down_menu_sel = 0;
static Eina_Bool
static void
_ui_mouse_down(void *data EINA_UNUSED, const Eo_Event *event)
{
Evas_Event_Mouse_Down *ev = event->info;
Efl_Event_Pointer *ev = event->info;
if (ev->button != 1) return EINA_TRUE;
if (efl_event_pointer_button_get(ev) != 1) return;
if (menu_active)
{
down_x = ev->canvas.x;
down_y = ev->canvas.y;
efl_event_pointer_position_get(ev, &down_x, &down_y);
down_menu_sel = menu_sel;
}
return EINA_TRUE;
}
static Eina_Bool
static void
_ui_mouse_up(void *data EINA_UNUSED, const Eo_Event *event)
{
Evas_Event_Mouse_Up *ev = event->info;
Efl_Event_Pointer *ev = event->info;
if (ev->button != 1) return EINA_TRUE;
if (efl_event_pointer_button_get(ev) != 1) return;
if (menu_active)
{
Evas_Coord dx, dy;
Evas_Coord dx, dy, x, y;
dx = ev->canvas.x - down_x;
dy = ev->canvas.y - down_y;
efl_event_pointer_position_get(ev, &x, &y);
dx = x - down_x;
dy = y - down_y;
if ((((dx * dx) + (dy * dy)) < (20 * 20)) &&
(menu_sel == down_menu_sel))
_ui_select();
@ -331,27 +332,26 @@ _ui_mouse_up(void *data EINA_UNUSED, const Eo_Event *event)
evas_event_feed_key_down(evas, "Escape", "Escape", NULL, NULL, 0, NULL);
evas_event_feed_key_up(evas, "Escape", "Escape", NULL, NULL, 0, NULL);
}
return EINA_TRUE;
}
static Eina_Bool
static void
_ui_mouse_move(void *data EINA_UNUSED, const Eo_Event *event)
{
Evas_Event_Mouse_Move *ev = event->info;
Efl_Event_Pointer *ev = event->info;
if (ev->buttons != 1) return EINA_TRUE;
if (efl_event_pointer_button_get(ev) != 1) return;
if (menu_active)
{
menu_sel = down_menu_sel + ((ev->cur.canvas.x - down_x) / 25);
Evas_Coord x;
efl_event_pointer_position_get(ev, &x, NULL);
menu_sel = down_menu_sel + ((x - down_x) / 25);
/* scroll */
if (menu_sel < 0) menu_sel = 0;
else if ((unsigned int)menu_sel >= eina_list_count(menu))
menu_sel = eina_list_count(menu) - 1;
menu_anim_sel = menu_sel;
}
return EINA_TRUE;
}
static void
@ -362,7 +362,7 @@ _ui_menu_item_full_add(Eina_Bool test,
Menu_Item *mi;
mi = malloc(sizeof(Menu_Item));
mi->o_icon = eo_add(EVAS_IMAGE_CLASS, evas);
mi->o_icon = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
efl_file_set(mi->o_icon, build_path(icon), NULL);
efl_gfx_size_set(mi->o_icon, 32, 32);
efl_gfx_fill_set(mi->o_icon, 0, 0, 32, 32);
@ -377,10 +377,10 @@ _ui_menu_item_full_add(Eina_Bool test,
#define _ui_menu_item_add(Icon, Text, Func) _ui_menu_item_full_add(EINA_TRUE, Icon, Text, Func)
EO_CALLBACKS_ARRAY_DEFINE(ui_callbacks,
{ EVAS_OBJECT_EVENT_KEY_DOWN, _ui_key },
{ EVAS_OBJECT_EVENT_MOUSE_DOWN, _ui_mouse_down },
{ EVAS_OBJECT_EVENT_MOUSE_UP, _ui_mouse_up },
{ EVAS_OBJECT_EVENT_MOUSE_MOVE, _ui_mouse_move });
{ EFL_EVENT_KEY_DOWN, _ui_key },
{ EFL_EVENT_POINTER_DOWN, _ui_mouse_down },
{ EFL_EVENT_POINTER_UP, _ui_mouse_up },
{ EFL_EVENT_POINTER_MOVE, _ui_mouse_move });
void
ui_setup(unsigned int ui_w, unsigned int ui_h)
@ -396,7 +396,7 @@ ui_setup(unsigned int ui_w, unsigned int ui_h)
efl_gfx_size_set(o, win_w, win_h);
efl_gfx_color_set(o, 0, 0, 0, 0);
efl_gfx_stack_layer_set(o, 1000);
evas_obj_focus_set(o, 1);
evas_object_focus_set(o, 1);
efl_gfx_visible_set(o, EINA_TRUE);
eo_event_callback_array_add(o, ui_callbacks(), NULL);
o_bg = o;
@ -414,7 +414,7 @@ ui_setup(unsigned int ui_w, unsigned int ui_h)
efl_text_set(o, "EXPEDITE");
efl_gfx_stack_layer_set(o, 100);
efl_gfx_color_set(o, 0, 0, 0, 100);
evas_obj_pass_events_set(o, 1);
evas_object_pass_events_set(o, 1);
efl_gfx_size_get(o, &w, &h);
x = (win_w - w) / 2;
y = 0;
@ -427,7 +427,7 @@ ui_setup(unsigned int ui_w, unsigned int ui_h)
efl_text_set(o, "LEFT/RIGHT - select, ENTER - select, ESCAPE - exit.");
efl_gfx_stack_layer_set(o, 100);
efl_gfx_color_set(o, 0, 0, 0, 60);
evas_obj_pass_events_set(o, 1);
evas_object_pass_events_set(o, 1);
efl_gfx_size_get(o, &w, NULL);
x = (win_w - w) / 2;
y = h + 2;
@ -435,7 +435,7 @@ ui_setup(unsigned int ui_w, unsigned int ui_h)
efl_gfx_visible_set(o, EINA_TRUE);
o_byline = o;
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
efl_gfx_position_set(o, (win_w - 120) / 2, ((win_h - 160) / 2));
efl_file_set(o, build_path("e-logo.png"), NULL);
efl_gfx_fill_set(o, 0, 0, 120, 160);
@ -445,21 +445,21 @@ ui_setup(unsigned int ui_w, unsigned int ui_h)
efl_gfx_visible_set(o, EINA_TRUE);
o_menu_logo = o;
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
efl_gfx_position_set(o, win_w - 128, - 128);
efl_gfx_fill_set(o, 0, 0, 256, 256);
efl_gfx_size_set(o, 256, 256);
efl_gfx_visible_set(o, EINA_TRUE);
o_menu_icon = o;
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
efl_gfx_position_set(o, 0, 0);
efl_file_set(o, build_path("icon_sel.png"), NULL);
efl_gfx_size_set(o, 48, 48);
efl_gfx_fill_set(o, 0, 0, 48, 48);
o_menu_icon_sel = o;
o = eo_add(EVAS_IMAGE_CLASS, evas);
o = eo_add(EFL_CANVAS_IMAGE_CLASS, evas);
efl_gfx_position_set(o, 0, 0);
efl_file_set(o, build_path("text_sel.png"), NULL);
efl_gfx_size_set(o, 96, 32);
@ -471,7 +471,7 @@ ui_setup(unsigned int ui_w, unsigned int ui_h)
efl_text_properties_font_set(o, "Vera", 10);
efl_text_set(o, "");
efl_gfx_color_set(o, 0, 0, 0, 100);
evas_obj_pass_events_set(o, 1);
evas_object_pass_events_set(o, 1);
efl_gfx_size_get(o, &w, &h);
x = (win_w - w) / 2;
y = (win_h - h) / 2;
@ -652,7 +652,7 @@ ui_menu(void)
}
void
ui_func_set(void (*kfunc) (char *key), void (*lfunc) (double t, int f))
ui_func_set(void (*kfunc) (const char *key), void (*lfunc) (double t, int f))
{
key_func = kfunc;
loop_func = lfunc;

View File

@ -19,7 +19,7 @@ extern double weights[];
void ui_setup(unsigned int ui_w, unsigned int ui_h);
Eina_Bool ui_loop(void *data);
void ui_menu(void);
void ui_func_set(void (*kfunc) (char *key), void (*lfunc) (double t, int f));
void ui_func_set(void (*kfunc) (const char *key), void (*lfunc) (double t, int f));
void ui_fps(double fps);
void ui_num(int n);
void ui_all(void);

View File

@ -36,7 +36,7 @@ static void _setup(void)
efl_gfx_position_set(vector, 0, 0);
efl_gfx_visible_set(vector, EINA_TRUE);
root = evas_obj_vg_root_node_get(vector);
root = evas_object_vg_root_node_get(vector);
circle = eo_add(EFL_VG_SHAPE_CLASS, root);
efl_gfx_shape_append_circle(circle, r + stroke_w, r + stroke_w, r);
@ -72,7 +72,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

View File

@ -42,7 +42,7 @@ static void _setup(void)
efl_gfx_position_set(vector, 0, 0);
efl_gfx_visible_set(vector, EINA_TRUE);
root = evas_obj_vg_root_node_get(vector);
root = evas_object_vg_root_node_get(vector);
gradient = eo_add(EFL_VG_GRADIENT_LINEAR_CLASS, NULL);
efl_gfx_gradient_stop_set(gradient, stops, 3);
@ -85,7 +85,7 @@ static void _loop(double t, int f)
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
static void _key(const char *key)
{
KEY_STD;
}

Some files were not shown because too many files have changed in this diff Show More