]>
Commit | Line | Data |
---|---|---|
0dbd6262 SC |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: timer.h | |
3 | // Purpose: wxTimer class | |
4 | // Author: AUTHOR | |
5 | // Modified by: | |
6 | // Created: ??/??/98 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) AUTHOR | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef _WX_TIMER_H_ | |
13 | #define _WX_TIMER_H_ | |
14 | ||
15 | #ifdef __GNUG__ | |
16 | #pragma interface "timer.h" | |
17 | #endif | |
18 | ||
19 | #include "wx/object.h" | |
05adb9d2 | 20 | #include "wx/mac/macnotfy.h" |
0dbd6262 | 21 | |
05adb9d2 SC |
22 | class wxTimer ; |
23 | ||
24 | typedef struct MacTimerInfo | |
25 | { | |
26 | TMTask m_task; | |
27 | wxMacNotifierTableRef m_table ; | |
28 | wxTimer* m_timer ; | |
29 | } ; | |
30 | ||
31 | class WXDLLEXPORT wxTimer: public wxTimerBase | |
0dbd6262 SC |
32 | { |
33 | public: | |
34 | wxTimer(); | |
35 | ~wxTimer(); | |
36 | ||
37 | virtual bool Start(int milliseconds = -1, | |
38 | bool one_shot = FALSE); // Start timer | |
39 | virtual void Stop(); // Stop timer | |
40 | ||
05adb9d2 | 41 | virtual bool IsRunning() const ; |
0dbd6262 | 42 | |
05adb9d2 | 43 | MacTimerInfo m_info; |
0dbd6262 SC |
44 | private: |
45 | DECLARE_ABSTRACT_CLASS(wxTimer) | |
46 | }; | |
47 | ||
0dbd6262 SC |
48 | #endif |
49 | // _WX_TIMER_H_ |