X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/52c8d32a71bb7553dd89324fa6d56faac95eb5d0..09b895cb4a954494063eb17d3dc302a654fd99e5:/include/wx/dfb/evtloop.h diff --git a/include/wx/dfb/evtloop.h b/include/wx/dfb/evtloop.h index 11366e70a3..80c0b1f069 100644 --- a/include/wx/dfb/evtloop.h +++ b/include/wx/dfb/evtloop.h @@ -20,10 +20,10 @@ 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(); @@ -31,6 +31,10 @@ public: // 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 +43,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_