X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b3c861501a451503b31c075ccb59d16b0ae01e99..2c17722ec8a15d93ef9ec4a4ff390a0db9a34d9d:/include/wx/dfb/evtloop.h diff --git a/include/wx/dfb/evtloop.h b/include/wx/dfb/evtloop.h index 05a08f87ea..9845acd265 100644 --- a/include/wx/dfb/evtloop.h +++ b/include/wx/dfb/evtloop.h @@ -11,7 +11,7 @@ #ifndef _WX_DFB_EVTLOOP_H_ #define _WX_DFB_EVTLOOP_H_ -#include "wx/dfb/ifacehelpers.h" +#include "wx/dfb/dfbptr.h" wxDFB_DECLARE_INTERFACE(IDirectFBEventBuffer); struct wxDFBEvent; @@ -29,7 +29,11 @@ public: virtual bool Dispatch(); // returns DirectFB event buffer used by wx - static IDirectFBEventBufferPtr GetDirectFBEventBuffer(); + static wxIDirectFBEventBufferPtr GetDirectFBEventBuffer(); + + // wxYield implementation: iterate the loop as long as there are any + // pending events + void Yield(); protected: virtual void WakeUp(); @@ -39,11 +43,12 @@ protected: private: static void InitBuffer(); + static void CleanUp(); -private: - static IDirectFBEventBufferPtr ms_buffer; + friend class wxApp; // calls CleanUp() and WakeUp() - friend class wxApp; // calls WakeUp() +private: + static wxIDirectFBEventBufferPtr ms_buffer; DECLARE_NO_COPY_CLASS(wxEventLoop) };