]>
Commit | Line | Data |
---|---|---|
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 | DECLARE_DYNAMIC_CLASS(wxTimer) | |
35 | ||
36 | public: | |
37 | ||
38 | wxTimer(void); | |
39 | ~wxTimer(void); | |
40 | int Interval(void); | |
41 | bool OneShot(void); | |
42 | virtual void Notify(void); | |
43 | void Start( int millisecs = -1, bool oneShot = FALSE ); | |
44 | void Stop(void); | |
45 | ||
46 | private: | |
47 | ||
48 | int m_tag; | |
49 | int m_time; | |
50 | bool m_oneShot; | |
51 | }; | |
52 | ||
53 | #endif // __GTKTIMERH__ |