]>
Commit | Line | Data |
---|---|---|
1 | /////////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/gtk/evtloopsrc.h | |
3 | // Purpose: wxGTKEventLoopSource class | |
4 | // Author: Vadim Zeitlin | |
5 | // Created: 2009-10-21 | |
6 | // Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org> | |
7 | // Licence: wxWindows licence | |
8 | /////////////////////////////////////////////////////////////////////////////// | |
9 | ||
10 | #ifndef _WX_GTK_EVTLOOPSRC_H_ | |
11 | #define _WX_GTK_EVTLOOPSRC_H_ | |
12 | ||
13 | // ---------------------------------------------------------------------------- | |
14 | // wxGTKEventLoopSource: wxEventLoopSource for GTK port | |
15 | // ---------------------------------------------------------------------------- | |
16 | ||
17 | class wxGTKEventLoopSource : public wxEventLoopSource | |
18 | { | |
19 | public: | |
20 | // sourceId is the id of the watch in GTK context, not the FD of the file | |
21 | // this source corresponds to | |
22 | wxGTKEventLoopSource(unsigned sourceId, | |
23 | wxEventLoopSourceHandler *handler, | |
24 | int flags) | |
25 | : wxEventLoopSource(handler, flags), | |
26 | m_sourceId(sourceId) | |
27 | { | |
28 | } | |
29 | ||
30 | virtual ~wxGTKEventLoopSource(); | |
31 | ||
32 | private: | |
33 | const unsigned m_sourceId; | |
34 | ||
35 | wxDECLARE_NO_COPY_CLASS(wxGTKEventLoopSource); | |
36 | }; | |
37 | ||
38 | #endif // _WX_GTK_EVTLOOPSRC_H_ | |
39 |