]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/timer.h
fix aui crash related to SF bug 1531361
[wxWidgets.git] / include / wx / gtk / timer.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/timer.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
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:
20 wxTimer() { Init(); }
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
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__