forked from enlightenment/efl
examples: Use new efl apis for size_set and visibility_set.
evas_obj_size_set -> efl_gfx_size_set evas_obj_visibility_set -> efl_gfx_visible_set
This commit is contained in:
parent
62f95be91c
commit
24127a7fc0
|
@ -307,8 +307,8 @@ elm_main(int argc, char **argv)
|
|||
/* Add an image object for 3D scene rendering. */
|
||||
image = evas_object_image_filled_add(evas);
|
||||
eo_do(image,
|
||||
evas_obj_size_set(WIDTH, HEIGHT),
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
efl_gfx_size_set(WIDTH, HEIGHT),
|
||||
efl_gfx_visible_set(EINA_TRUE));
|
||||
|
||||
btn = elm_button_add(win);
|
||||
evas_object_resize(btn, (WIDTH * 2) / 3, (HEIGHT * 2) / 3);
|
||||
|
|
|
@ -287,7 +287,7 @@ elm_main(int argc, char **argv)
|
|||
|
||||
image = evas_object_image_filled_add(evas);
|
||||
eo_do(image,
|
||||
evas_obj_visibility_set(EINA_TRUE));
|
||||
efl_gfx_visible_set(EINA_TRUE));
|
||||
|
||||
/* Set the image object as render target for 3D scene. */
|
||||
eo_do(image, evas_obj_image_scene_set(data.scene));
|
||||
|
|
|
@ -886,7 +886,7 @@ elm_main(int argc, char **argv)
|
|||
|
||||
image = evas_object_image_filled_add(evas);
|
||||
eo_do(image,
|
||||
evas_obj_visibility_set(EINA_TRUE),
|
||||
efl_gfx_visible_set(EINA_TRUE),
|
||||
evas_obj_image_scene_set(data.scene));
|
||||
|
||||
evas_object_size_hint_weight_set(image, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||
|
|
Loading…
Reference in New Issue