evtloop.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/cocoa/evtloop.h
  3. // Purpose: declaration of wxGUIEventLoop for wxCocoa
  4. // Author: Vadim Zeitlin
  5. // Created: 2008-12-28
  6. // Copyright: (c) 2008 Vadim Zeitlin <vadim@wxwidgets.org>
  7. // Licence: wxWindows licence
  8. ///////////////////////////////////////////////////////////////////////////////
  9. #ifndef _WX_COCOA_EVTLOOP_H_
  10. #define _WX_COCOA_EVTLOOP_H_
  11. // ----------------------------------------------------------------------------
  12. // wxGUIEventLoop for wxCocoa
  13. // ----------------------------------------------------------------------------
  14. class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxEventLoopBase
  15. {
  16. public:
  17. wxGUIEventLoop() { m_exitcode = 0; }
  18. virtual void ScheduleExit(int rc = 0);
  19. virtual bool Pending() const;
  20. virtual bool Dispatch();
  21. virtual int DispatchTimeout(unsigned long timeout);
  22. virtual void WakeUp() { }
  23. virtual bool YieldFor(long eventsToProcess);
  24. protected:
  25. virtual int DoRun();
  26. int m_exitcode;
  27. wxDECLARE_NO_COPY_CLASS(wxGUIEventLoop);
  28. };
  29. #endif // _WX_COCOA_EVTLOOP_H_