Use dummy class on Mac until wxEventLoop is implemented there

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-09-25 23:09:57 +00:00
parent f2641bc2bf
commit edda5768ab

View File

@@ -20,7 +20,27 @@
%newgroup
%{
#ifdef __WXMAC__
// A dummy class that raises an exception if used...
class wxEventLoop
{
public:
wxEventLoop() { wxPyRaiseNotImplemented(); }
int Run() { return 0; }
void Exit(int rc = 0) {}
bool Pending() const { return false; }
bool Dispatch() { return false; }
bool IsRunning() const { return false; }
static wxEventLoop *GetActive() { wxPyRaiseNotImplemented(); return NULL; }
static void SetActive(wxEventLoop* loop) { wxPyRaiseNotImplemented(); }
};
#else
#include <wx/evtloop.h>
#endif
%}
class wxEventLoop