X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/382818261588a4578a09c5cdc7a250af1e63199e..cbc9abd7100a1af442223c081594d6c200f01a86:/include/wx/app.h diff --git a/include/wx/app.h b/include/wx/app.h index f2a254bac0..d4ff103779 100644 --- a/include/wx/app.h +++ b/include/wx/app.h @@ -221,6 +221,16 @@ public: virtual int FilterEvent(wxEvent& event); #if wxUSE_EXCEPTIONS + // execute the functor to handle the given event + // + // this is a generalization of HandleEvent() below and the base class + // implementation of CallEventHandler() still calls HandleEvent() for + // compatibility for functors which are just wxEventFunctions (i.e. methods + // of wxEvtHandler) + virtual void CallEventHandler(wxEvtHandler *handler, + wxEventFunctor& functor, + wxEvent& event) const; + // call the specified handler on the given object with the given event // // this method only exists to allow catching the exceptions thrown by any