]>
Commit | Line | Data |
---|---|---|
b3c86150 VS |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/dfb/evtloop.h | |
3 | // Purpose: declares wxEventLoop class | |
4 | // Author: Vaclav Slavik | |
5 | // Created: 2006-08-16 | |
b3c86150 VS |
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 | ||
52c8d32a | 13 | #include "wx/dfb/dfbptr.h" |
86e9b8f2 | 14 | #include "wx/unix/evtloop.h" |
b3c86150 VS |
15 | |
16 | wxDFB_DECLARE_INTERFACE(IDirectFBEventBuffer); | |
b3c86150 VS |
17 | |
18 | // ---------------------------------------------------------------------------- | |
19 | // wxEventLoop | |
20 | // ---------------------------------------------------------------------------- | |
21 | ||
86e9b8f2 | 22 | class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxConsoleEventLoop |
b3c86150 VS |
23 | { |
24 | public: | |
b46b1d59 | 25 | wxGUIEventLoop(); |
b3c86150 | 26 | |
dde19c21 FM |
27 | virtual bool YieldFor(long eventsToProcess); |
28 | ||
b3c86150 | 29 | // returns DirectFB event buffer used by wx |
52c8d32a | 30 | static wxIDirectFBEventBufferPtr GetDirectFBEventBuffer(); |
b3c86150 | 31 | |
86e9b8f2 | 32 | private: |
b3c86150 | 33 | static void InitBuffer(); |
e48a3055 VS |
34 | static void CleanUp(); |
35 | ||
86e9b8f2 | 36 | friend class wxApp; // calls CleanUp() |
b3c86150 VS |
37 | |
38 | private: | |
52c8d32a | 39 | static wxIDirectFBEventBufferPtr ms_buffer; |
86e9b8f2 | 40 | static int ms_bufferFd; |
b3c86150 | 41 | |
c0c133e1 | 42 | wxDECLARE_NO_COPY_CLASS(wxGUIEventLoop); |
b3c86150 VS |
43 | }; |
44 | ||
45 | #endif // _WX_DFB_EVTLOOP_H_ |