1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/dfb/evtloop.h
3 // Purpose: declares wxEventLoop class
4 // Author: Vaclav Slavik
7 // Copyright: (c) 2006 REA Elektronik GmbH
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_DFB_EVTLOOP_H_
12 #define _WX_DFB_EVTLOOP_H_
14 #include "wx/dfb/dfbptr.h"
16 wxDFB_DECLARE_INTERFACE(IDirectFBEventBuffer
);
19 // ----------------------------------------------------------------------------
21 // ----------------------------------------------------------------------------
23 class WXDLLIMPEXP_CORE wxEventLoop
: public wxEventLoopManual
28 virtual bool Pending() const;
29 virtual bool Dispatch();
31 // returns DirectFB event buffer used by wx
32 static wxIDirectFBEventBufferPtr
GetDirectFBEventBuffer();
34 // wxYield implementation: iterate the loop as long as there are any
39 virtual void WakeUp();
40 virtual void OnNextIteration();
42 virtual void HandleDFBEvent(const wxDFBEvent
& event
);
45 static void InitBuffer();
46 static void CleanUp();
48 friend class wxApp
; // calls CleanUp() and WakeUp()
51 static wxIDirectFBEventBufferPtr ms_buffer
;
53 DECLARE_NO_COPY_CLASS(wxEventLoop
)
56 #endif // _WX_DFB_EVTLOOP_H_