1998-05-20 14:01:55 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2011-03-20 00:14:35 +00:00
|
|
|
// Name: wx/gtk/private/timer.h
|
2007-04-20 01:29:16 +00:00
|
|
|
// Purpose: wxTimerImpl for wxGTK
|
1998-05-20 14:01:55 +00:00
|
|
|
// Author: Robert Roebling
|
1998-10-29 18:03:18 +00:00
|
|
|
// Copyright: (c) 1998 Robert Roebling
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 14:01:55 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2007-04-20 01:29:16 +00:00
|
|
|
#ifndef _WX_GTK_PRIVATE_TIMER_H_
|
|
|
|
#define _WX_GTK_PRIVATE_TIMER_H_
|
|
|
|
|
2007-07-11 00:00:33 +00:00
|
|
|
#if wxUSE_TIMER
|
|
|
|
|
2007-04-20 01:29:16 +00:00
|
|
|
#include "wx/private/timer.h"
|
1998-05-20 14:01:55 +00:00
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxTimer
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2007-04-20 01:29:16 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxGTKTimerImpl : public wxTimerImpl
|
1998-05-20 14:01:55 +00:00
|
|
|
{
|
1998-10-12 13:09:15 +00:00
|
|
|
public:
|
2011-12-29 14:42:13 +00:00
|
|
|
wxGTKTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { m_sourceId = 0; }
|
1998-10-12 13:09:15 +00:00
|
|
|
|
2007-04-20 01:29:16 +00:00
|
|
|
virtual bool Start( int millisecs = -1, bool oneShot = false );
|
1998-10-12 13:09:15 +00:00
|
|
|
virtual void Stop();
|
2007-03-10 18:51:55 +00:00
|
|
|
virtual bool IsRunning() const { return m_sourceId != 0; }
|
1998-10-12 13:09:15 +00:00
|
|
|
|
2007-04-20 01:29:16 +00:00
|
|
|
protected:
|
|
|
|
int m_sourceId;
|
1998-05-20 14:01:55 +00:00
|
|
|
};
|
|
|
|
|
2007-07-11 00:00:33 +00:00
|
|
|
#endif // wxUSE_TIMER
|
|
|
|
|
2007-04-20 01:29:16 +00:00
|
|
|
#endif // _WX_GTK_PRIVATE_TIMER_H_
|