X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/eaca2a2cfcdd82a877c966b4f702a5a460c8c4c4..9a8d8c5a515b44a03b412c3637c4072be9950387:/include/wx/evtloop.h diff --git a/include/wx/evtloop.h b/include/wx/evtloop.h index bc8ea3d077..d77cbf13de 100644 --- a/include/wx/evtloop.h +++ b/include/wx/evtloop.h @@ -39,10 +39,10 @@ public: // exit from the loop with the given exit code virtual void Exit(int rc = 0) = 0; - // return TRUE if any events are available + // return true if any events are available virtual bool Pending() const = 0; - // dispatch a single event, return FALSE if we should exit from the loop + // dispatch a single event, return false if we should exit from the loop virtual bool Dispatch() = 0; // is the event loop running now? @@ -83,12 +83,12 @@ class WXDLLEXPORT wxEventLoop : public wxEventLoopBase public: wxEventLoop() { m_impl = NULL; } virtual ~wxEventLoop(); - + virtual int Run(); virtual void Exit(int rc = 0); virtual bool Pending() const; virtual bool Dispatch(); - virtual bool IsRunning() const { return m_impl != NULL; } + virtual bool IsRunning() const { return GetActive() == this; } protected: // the pointer to the port specific implementation class