]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/dfb/evtloop.h
Ensure that key events are sent to focused window first in wxGTK.
[wxWidgets.git] / include / wx / dfb / evtloop.h
... / ...
CommitLineData
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
14#include "wx/dfb/dfbptr.h"
15#include "wx/unix/evtloop.h"
16
17wxDFB_DECLARE_INTERFACE(IDirectFBEventBuffer);
18
19// ----------------------------------------------------------------------------
20// wxEventLoop
21// ----------------------------------------------------------------------------
22
23class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxConsoleEventLoop
24{
25public:
26 wxGUIEventLoop();
27
28 virtual bool YieldFor(long eventsToProcess);
29
30 // returns DirectFB event buffer used by wx
31 static wxIDirectFBEventBufferPtr GetDirectFBEventBuffer();
32
33private:
34 static void InitBuffer();
35 static void CleanUp();
36
37 friend class wxApp; // calls CleanUp()
38
39private:
40 static wxIDirectFBEventBufferPtr ms_buffer;
41 static int ms_bufferFd;
42
43 wxDECLARE_NO_COPY_CLASS(wxGUIEventLoop);
44};
45
46#endif // _WX_DFB_EVTLOOP_H_