Number of arguments in event function
Posted: Sat Aug 27, 2011 02:05
Do you know the funzìction that I ha to pass to subscribe a event are like this one:
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&)
{
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));