add more flexible and safer template Connect() overloads (#10000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58039 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user