X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/52c8d32a71bb7553dd89324fa6d56faac95eb5d0..02cecc4dc2c07b3e4b109edf44c4c87a2fed87d9:/include/wx/dfb/evtloop.h?ds=sidebyside diff --git a/include/wx/dfb/evtloop.h b/include/wx/dfb/evtloop.h index 11366e70a3..4c3380819a 100644 --- a/include/wx/dfb/evtloop.h +++ b/include/wx/dfb/evtloop.h @@ -20,17 +20,22 @@ struct wxDFBEvent; // wxEventLoop // ---------------------------------------------------------------------------- -class WXDLLIMPEXP_CORE wxEventLoop : public wxEventLoopManual +class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxEventLoopManual { public: - wxEventLoop(); + wxGUIEventLoop(); virtual bool Pending() const; virtual bool Dispatch(); + virtual int DispatchTimeout(unsigned long timeout); // returns DirectFB event buffer used by wx static wxIDirectFBEventBufferPtr GetDirectFBEventBuffer(); + // wxYield implementation: iterate the loop as long as there are any + // pending events + void Yield(); + protected: virtual void WakeUp(); virtual void OnNextIteration(); @@ -39,13 +44,14 @@ protected: private: static void InitBuffer(); + static void CleanUp(); + + friend class wxApp; // calls CleanUp() and WakeUp() private: static wxIDirectFBEventBufferPtr ms_buffer; - friend class wxApp; // calls WakeUp() - - DECLARE_NO_COPY_CLASS(wxEventLoop) + DECLARE_NO_COPY_CLASS(wxGUIEventLoop) }; #endif // _WX_DFB_EVTLOOP_H_