X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3808e191421b1337b3c688cf6d75efa43582547a..9e691f46b2ec1b5dbbff2e51131e3c532e688a89:/include/wx/evtloop.h?ds=sidebyside diff --git a/include/wx/evtloop.h b/include/wx/evtloop.h index 4e90d3d803..2a71defd7a 100644 --- a/include/wx/evtloop.h +++ b/include/wx/evtloop.h @@ -43,10 +43,15 @@ public: // is the event loop running now? virtual bool IsRunning() const; + + // return currently active (running) event loop, may be NULL + static wxEventLoop *GetActive() { return ms_activeLoop; } protected: // the pointer to the port specific implementation class class WXDLLEXPORT wxEventLoopImpl *m_impl; + // the pointer to currently active loop + static wxEventLoop *ms_activeLoop; }; #endif // _WX_EVTLOOP_H_