X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7214297d16aed4c160c1cbef6b19f153ca065ab7..96f201da8b08391fd719ad74875b87afacc8fc97:/include/wx/gtk/app.h diff --git a/include/wx/gtk/app.h b/include/wx/gtk/app.h index ac36884cfe..dbf52b110c 100644 --- a/include/wx/gtk/app.h +++ b/include/wx/gtk/app.h @@ -104,9 +104,11 @@ class wxApp: public wxEvtHandler void SetPrintMode( int WXUNUSED(mode) ) {} int GetPrintMode() const { return wxPRINT_POSTSCRIPT; } +#if wxUSE_LOG /* override this function to create default log target of arbitrary * user-defined classv (default implementation creates a wxLogGui object) */ virtual wxLog *CreateLogTarget(); +#endif // wxUSE_LOG // implementation @@ -120,12 +122,19 @@ class wxApp: public wxEvtHandler #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; wxWindow *m_topWindow; gint m_idleTag; +#if wxUSE_THREADS + gint m_wakeUpTimerTag; +#endif unsigned char *m_colorCube; int argc; @@ -136,7 +145,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() };