1 /////////////////////////////////////////////////////////////////////////////
2 // Name:        wx/gtk/timer.h
3 // Purpose:
4 // Author:      Robert Roebling
5 // Id:          $Id: timer.h 41020 2006-09-05 20:47:48Z VZ $
6 // Copyright:   (c) 1998 Robert Roebling
7 // Licence:     wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9 
10 #ifndef __GTKTIMERH__
11 #define __GTKTIMERH__
12 
13 //-----------------------------------------------------------------------------
14 // wxTimer
15 //-----------------------------------------------------------------------------
16 
17 class WXDLLIMPEXP_CORE wxTimer : public wxTimerBase
18 {
19 public:
wxTimer()20     wxTimer() { Init(); }
wxTimerBase(owner,id)21     wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id)
22         { Init(); }
23     virtual ~wxTimer();
24 
25     virtual bool Start( int millisecs = -1, bool oneShot = FALSE );
26     virtual void Stop();
27 
IsRunning()28     virtual bool IsRunning() const { return m_tag != -1; }
29 
30 protected:
31     void Init();
32 
33     int  m_tag;
34 
35 private:
36     DECLARE_ABSTRACT_CLASS(wxTimer)
37 };
38 
39 #endif // __GTKTIMERH__
40