I am using Irrlicht and I am new to CEGUI. I would like to know if there's a global callback function in CEGUI. Let's say I created a window put two textboxes and two buttons in it. I saw a register event sapmle code to call if a pushbutton is clicked:
Code: Select all
PushButton * baglan = static_cast<PushButton*>(System::getSingleton().getGUISheet()->getChild("Root/Anamenu")->getChild("Root/Anamenu/Button1"));
baglan->subscribeEvent(PushButton::EventClicked,CEGUI::Event::Subscriber(&Engine::BaglanButton,this));
What I need is to subscribe all events. Is there a callback in CEGUI which I can register in my code and CEGUI calls back every time an event occurs regaredless of the type of object and event? If there isn't why