Code: Select all
CEGUI::FrameWindow *editorWindow;
editorWindow = static_cast<CEGUI::FrameWindow*>(wmgr.createWindow("Vanilla/FrameWindow", ""));
editorWindow->setPosition(CEGUI::UVector2(CEGUI::UDim(0.0f, 50), CEGUI::UDim(0.0f, 50)));
editorWindow->setSize(CEGUI::USize(CEGUI::UDim(0.0f, 500), CEGUI::UDim(0.0f, 400)));
editorWindow->setUpdateMode(WUM_ALWAYS);
editorWindow->subscribeEvent(CEGUI::FrameWindow::EventUpdated, CEGUI::Event::Subscriber(&ceguiCircuitEditor::eventUpdated, this));
CEGUI::System::getSingleton().getDefaultGUIContext().getRootWindow()->addChild(editorWindow);
Code: Select all
bool ceguiCircuitEditor::eventUpdated(const CEGUI::EventArgs& e)
{
std::cout << "Nobody sees this text :*(";
return false;
}
---- Version: 0.8.2 (Build: Sep 24 2013 GNU/Linux g++ 4.6.3 64 bit) ----
---- Renderer module is: CEGUI::OpenGLRenderer - Official OpenGL based 2nd generation renderer module. TextureTarget support enabled via FBO extension. ----
---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
---- Image Codec module is: DevILImageCodec - Official DevIL based image codec ----
---- Scripting module is: None ----
How to get that callback?