X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/36b3b54ad8431bca0fa53fa8acae5ba6d4c3e9c7..034be8882cc091cf8ca1ccdf307190ac73adfe54:/include/wx/gtk/app.h diff --git a/include/wx/gtk/app.h b/include/wx/gtk/app.h index 365c08f90a..38f8a5a5d7 100644 --- a/include/wx/gtk/app.h +++ b/include/wx/gtk/app.h @@ -115,8 +115,15 @@ class wxApp: public wxEvtHandler static void CleanUp(); bool ProcessIdle(); +#if wxUSE_THREADS + void ProcessPendingEvents(); +#endif void DeletePendingObjects(); + /// This can be used to suppress the generation of Idle events. + inline void SuppressIdleEvents(bool arg = TRUE) { m_suppressIdleEvents = arg; } + inline bool GetSuppressIdleEvents() const { return m_suppressIdleEvents; } + bool m_initialized; bool m_exitOnFrameDelete; bool m_wantDebugOutput; @@ -133,7 +140,9 @@ class wxApp: public wxEvtHandler wxString m_className; static wxAppInitializerFunction m_appInitFn; - + private: + /// Set to TRUE while we are in wxYield(). + bool m_suppressIdleEvents; DECLARE_EVENT_TABLE() };