forked from enlightenment/efl
evas: Examples - fix Evsa3D Eo classnames.
Summary: Renamed EVAS_OBJ_.+_CLASS to EVAS_.+_CLASS so that "make examples" works. @fix Reviewers: cedric, tasn, Hermet CC: felipealmeida, smohanty, raster, cedric Differential Revision: https://phab.enlightenment.org/D935 Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
This commit is contained in:
parent
f0e4cba71c
commit
ec28b13c09
|
@ -284,7 +284,7 @@ main(void)
|
||||||
evas_3d_scene_camera_node_set(camera_node),
|
evas_3d_scene_camera_node_set(camera_node),
|
||||||
evas_3d_scene_size_set(WIDTH, HEIGHT));
|
evas_3d_scene_size_set(WIDTH, HEIGHT));
|
||||||
|
|
||||||
background = eo_add(EVAS_OBJ_RECTANGLE_CLASS, evas);
|
background = eo_add(EVAS_RECTANGLE_CLASS, evas);
|
||||||
eo_unref(background);
|
eo_unref(background);
|
||||||
eo_do(background,
|
eo_do(background,
|
||||||
evas_obj_color_set(0, 0, 0, 255),
|
evas_obj_color_set(0, 0, 0, 255),
|
||||||
|
|
|
@ -248,7 +248,7 @@ main(void)
|
||||||
_scene_setup(&data);
|
_scene_setup(&data);
|
||||||
|
|
||||||
/* Add a background rectangle objects. */
|
/* Add a background rectangle objects. */
|
||||||
background = eo_add(EVAS_OBJ_RECTANGLE_CLASS, evas);
|
background = eo_add(EVAS_RECTANGLE_CLASS, evas);
|
||||||
eo_unref(background);
|
eo_unref(background);
|
||||||
eo_do(background,
|
eo_do(background,
|
||||||
evas_obj_color_set(0, 0, 0, 255),
|
evas_obj_color_set(0, 0, 0, 255),
|
||||||
|
|
|
@ -315,7 +315,7 @@ main(void)
|
||||||
_scene_setup(&data);
|
_scene_setup(&data);
|
||||||
|
|
||||||
/* Add a background rectangle objects. */
|
/* Add a background rectangle objects. */
|
||||||
background = eo_add(EVAS_OBJ_RECTANGLE_CLASS, evas);
|
background = eo_add(EVAS_RECTANGLE_CLASS, evas);
|
||||||
eo_unref(background);
|
eo_unref(background);
|
||||||
eo_do(background,
|
eo_do(background,
|
||||||
evas_obj_color_set(0, 0, 0, 255),
|
evas_obj_color_set(0, 0, 0, 255),
|
||||||
|
|
|
@ -159,7 +159,7 @@ main(void)
|
||||||
evas_3d_scene_size_set(WIDTH, HEIGHT));
|
evas_3d_scene_size_set(WIDTH, HEIGHT));
|
||||||
|
|
||||||
/* Add a background rectangle objects. */
|
/* Add a background rectangle objects. */
|
||||||
background = eo_add(EVAS_OBJ_RECTANGLE_CLASS, evas);
|
background = eo_add(EVAS_RECTANGLE_CLASS, evas);
|
||||||
eo_unref(background);
|
eo_unref(background);
|
||||||
eo_do(background,
|
eo_do(background,
|
||||||
evas_obj_color_set(0, 0, 0, 255),
|
evas_obj_color_set(0, 0, 0, 255),
|
||||||
|
|
|
@ -375,7 +375,7 @@ main(void)
|
||||||
evas_3d_scene_size_set(WIDTH, HEIGHT));
|
evas_3d_scene_size_set(WIDTH, HEIGHT));
|
||||||
|
|
||||||
/* Add evas objects. */
|
/* Add evas objects. */
|
||||||
background = eo_add(EVAS_OBJ_RECTANGLE_CLASS, evas);
|
background = eo_add(EVAS_RECTANGLE_CLASS, evas);
|
||||||
eo_unref(background);
|
eo_unref(background);
|
||||||
eo_do(background,
|
eo_do(background,
|
||||||
evas_obj_color_set(0, 0, 0, 255),
|
evas_obj_color_set(0, 0, 0, 255),
|
||||||
|
|
|
@ -281,7 +281,7 @@ main(void)
|
||||||
evas = ecore_evas_get(ecore_evas);
|
evas = ecore_evas_get(ecore_evas);
|
||||||
|
|
||||||
/* Add a background rectangle objects. */
|
/* Add a background rectangle objects. */
|
||||||
background = eo_add(EVAS_OBJ_RECTANGLE_CLASS, evas);
|
background = eo_add(EVAS_RECTANGLE_CLASS, evas);
|
||||||
eo_unref(background);
|
eo_unref(background);
|
||||||
eo_do(background,
|
eo_do(background,
|
||||||
evas_obj_color_set(0, 0, 0, 255),
|
evas_obj_color_set(0, 0, 0, 255),
|
||||||
|
|
|
@ -170,7 +170,7 @@ main(void)
|
||||||
|
|
||||||
/* Creating object with Eo.
|
/* Creating object with Eo.
|
||||||
* Object must be deleted explixitly at the end of program.*/
|
* Object must be deleted explixitly at the end of program.*/
|
||||||
d.bg = eo_add(EVAS_OBJ_RECTANGLE_CLASS, d.canvas);
|
d.bg = eo_add(EVAS_RECTANGLE_CLASS, d.canvas);
|
||||||
|
|
||||||
/* Eo-styled way to perform actions on an object*/
|
/* Eo-styled way to perform actions on an object*/
|
||||||
eo_do(d.bg, evas_obj_name_set("background rectangle"),
|
eo_do(d.bg, evas_obj_name_set("background rectangle"),
|
||||||
|
@ -183,7 +183,7 @@ main(void)
|
||||||
evas_object_event_callback_add(
|
evas_object_event_callback_add(
|
||||||
d.bg, EVAS_CALLBACK_KEY_DOWN, _on_keydown, NULL);
|
d.bg, EVAS_CALLBACK_KEY_DOWN, _on_keydown, NULL);
|
||||||
|
|
||||||
d.img = eo_add(EVAS_OBJ_IMAGE_CLASS, d.canvas);
|
d.img = eo_add(EVAS_IMAGE_CLASS, d.canvas);
|
||||||
|
|
||||||
/* As soon as 'canvas' object is a parent for 'image' object,
|
/* As soon as 'canvas' object is a parent for 'image' object,
|
||||||
* 'canvas' keeps reference to 'image'.
|
* 'canvas' keeps reference to 'image'.
|
||||||
|
@ -211,7 +211,7 @@ main(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* border on the image's clipper, here just to emphasize its position */
|
/* border on the image's clipper, here just to emphasize its position */
|
||||||
d.clipper_border = eo_add(EVAS_OBJ_IMAGE_CLASS, d.canvas);
|
d.clipper_border = eo_add(EVAS_IMAGE_CLASS, d.canvas);
|
||||||
eo_do(d.clipper_border, evas_obj_image_filled_set(EINA_TRUE),
|
eo_do(d.clipper_border, evas_obj_image_filled_set(EINA_TRUE),
|
||||||
evas_obj_image_file_set(border_img_path, NULL),
|
evas_obj_image_file_set(border_img_path, NULL),
|
||||||
err = evas_obj_image_load_error_get());
|
err = evas_obj_image_load_error_get());
|
||||||
|
@ -232,7 +232,7 @@ main(void)
|
||||||
/* solid white clipper (note that it's the default color for a
|
/* solid white clipper (note that it's the default color for a
|
||||||
* rectangle) - it won't change clippees' colors, then (multiplying
|
* rectangle) - it won't change clippees' colors, then (multiplying
|
||||||
* by 255) */
|
* by 255) */
|
||||||
d.clipper = eo_add(EVAS_OBJ_RECTANGLE_CLASS, d.canvas);
|
d.clipper = eo_add(EVAS_RECTANGLE_CLASS, d.canvas);
|
||||||
eo_unref(d.clipper);
|
eo_unref(d.clipper);
|
||||||
|
|
||||||
eo_do(d.clipper,
|
eo_do(d.clipper,
|
||||||
|
|
Loading…
Reference in New Issue