X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/376d7d9764391ef614ce74e02df62fafabc00501..05dff6b0756ec639d4d05ed88ef47e57a8dbbae8:/include/wx/window.h diff --git a/include/wx/window.h b/include/wx/window.h index 334df3c2b1..852c4c3b59 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -745,6 +745,13 @@ public: // be there) bool RemoveEventHandler(wxEvtHandler *handler); + // Process an event by calling GetEventHandler()->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 HandleWindowEvent(wxEvent& event) const; + // validators // ----------