1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2000-02-04 20:57:38 -05:00
|
|
|
// Name: wx/gtk/timer.h
|
1998-05-20 10:01:55 -04:00
|
|
|
// Purpose:
|
|
|
|
// 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
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __GTKTIMERH__
|
|
|
|
#define __GTKTIMERH__
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxTimer
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2005-08-02 18:58:06 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxTimer : public wxTimerBase
|
1998-05-20 10:01:55 -04:00
|
|
|
{
|
1998-10-12 09:09:15 -04:00
|
|
|
public:
|
2000-02-04 20:57:38 -05:00
|
|
|
wxTimer() { Init(); }
|
|
|
|
wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id)
|
|
|
|
{ Init(); }
|
1998-10-12 09:09:15 -04:00
|
|
|
~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:
|
2000-02-04 20:57:38 -05:00
|
|
|
void Init();
|
|
|
|
|
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__
|