]>
Commit | Line | Data |
---|---|---|
8cf73271 SC |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: timer.h | |
3 | // Purpose: wxTimer class | |
4 | // Author: Stefan Csomor | |
5 | // Modified by: | |
6 | // Created: 1998-01-01 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Stefan Csomor | |
65571936 | 9 | // Licence: wxWindows licence |
8cf73271 SC |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_TIMER_H_ | |
13 | #define _WX_TIMER_H_ | |
14 | ||
8cf73271 SC |
15 | #include "wx/object.h" |
16 | #include "wx/mac/macnotfy.h" | |
17 | ||
18 | class wxTimer ; | |
19 | ||
20 | struct MacTimerInfo ; | |
21 | ||
22 | class WXDLLEXPORT wxTimer: public wxTimerBase | |
23 | { | |
24 | public: | |
25 | wxTimer() { Init(); } | |
26 | wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id) { Init(); } | |
27 | ~wxTimer(); | |
28 | ||
29 | virtual bool Start(int milliseconds = -1, | |
30 | bool one_shot = FALSE); // Start timer | |
31 | virtual void Stop(); // Stop timer | |
32 | ||
33 | virtual bool IsRunning() const ; | |
34 | ||
35 | MacTimerInfo* m_info; | |
36 | protected : | |
37 | void Init(); | |
38 | private: | |
39 | ||
40 | DECLARE_ABSTRACT_CLASS(wxTimer) | |
41 | }; | |
42 | ||
43 | #endif | |
44 | // _WX_TIMER_H_ |