Getting rid of a Window?

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

User avatar
Das Gurke
Not too shy to talk
Not too shy to talk
Posts: 31
Joined: Sat Sep 02, 2006 15:45

Getting rid of a Window?

Postby Das Gurke » Wed Jan 10, 2007 19:02

Oke, this is stupid ... I have no idea how to completly get rid of a window (or multiple). So far i never fell over this problem, but because my app uses CEGUI now in more than one Gamestate I would like to implent some kind of

Code: Select all

theGUIManager->clearSheet();
method. Or is it enough to set all the Windows invisible? I can't quite imagine that ...

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Postby Pompei2 » Wed Jan 10, 2007 23:20

Don't know if it's that you're searching for, but take a look at:
void CEGUI::WindowManager::destroyWindow( const String & window )
this destroys a window and AFAIK frees all the memory of it and its childs. If you only want to hide the windows to reuse them later, you can simply hide them by calling window->hide( );

User avatar
Das Gurke
Not too shy to talk
Not too shy to talk
Posts: 31
Joined: Sat Sep 02, 2006 15:45

Postby Das Gurke » Fri Jan 12, 2007 07:30

Dough! Me fool searched for a method inside the Window class. :oops:


Return to “Help”

Who is online

Users browsing this forum: No registered users and 21 guests