X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/079f4130b861d094c79e0952966caad8b85dab67..02cecc4dc2c07b3e4b109edf44c4c87a2fed87d9:/include/wx/app.h?ds=inline diff --git a/include/wx/app.h b/include/wx/app.h index d61b3b5613..c3b87dd018 100644 --- a/include/wx/app.h +++ b/include/wx/app.h @@ -454,6 +454,10 @@ public: // with _extreme_ care or, better, don't use at all! virtual bool Yield(bool onlyIfNeeded = false) = 0; + // returns true if the main thread is inside a Yield() call + bool IsYielding() const + { return m_isInsideYield; } + // this virtual function is called in the GUI mode when the application // becomes idle and normally just sends wxIdleEvent to all interested // parties @@ -576,6 +580,7 @@ protected: // does any of our windows have focus? bool m_isActive; + bool m_isInsideYield; DECLARE_NO_COPY_CLASS(wxAppBase) };