X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8e40ed8535894eb47af679ad2b08e777c3605dd0..5a0a15cf56c4bfde818e9d575fb662612e156c2f:/include/wx/app.h diff --git a/include/wx/app.h b/include/wx/app.h index 1a9a083f5e..5e0e97060e 100644 --- a/include/wx/app.h +++ b/include/wx/app.h @@ -313,6 +313,9 @@ public: //to the list of the handlers with _delayed_ pending events void DelayPendingEventHandler(wxEvtHandler* toDelay); + // deletes the current pending events + void DeletePendingEvents(); + // wxEventLoop redirections // ------------------------ @@ -420,11 +423,17 @@ protected: // been started yet or has already terminated) wxEventLoopBase *m_mainLoop; + + // pending events management vars: + // the array of the handlers with pending events which needs to be processed // inside ProcessPendingEvents() wxEvtHandlerArray m_handlersWithPendingEvents; - // helper array used by ProcessPendingEvents() + // helper array used by ProcessPendingEvents() to store the event handlers + // which have pending events but of these events none can be processed right now + // (because of a call to wxEventLoop::YieldFor() which asked to selectively process + // pending events) wxEvtHandlerArray m_handlersWithPendingDelayedEvents; #if wxUSE_THREADS @@ -432,6 +441,9 @@ protected: wxCriticalSection m_handlersWithPendingEventsLocker; #endif + // flag modified by Suspend/ResumeProcessingOfPendingEvents() + bool m_bDoPendingEventProcessing; + friend class WXDLLIMPEXP_FWD_BASE wxEvtHandler; // the application object is a singleton anyhow, there is no sense in