Updated to fit EFL 1.23 API.

This commit is contained in:
Cedric Bail 2019-09-25 10:26:17 -07:00
parent 105e6568a4
commit ac6a3bcb44
14 changed files with 20 additions and 20 deletions

View File

@ -26,7 +26,7 @@ static void _setup(void)
o = efl_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_simple_load(o, build_path("bar.png"), NULL);
efl_gfx_image_border_set(o, 6, 6, 6, 6);
efl_gfx_image_border_insets_set(o, 6, 6, 6, 6);
efl_gfx_entity_visible_set(o, EINA_TRUE);
}
done = 0;

View File

@ -27,7 +27,7 @@ static void _setup(void)
o_images[i] = o;
efl_file_simple_load(o, build_path("pan.png"), NULL);
efl_gfx_color_set(o, 64, 64, 64, 255);
efl_gfx_image_border_set(o, 3, 3, 3, 3);
efl_gfx_image_border_insets_set(o, 3, 3, 3, 3);
efl_gfx_entity_visible_set(o, EINA_TRUE);
}
done = 0;

View File

@ -26,7 +26,7 @@ static void _setup(void)
o = efl_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_simple_load(o, build_path("frame.png"), NULL);
efl_gfx_image_border_set(o, 8, 8, 8, 8);
efl_gfx_image_border_insets_set(o, 8, 8, 8, 8);
efl_gfx_entity_visible_set(o, EINA_TRUE);
}
done = 0;

View File

@ -26,8 +26,8 @@ static void _setup(void)
o = efl_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_file_simple_load(o, build_path("bar.png"), NULL);
efl_gfx_image_border_set(o, 6, 6, 6, 6);
efl_gfx_image_border_center_fill_set(o, EFL_GFX_BORDER_FILL_MODE_SOLID);
efl_gfx_image_border_insets_set(o, 6, 6, 6, 6);
efl_gfx_image_center_fill_mode_set(o, EFL_GFX_CENTER_FILL_MODE_SOLID);
efl_gfx_entity_visible_set(o, EINA_TRUE);
}
done = 0;

View File

@ -28,8 +28,8 @@ static void _setup(void)
efl_file_simple_load(o, build_path("logo.png"), NULL);
efl_gfx_fill_set(o, EINA_RECT(0, 0, 120, 160));
efl_gfx_entity_size_set(o, EINA_SIZE2D(120, 160));
efl_gfx_image_border_set(o, 43, 48, 48, 83);
efl_gfx_image_border_center_fill_set(o, EFL_GFX_BORDER_FILL_MODE_SOLID);
efl_gfx_image_border_insets_set(o, 43, 48, 48, 83);
efl_gfx_image_center_fill_mode_set(o, EFL_GFX_CENTER_FILL_MODE_SOLID);
efl_gfx_entity_visible_set(o, EINA_TRUE);
}
done = 0;

View File

@ -463,7 +463,7 @@ ui_setup(unsigned int ui_w, unsigned int ui_h)
efl_file_simple_load(o, build_path("text_sel.png"), NULL);
efl_gfx_entity_size_set(o, EINA_SIZE2D(96, 32));
efl_gfx_fill_set(o, EINA_RECT(0, 0, 96, 32));
efl_gfx_image_border_set(o, 7, 7, 7, 7);
efl_gfx_image_border_insets_set(o, 7, 7, 7, 7);
o_menu_text_sel = o;
o = evas_object_text_add(evas);

View File

