X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9af42efda6c78093872a67180d43d5eeba261fee..d642db66a5efc82d374b813022c72ba88bc50839:/include/wx/dfb/evtloop.h diff --git a/include/wx/dfb/evtloop.h b/include/wx/dfb/evtloop.h index 4c3380819a..2a58619ed1 100644 --- a/include/wx/dfb/evtloop.h +++ b/include/wx/dfb/evtloop.h @@ -12,46 +12,35 @@ #define _WX_DFB_EVTLOOP_H_ #include "wx/dfb/dfbptr.h" +#include "wx/unix/evtloop.h" wxDFB_DECLARE_INTERFACE(IDirectFBEventBuffer); -struct wxDFBEvent; // ---------------------------------------------------------------------------- // wxEventLoop // ---------------------------------------------------------------------------- -class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxEventLoopManual +class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxConsoleEventLoop { public: wxGUIEventLoop(); - virtual bool Pending() const; - virtual bool Dispatch(); - virtual int DispatchTimeout(unsigned long timeout); + virtual bool YieldFor(long eventsToProcess); // 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(); - - virtual void HandleDFBEvent(const wxDFBEvent& event); - private: static void InitBuffer(); static void CleanUp(); - friend class wxApp; // calls CleanUp() and WakeUp() + friend class wxApp; // calls CleanUp() private: static wxIDirectFBEventBufferPtr ms_buffer; + static int ms_bufferFd; - DECLARE_NO_COPY_CLASS(wxGUIEventLoop) + wxDECLARE_NO_COPY_CLASS(wxGUIEventLoop); }; #endif // _WX_DFB_EVTLOOP_H_