X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/787f0fc4f3eb08f1065d86e44ace8d7453e1b1b3..937013e0fd914d4c42f9f5ec98da665986b93dfa:/include/wx/event.h diff --git a/include/wx/event.h b/include/wx/event.h index d63a1140ee..5e5c4177a2 100644 --- a/include/wx/event.h +++ b/include/wx/event.h @@ -2363,6 +2363,12 @@ public: // process an event right now virtual bool ProcessEvent(wxEvent& event); + // Process an event by calling ProcessEvent and handling any exceptions + // thrown by event handlers. It's mostly useful when processing wx events + // when called from C code (e.g. in GTK+ callback) when the exception + // wouldn't correctly propagate to wxEventLoop. + bool SafelyProcessEvent(wxEvent& event); + // add an event to be processed later virtual void AddPendingEvent(const wxEvent& event);