1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/dfb/evtloop.h
3 // Purpose: declares wxEventLoop class
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2006 REA Elektronik GmbH
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_DFB_EVTLOOP_H_
11 #define _WX_DFB_EVTLOOP_H_
13 #include "wx/dfb/dfbptr.h"
14 #include "wx/unix/evtloop.h"
16 wxDFB_DECLARE_INTERFACE(IDirectFBEventBuffer
);
18 // ----------------------------------------------------------------------------
20 // ----------------------------------------------------------------------------
22 class WXDLLIMPEXP_CORE wxGUIEventLoop
: public wxConsoleEventLoop
27 virtual bool YieldFor(long eventsToProcess
);
29 // returns DirectFB event buffer used by wx
30 static wxIDirectFBEventBufferPtr
GetDirectFBEventBuffer();
33 static void InitBuffer();
34 static void CleanUp();
36 friend class wxApp
; // calls CleanUp()
39 static wxIDirectFBEventBufferPtr ms_buffer
;
40 static int ms_bufferFd
;
42 wxDECLARE_NO_COPY_CLASS(wxGUIEventLoop
);
45 #endif // _WX_DFB_EVTLOOP_H_