]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/timer.h
Added wxFrame::SetStatusBar
[wxWidgets.git] / include / wx / gtk / timer.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: timer.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Created: 01/02/97
6 // Id:
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11
12 #ifndef __GTKTIMERH__
13 #define __GTKTIMERH__
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "wx/defs.h"
20 #include "wx/object.h"
21
22 //-----------------------------------------------------------------------------
23 // derived classes
24 //-----------------------------------------------------------------------------
25
26 class wxTimer;
27
28 //-----------------------------------------------------------------------------
29 // wxTimer
30 //-----------------------------------------------------------------------------
31
32 class wxTimer: public wxObject
33 {
34 public:
35 wxTimer();
36 ~wxTimer();
37
38 int Interval() const { return m_time; }
39
40 bool OneShot() const { return m_oneShot; }
41
42 virtual bool Start( int millisecs = -1, bool oneShot = FALSE );
43 virtual void Stop();
44
45 virtual void Notify() = 0; // override this
46
47 protected:
48 int m_tag;
49 int m_time;
50 bool m_oneShot;
51
52 private:
53 DECLARE_ABSTRACT_CLASS(wxTimer)
54 };
55
56 #endif // __GTKTIMERH__