]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/evtloopsrc.h
Document wxKill(wxSIGTERM) reliance on having an open window in wxMSW.
[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
b1153ed6 6// RCS-ID: $Id$
5cd99866
VZ
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
18class wxGTKEventLoopSource : public wxEventLoopSource
19{
20public:
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
33private:
34 const unsigned m_sourceId;
35
36 wxDECLARE_NO_COPY_CLASS(wxGTKEventLoopSource);
37};
38
39#endif // _WX_GTK_EVTLOOPSRC_H_
40