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