1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2007-04-19 21:29:16 -04:00
|
|
|
// Name: wx/gtk1/private/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_GTK1_PRIVATE_TIMER_H_
|
|
|
|
#define _WX_GTK1_PRIVATE_TIMER_H_
|
|
|
|
|
|
|
|
#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_tag = -1; }
|
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();
|
|
|
|
|
1999-11-12 14:19:38 -05:00
|
|
|
virtual bool IsRunning() const { return m_tag != -1; }
|
1998-10-12 09:09:15 -04:00
|
|
|
|
|
|
|
private:
|
2007-04-19 21:29:16 -04:00
|
|
|
// registered timeout id, -1 if the timer isn't running
|
|
|
|
int m_tag;
|
1998-05-20 10:01:55 -04:00
|
|
|
};
|
|
|
|
|
2007-04-19 21:29:16 -04:00
|
|
|
#endif // _WX_GTK1_PRIVATE_TIMER_H_
|