X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/524c47aa3adf2af11a3069fd5da035a604f08f66..cbeda384e51acb82e13994cb67ac1714669cae10:/include/wx/osx/carbon/evtloop.h diff --git a/include/wx/osx/carbon/evtloop.h b/include/wx/osx/carbon/evtloop.h index 60f5704574..d704a9c50c 100644 --- a/include/wx/osx/carbon/evtloop.h +++ b/include/wx/osx/carbon/evtloop.h @@ -12,17 +12,26 @@ #ifndef _WX_MAC_CARBON_EVTLOOP_H_ #define _WX_MAC_CARBON_EVTLOOP_H_ +class OpaqueEventRef; +typedef OpaqueEventRef *EventRef; + class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxEventLoopManual { public: wxGUIEventLoop(); + // implement/override base class pure virtual virtual bool Pending() const; virtual bool Dispatch(); + virtual int DispatchTimeout(unsigned long timeout); - // implement base class pure virtual virtual void WakeUp(); + virtual bool YieldFor(long eventsToProcess); + private: + // dispatch an event and release it + void DispatchAndReleaseEvent(EventRef event); + double m_sleepTime; };