1
///////////////////////////////////////////////////////////////////////////////
2
// Name: wx/dfb/evtloop.h
3
// Purpose: declares wxEventLoop class
4
// Author: Vaclav Slavik
6
// RCS-ID: $Id: evtloop.h 58911 2009-02-15 14:25:08Z FM $
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
virtual bool YieldFor(long eventsToProcess);
30
// returns DirectFB event buffer used by wx
31
static wxIDirectFBEventBufferPtr GetDirectFBEventBuffer();
34
static void InitBuffer();
35
static void CleanUp();
37
friend class wxApp; // calls CleanUp()
40
static wxIDirectFBEventBufferPtr ms_buffer;
41
static int ms_bufferFd;
43
wxDECLARE_NO_COPY_CLASS(wxGUIEventLoop);
46
#endif // _WX_DFB_EVTLOOP_H_