1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: timer.h
|
|
|
|
// Purpose:
|
|
|
|
// Author: Robert Roebling
|
1998-10-29 13:03:18 -05:00
|
|
|
// Id: $Id$
|
|
|
|
// Copyright: (c) 1998 Robert Roebling
|
1998-05-20 10:01:55 -04:00
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __GTKTIMERH__
|
|
|
|
#define __GTKTIMERH__
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
1999-11-12 14:19:38 -05:00
|
|
|
#pragma interface "timer.h"
|
1998-05-20 10:01:55 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxTimer
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
1999-11-12 14:19:38 -05:00
|
|
|
class wxTimer : public wxTimerBase
|
1998-05-20 10:01:55 -04:00
|
|
|
{
|
1998-10-12 09:09:15 -04:00
|
|
|
public:
|
|
|
|
wxTimer();
|
|
|
|
~wxTimer();
|
|
|
|
|
|
|
|
virtual bool Start( int millisecs = -1, bool oneShot = FALSE );
|
|
|
|
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
|
|
|
|
|
|
|
protected:
|
1998-05-20 10:01:55 -04:00
|
|
|
int m_tag;
|
1998-10-12 09:09:15 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_ABSTRACT_CLASS(wxTimer)
|
1998-05-20 10:01:55 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __GTKTIMERH__
|