]>
Commit | Line | Data |
---|---|---|
c801d85f KB |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: timer.h | |
3 | // Purpose: | |
4 | // Author: Robert Roebling | |
58614078 RR |
5 | // Id: $Id$ |
6 | // Copyright: (c) 1998 Robert Roebling | |
c801d85f KB |
7 | // Licence: wxWindows licence |
8 | ///////////////////////////////////////////////////////////////////////////// | |
9 | ||
10 | ||
11 | #ifndef __GTKTIMERH__ | |
12 | #define __GTKTIMERH__ | |
13 | ||
14 | #ifdef __GNUG__ | |
0470b1e6 | 15 | #pragma interface "timer.h" |
c801d85f KB |
16 | #endif |
17 | ||
c801d85f KB |
18 | //----------------------------------------------------------------------------- |
19 | // wxTimer | |
20 | //----------------------------------------------------------------------------- | |
21 | ||
0470b1e6 | 22 | class wxTimer : public wxTimerBase |
c801d85f | 23 | { |
03f38c58 VZ |
24 | public: |
25 | wxTimer(); | |
26 | ~wxTimer(); | |
27 | ||
03f38c58 VZ |
28 | virtual bool Start( int millisecs = -1, bool oneShot = FALSE ); |
29 | virtual void Stop(); | |
30 | ||
0470b1e6 | 31 | virtual bool IsRunning() const { return m_tag != -1; } |
03f38c58 VZ |
32 | |
33 | protected: | |
c801d85f | 34 | int m_tag; |
03f38c58 VZ |
35 | |
36 | private: | |
37 | DECLARE_ABSTRACT_CLASS(wxTimer) | |
c801d85f KB |
38 | }; |
39 | ||
40 | #endif // __GTKTIMERH__ |