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();
35 virtual void WakeUp();
36 virtual void OnNextIteration();
38 virtual void HandleDFBEvent(const wxDFBEvent
& event
);
41 static void InitBuffer();
44 static wxIDirectFBEventBufferPtr ms_buffer
;
46 friend class wxApp
; // calls WakeUp()
48 DECLARE_NO_COPY_CLASS(wxEventLoop
)
51 #endif // _WX_DFB_EVTLOOP_H_