@ -64,7 +64,7 @@ static void _setup(void)
{
o = efl_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_gfx_image_border_set(o, 2, 2, 2, 2);
efl_gfx_image_border_insets_set(o, 2, 2, 2, 2);
efl_file_simple_load(o, build_path("pan.png"), NULL);
efl_gfx_entity_size_set(o, EINA_SIZE2D(win_w, ICON_SIZE));
efl_gfx_entity_visible_set(o, EINA_TRUE);

View File

@ -64,7 +64,7 @@ static void _setup(void)
{
o = efl_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_gfx_image_border_set(o, 2, 2, 2, 2);
efl_gfx_image_border_insets_set(o, 2, 2, 2, 2);
efl_file_simple_load(o, build_path("pan.png"), NULL);
efl_gfx_entity_size_set(o, EINA_SIZE2D(win_w, ICON_SIZE));
efl_gfx_entity_visible_set(o, EINA_TRUE);

View File

@ -64,7 +64,7 @@ static void _setup(void)
{
o = efl_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_gfx_image_border_set(o, 2, 2, 2, 2);
efl_gfx_image_border_insets_set(o, 2, 2, 2, 2);
efl_file_simple_load(o, build_path("pan.png"), NULL);
efl_gfx_entity_size_set(o, EINA_SIZE2D(win_w, ICON_SIZE));
efl_gfx_entity_visible_set(o, EINA_TRUE);

View File

@ -64,7 +64,7 @@ static void _setup(void)
{
o = efl_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_gfx_image_border_set(o, 2, 2, 2, 2);
efl_gfx_image_border_insets_set(o, 2, 2, 2, 2);
efl_file_simple_load(o, build_path("pan.png"), NULL);
efl_gfx_entity_size_set(o, EINA_SIZE2D(win_w, ICON_SIZE));
efl_gfx_entity_visible_set(o, EINA_TRUE);

View File

@ -85,14 +85,14 @@ static void _setup(void)
{
o = efl_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_gfx_image_border_set(o, 2, 2, 2, 2);
efl_gfx_image_border_insets_set(o, 2, 2, 2, 2);
efl_file_simple_load(o, build_path("pan.png"), NULL);
efl_gfx_entity_size_set(o, EINA_SIZE2D(win_w, ICON_SIZE));
efl_gfx_entity_visible_set(o, EINA_TRUE);
o = efl_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_icons[i] = o;
efl_gfx_image_border_set(o, 2, 2, 2, 2);
efl_gfx_image_border_insets_set(o, 2, 2, 2, 2);
efl_file_simple_load(o, build_path(icons[i % 13]), NULL);
efl_gfx_entity_size_set(o, EINA_SIZE2D(ICON_SIZE - 8, ICON_SIZE - 8));
efl_gfx_entity_visible_set(o, EINA_TRUE);

View File

@ -85,14 +85,14 @@ static void _setup(void)
{
o = efl_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_gfx_image_border_set(o, 2, 2, 2, 2);
efl_gfx_image_border_insets_set(o, 2, 2, 2, 2);
efl_file_simple_load(o, build_path("pan.png"), NULL);
efl_gfx_entity_size_set(o, EINA_SIZE2D(win_w, ICON_SIZE));
efl_gfx_entity_visible_set(o, EINA_TRUE);
o = efl_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_icons[i] = o;
efl_gfx_image_border_set(o, 2, 2, 2, 2);
efl_gfx_image_border_insets_set(o, 2, 2, 2, 2);
efl_file_simple_load(o, build_path(icons[i % 13]), NULL);
efl_gfx_entity_size_set(o, EINA_SIZE2D(ICON_SIZE - 8, ICON_SIZE - 8));
efl_gfx_entity_visible_set(o, EINA_TRUE);

View File

@ -85,14 +85,14 @@ static void _setup(void)
{
o = efl_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_gfx_image_border_set(o, 2, 2, 2, 2);
efl_gfx_image_border_insets_set(o, 2, 2, 2, 2);
efl_file_simple_load(o, build_path("pan.png"), NULL);
efl_gfx_entity_size_set(o, EINA_SIZE2D(win_w, ICON_SIZE));
efl_gfx_entity_visible_set(o, EINA_TRUE);
o = efl_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_icons[i] = o;
efl_gfx_image_border_set(o, 2, 2, 2, 2);
efl_gfx_image_border_insets_set(o, 2, 2, 2, 2);
efl_file_simple_load(o, build_path(icons[i % 13]), NULL);
efl_gfx_entity_size_set(o, EINA_SIZE2D(ICON_SIZE - 8, ICON_SIZE - 8));
efl_gfx_entity_visible_set(o, EINA_TRUE);

View File

@ -85,14 +85,14 @@ static void _setup(void)
{
o = efl_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_images[i] = o;
efl_gfx_image_border_set(o, 2, 2, 2, 2);
efl_gfx_image_border_insets_set(o, 2, 2, 2, 2);
efl_file_simple_load(o, build_path("pan.png"), NULL);
efl_gfx_entity_size_set(o, EINA_SIZE2D(win_w, ICON_SIZE));
efl_gfx_entity_visible_set(o, EINA_TRUE);
o = efl_add(EFL_CANVAS_IMAGE_CLASS, evas);
o_icons[i] = o;
efl_gfx_image_border_set(o, 2, 2, 2, 2);
efl_gfx_image_border_insets_set(o, 2, 2, 2, 2);
efl_file_simple_load(o, build_path(icons[i % 13]), NULL);
efl_gfx_entity_size_set(o, EINA_SIZE2D(ICON_SIZE - 8, ICON_SIZE - 8));
efl_gfx_entity_visible_set(o, EINA_TRUE);