]> git.saurik.com Git - wxWidgets.git/blame - include/wx/dfb/evtloop.h
flipped accessor conforming to plain c++ impl
[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
b3c86150 28 // returns DirectFB event buffer used by wx
52c8d32a 29 static wxIDirectFBEventBufferPtr GetDirectFBEventBuffer();
b3c86150 30
86e9b8f2 31private:
757b694b
VS
32 // wxYield implementation: iterate the loop as long as there are any
33 // pending events
34 void Yield();
35
b3c86150 36 static void InitBuffer();
e48a3055
VS
37 static void CleanUp();
38
86e9b8f2 39 friend class wxApp; // calls CleanUp()
b3c86150
VS
40
41private:
52c8d32a 42 static wxIDirectFBEventBufferPtr ms_buffer;
86e9b8f2 43 static int ms_bufferFd;
b3c86150 44
c0c133e1 45 wxDECLARE_NO_COPY_CLASS(wxGUIEventLoop);
b3c86150
VS
46};
47
48#endif // _WX_DFB_EVTLOOP_H_