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"
15 #include "wx/unix/evtloop.h"
17 wxDFB_DECLARE_INTERFACE(IDirectFBEventBuffer
);
19 // ----------------------------------------------------------------------------
21 // ----------------------------------------------------------------------------
23 class WXDLLIMPEXP_CORE wxGUIEventLoop
: public wxConsoleEventLoop
28 // returns DirectFB event buffer used by wx
29 static wxIDirectFBEventBufferPtr
GetDirectFBEventBuffer();
32 // wxYield implementation: iterate the loop as long as there are any
36 static void InitBuffer();
37 static void CleanUp();
39 friend class wxApp
; // calls CleanUp()
42 static wxIDirectFBEventBufferPtr ms_buffer
;
43 static int ms_bufferFd
;
45 wxDECLARE_NO_COPY_CLASS(wxGUIEventLoop
);
48 #endif // _WX_DFB_EVTLOOP_H_