Do I need to evas_object_del all items in a layout?

Do I need to evas_object_del all items in a layout?

BY 09 Mar 2017 Native Application Development

Let’s say I create a layout.

layout = elm_layout_add(window);

I use the default layout

elm_layout_theme_set(layout, "layout", "application", "default");

Then I create a rectangle, inheriting from the layout, e.g.

rect = evas_object_rectangle_add(evas_object_evas_get(layout));

And I added it to the layout:

elm_object_part_content_set(layout, "elm.swallow.content", rectangle);

 

Now, when it comes the time to dispose the layout, I can call

evas_object_del(layout);

 

But the million dollar question is, is rect object automatically gone, or do I still have to explicitly call evas_object_del(rect) as well?

Repeat the same question for other kind of contains as well, such as Box, Grid, Table, Conformant and Naviframe.

 

Thanks.

Written by