1998-05-20 14:01:55 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2006-01-23 02:28:01 +00:00
|
|
|
// Name: wx/gtk1/timer.h
|
1998-05-20 14:01:55 +00:00
|
|
|
// Purpose:
|
|
|
|
// Author: Robert Roebling
|
1998-10-29 18:03:18 +00:00
|
|
|
// Id: $Id$
|
|
|
|
// Copyright: (c) 1998 Robert Roebling
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 14:01:55 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __GTKTIMERH__
|
|
|
|
#define __GTKTIMERH__
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxTimer
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2005-08-02 22:58:06 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxTimer : public wxTimerBase
|
1998-05-20 14:01:55 +00:00
|
|
|
{
|
1998-10-12 13:09:15 +00:00
|
|
|
public:
|
2000-02-05 01:57:38 +00:00
|
|
|
wxTimer() { Init(); }
|
|
|
|
wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id)
|
|
|
|
{ Init(); }
|
2006-09-05 20:47:48 +00:00
|
|
|
virtual ~wxTimer();
|
1998-10-12 13:09:15 +00:00
|
|
|
|
|
|
|
virtual bool Start( int millisecs = -1, bool oneShot = FALSE );
|
|
|
|
virtual void Stop();
|
|
|
|
|
1999-11-12 19:19:38 +00:00
|
|
|
virtual bool IsRunning() const { return m_tag != -1; }
|
1998-10-12 13:09:15 +00:00
|
|
|
|
|
|
|
protected:
|
2000-02-05 01:57:38 +00:00
|
|
|
void Init();
|
|
|
|
|
1998-05-20 14:01:55 +00:00
|
|
|
int m_tag;
|
1998-10-12 13:09:15 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_ABSTRACT_CLASS(wxTimer)
|
1998-05-20 14:01:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __GTKTIMERH__
|