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