X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b9f246f7d99d2a2bc18d1d074940e5ab7b7bf601..ef094fa075bc56bcbc33b12159c395ea28afda3b:/include/wx/evtloop.h?ds=inline diff --git a/include/wx/evtloop.h b/include/wx/evtloop.h index 2a71defd7a..e2ae68ce6c 100644 --- a/include/wx/evtloop.h +++ b/include/wx/evtloop.h @@ -12,7 +12,7 @@ #ifndef _WX_EVTLOOP_H_ #define _WX_EVTLOOP_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "evtloop.h" #endif @@ -47,11 +47,16 @@ public: // return currently active (running) event loop, may be NULL static wxEventLoop *GetActive() { return ms_activeLoop; } + // set currently active (running) event loop + static void SetActive(wxEventLoop* loop) { ms_activeLoop = loop; } + protected: // the pointer to the port specific implementation class class WXDLLEXPORT wxEventLoopImpl *m_impl; // the pointer to currently active loop static wxEventLoop *ms_activeLoop; + + DECLARE_NO_COPY_CLASS(wxEventLoop) }; #endif // _WX_EVTLOOP_H_