]> git.saurik.com Git - wxWidgets.git/blame - include/wx/dfb/evtloop.h
Use correct reload flags on all platforms to avoid compilation errors
[wxWidgets.git] / include / wx / dfb / evtloop.h
CommitLineData
b3c86150
VS
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/dfb/evtloop.h
3// Purpose: declares wxEventLoop class
4// Author: Vaclav Slavik
5// Created: 2006-08-16
6// RCS-ID: $Id$
7// Copyright: (c) 2006 REA Elektronik GmbH
8// Licence: wxWindows licence
9///////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_DFB_EVTLOOP_H_
12#define _WX_DFB_EVTLOOP_H_
13
52c8d32a 14#include "wx/dfb/dfbptr.h"
86e9b8f2 15#include "wx/unix/evtloop.h"
b3c86150
VS
16
17wxDFB_DECLARE_INTERFACE(IDirectFBEventBuffer);
b3c86150
VS
18
19// ----------------------------------------------------------------------------
20// wxEventLoop
21// ----------------------------------------------------------------------------
22
86e9b8f2 23class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxConsoleEventLoop
b3c86150
VS
24{
25public:
b46b1d59 26 wxGUIEventLoop();
b3c86150 27
dde19c21
FM
28 virtual bool YieldFor(long eventsToProcess);
29
b3c86150 30 // returns DirectFB event buffer used by wx
52c8d32a 31 static wxIDirectFBEventBufferPtr GetDirectFBEventBuffer();
b3c86150 32
86e9b8f2 33private:
b3c86150 34 static void InitBuffer();
e48a3055
VS
35 static void CleanUp();
36
86e9b8f2 37 friend class wxApp; // calls CleanUp()
b3c86150
VS
38
39private:
52c8d32a 40 static wxIDirectFBEventBufferPtr ms_buffer;
86e9b8f2 41 static int ms_bufferFd;
b3c86150 42
c0c133e1 43 wxDECLARE_NO_COPY_CLASS(wxGUIEventLoop);
b3c86150
VS
44};
45
46#endif // _WX_DFB_EVTLOOP_H_