]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/evtloopsrc.h
No real changes, just make wxWindow::CanScroll() virtual.
[wxWidgets.git] / include / wx / gtk / evtloopsrc.h
CommitLineData
5cd99866
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/gtk/evtloopsrc.h
3// Purpose: wxGTKEventLoopSource class
4// Author: Vadim Zeitlin
5// Created: 2009-10-21
5cd99866
VZ
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
17class wxGTKEventLoopSource : public wxEventLoopSource
18{
19public:
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
32private:
33 const unsigned m_sourceId;
34
35 wxDECLARE_NO_COPY_CLASS(wxGTKEventLoopSource);
36};
37
38#endif // _WX_GTK_EVTLOOPSRC_H_
39