X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e48a3055145e5d3f77b17383ed7521585ea7391d..09b895cb4a954494063eb17d3dc302a654fd99e5:/include/wx/dfb/evtloop.h?ds=sidebyside diff --git a/include/wx/dfb/evtloop.h b/include/wx/dfb/evtloop.h index cf77e26c13..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(); @@ -46,7 +50,7 @@ private: private: static wxIDirectFBEventBufferPtr ms_buffer; - DECLARE_NO_COPY_CLASS(wxEventLoop) + DECLARE_NO_COPY_CLASS(wxGUIEventLoop) }; #endif // _WX_DFB_EVTLOOP_H_