]>
Commit | Line | Data |
---|---|---|
1 | /////////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/dfb/evtloop.h | |
3 | // Purpose: declares wxEventLoop class | |
4 | // Author: Vaclav Slavik | |
5 | // Created: 2006-08-16 | |
6 | // Copyright: (c) 2006 REA Elektronik GmbH | |
7 | // Licence: wxWindows licence | |
8 | /////////////////////////////////////////////////////////////////////////////// | |
9 | ||
10 | #ifndef _WX_DFB_EVTLOOP_H_ | |
11 | #define _WX_DFB_EVTLOOP_H_ | |
12 | ||
13 | #include "wx/dfb/dfbptr.h" | |
14 | #include "wx/unix/evtloop.h" | |
15 | ||
16 | wxDFB_DECLARE_INTERFACE(IDirectFBEventBuffer); | |
17 | ||
18 | // ---------------------------------------------------------------------------- | |
19 | // wxEventLoop | |
20 | // ---------------------------------------------------------------------------- | |
21 | ||
22 | class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxConsoleEventLoop | |
23 | { | |
24 | public: | |
25 | wxGUIEventLoop(); | |
26 | ||
27 | virtual bool YieldFor(long eventsToProcess); | |
28 | ||
29 | // returns DirectFB event buffer used by wx | |
30 | static wxIDirectFBEventBufferPtr GetDirectFBEventBuffer(); | |
31 | ||
32 | private: | |
33 | static void InitBuffer(); | |
34 | static void CleanUp(); | |
35 | ||
36 | friend class wxApp; // calls CleanUp() | |
37 | ||
38 | private: | |
39 | static wxIDirectFBEventBufferPtr ms_buffer; | |
40 | static int ms_bufferFd; | |
41 | ||
42 | wxDECLARE_NO_COPY_CLASS(wxGUIEventLoop); | |
43 | }; | |
44 | ||
45 | #endif // _WX_DFB_EVTLOOP_H_ |