X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8866abbb1727c74a5c9caf949bb946db6e183d94..05dff6b0756ec639d4d05ed88ef47e57a8dbbae8:/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);