X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/004867dbc54950a43acc7d250fa4a966f046a679..99c4be680622f58a48a04dfe0835b59d2c41afea:/include/wx/window.h diff --git a/include/wx/window.h b/include/wx/window.h index ec6a5644f9..ba5f596d78 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -806,6 +806,13 @@ public: // be there) bool RemoveEventHandler(wxEvtHandler *handler); + // Process an event by calling GetEventHandler()->ProcessEvent(): this + // is a straightforward replacement for ProcessEvent() itself which + // shouldn't be used directly with windows as it doesn't take into + // account any event handlers associated with the window + bool ProcessWindowEvent(wxEvent& event) + { return GetEventHandler()->ProcessEvent(event); } + // 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+ @@ -828,12 +835,12 @@ protected: // or HandleWindowEvent(). // The same holds for all other wxEvtHandler functions. - wxEvtHandler::ProcessEvent; - wxEvtHandler::ProcessThreadEvent; - wxEvtHandler::SafelyProcessEvent; - wxEvtHandler::ProcessPendingEvents; - wxEvtHandler::AddPendingEvent; - wxEvtHandler::QueueEvent; + using wxEvtHandler::ProcessEvent; + using wxEvtHandler::ProcessThreadEvent; + using wxEvtHandler::SafelyProcessEvent; + using wxEvtHandler::ProcessPendingEvents; + using wxEvtHandler::AddPendingEvent; + using wxEvtHandler::QueueEvent; public: