Code: Select all
bool function(const CEGUI::EventArgs&)
{
return true;
}
Is it possible to pass another argument with the const CEGUI::EventArgs& arg like an int?
like this one
Code: Select all
bool function(const CEGUI::EventArgs&, int number)
{
cout <<number;
return true;
}
......
int number2=55;
button->subscribeEvent(CEGUI::FrameWindow::EventCloseClicked,CEGUI::Event::Subscriber(&function(number2), this));