]>
Commit | Line | Data |
---|---|---|
52479aef 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 |
52479aef SC |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_TIMER_H_ | |
13 | #define _WX_TIMER_H_ | |
14 | ||
15 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) | |
16 | #pragma interface "timer.h" | |
17 | #endif | |
18 | ||
19 | #include "wx/object.h" | |
20 | #include "wx/mac/macnotfy.h" | |
21 | ||
22 | class wxTimer ; | |
23 | ||
24 | struct MacTimerInfo ; | |
25 | ||
26 | class WXDLLEXPORT wxTimer: public wxTimerBase | |
27 | { | |
28 | public: | |
29 | wxTimer() { Init(); } | |
30 | wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id) { Init(); } | |
31 | ~wxTimer(); | |
32 | ||
33 | virtual bool Start(int milliseconds = -1, | |
34 | bool one_shot = FALSE); // Start timer | |
35 | virtual void Stop(); // Stop timer | |
36 | ||
37 | virtual bool IsRunning() const ; | |
38 | ||
39 | MacTimerInfo* m_info; | |
40 | protected : | |
41 | void Init(); | |
42 | private: | |
43 | ||
44 | DECLARE_ABSTRACT_CLASS(wxTimer) | |
45 | }; | |
46 | ||
47 | #endif | |
48 | // _WX_TIMER_H_ |