CEGUI object deletes childs ?

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Akis
Just popping in
Just popping in
Posts: 14
Joined: Fri Jul 02, 2010 01:31
Contact:

CEGUI object deletes childs ?

Postby Akis » Sun Jul 18, 2010 19:57

Hi,

I'm wondering if a CEGUI object automaticaly deletes their childs when he died...

For example, if I do this : obj->addItem(new Item("blablabla"));

If I call "delete obj;" obj will deletes the new item or I have to delete it myself ?

Thanks

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Re: CEGUI object deletes childs ?

Postby Jamarr » Mon Jul 19, 2010 17:33

Yes, parents automatically delete children when they are destroyed. This setting can be changed via Window::setDestroyedByParent.
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!

Akis
Just popping in
Just popping in
Posts: 14
Joined: Fri Jul 02, 2010 01:31
Contact:

Re: CEGUI object deletes childs ?

Postby Akis » Tue Jul 20, 2010 01:13

I wasn't be sure ;)

Thanks for the confirmation !


Return to “Help”

Who is online

Users browsing this forum: No registered users and 31 guests