]>
Commit | Line | Data |
---|---|---|
83df96d6 JS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: timer.h | |
3 | // Purpose: wxTimer class | |
b513212d JS |
4 | // Author: Vaclav Slavik |
5 | // Id: $Id$ | |
6 | // Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com) | |
7 | // Licence: wxWindows licence | |
83df96d6 JS |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | ||
b513212d JS |
10 | |
11 | #ifndef __WX_TIMER_H__ | |
12 | #define __WX_TIMER_H__ | |
83df96d6 JS |
13 | |
14 | #ifdef __GNUG__ | |
b513212d | 15 | #pragma interface "timer.h" |
83df96d6 JS |
16 | #endif |
17 | ||
b513212d JS |
18 | //----------------------------------------------------------------------------- |
19 | // wxTimer | |
20 | //----------------------------------------------------------------------------- | |
21 | ||
22 | class wxTimerDesc; | |
23 | ||
83df96d6 JS |
24 | class WXDLLEXPORT wxTimer : public wxTimerBase |
25 | { | |
83df96d6 JS |
26 | public: |
27 | wxTimer() { Init(); } | |
28 | wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id) | |
b513212d | 29 | { Init(); } |
83df96d6 | 30 | ~wxTimer(); |
b513212d JS |
31 | |
32 | virtual bool Start(int millisecs = -1, bool oneShot = FALSE); | |
83df96d6 | 33 | virtual void Stop(); |
b513212d JS |
34 | |
35 | virtual bool IsRunning() const; | |
36 | ||
37 | // implementation | |
38 | static void NotifyTimers(); | |
39 | ||
83df96d6 JS |
40 | protected: |
41 | void Init(); | |
b513212d | 42 | |
83df96d6 | 43 | private: |
b513212d JS |
44 | wxTimerDesc *m_desc; |
45 | ||
46 | DECLARE_ABSTRACT_CLASS(wxTimer) | |
83df96d6 JS |
47 | }; |
48 | ||
b513212d | 49 | #endif // __WX_TIMER_H__ |