CEGUI::Window::EventChildAdded/Removed event args

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
Van
Just can't stay away
Just can't stay away
Posts: 225
Joined: Fri Jan 21, 2005 20:29
Contact:

CEGUI::Window::EventChildAdded/Removed event args

Postby Van » Sat Apr 01, 2006 04:54

The window in the event args passed to either CEGUI::Window::EventChildAdded or CEGUI::Window::EventChildRemoved - is that the parent window getting/loosing the child or is that the child window being added/removed?

If it's the parent, how do I get the window being added/removed so I can do a Window::getUserData() ?

Code: Select all

bool clsGUIEquipShip::eventChildRemoved(const CEGUI::EventArgs& e)
{
   const CEGUI::WindowEventArgs &mEA = static_cast<const CEGUI::WindowEventArgs&>(e);
   if ( !mEA.window ) return true;
...
}


What is mEA.window ?

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Sun Apr 02, 2006 08:56

Hi,

It is the window that was added or removed.

HTH

CE


Return to “Help”

Who is online

Users browsing this forum: No registered users and 4 guests