Nice to see you

Actually, I need to create an onClickButton() method.
Basically, this method do just that :
Code: Select all
void GUIHandler::OnClickButton(const std::string &button, "callback")
{
CEGUI::WindowManager *wmgr = CEGUI::WindowManager::getSingletonPtr();
CEGUI::Window *Event = wmgr->getWindow(button);
Event->subscribeEvent(CEGUI::PushButton::EventClicked, "callback");
}
But I don't know how to pass the callback. I want it to be cegui independant.
So I think that I must pass a pointer to a function. However, I don't know how to cast the pointer for subscribeevent().
Hope I've been clear

Bye
Charlie