2009-10-22 07:36:35 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/gtk/evtloopsrc.h
|
|
|
|
// Purpose: wxGTKEventLoopSource class
|
|
|
|
// Author: Vadim Zeitlin
|
|
|
|
// Created: 2009-10-21
|
2010-04-25 17:33:16 -04:00
|
|
|
// RCS-ID: $Id$
|
2009-10-22 07:36:35 -04:00
|
|
|
// Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_GTK_EVTLOOPSRC_H_
|
|
|
|
#define _WX_GTK_EVTLOOPSRC_H_
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxGTKEventLoopSource: wxEventLoopSource for GTK port
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class wxGTKEventLoopSource : public wxEventLoopSource
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
// sourceId is the id of the watch in GTK context, not the FD of the file
|
|
|
|
// this source corresponds to
|
|
|
|
wxGTKEventLoopSource(unsigned sourceId,
|
|
|
|
wxEventLoopSourceHandler *handler,
|
|
|
|
int flags)
|
|
|
|
: wxEventLoopSource(handler, flags),
|
|
|
|
m_sourceId(sourceId)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual ~wxGTKEventLoopSource();
|
|
|
|
|
|
|
|
private:
|
|
|
|
const unsigned m_sourceId;
|
|
|
|
|
|
|
|
wxDECLARE_NO_COPY_CLASS(wxGTKEventLoopSource);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_GTK_EVTLOOPSRC_H_
|
|
|
|
|