]>
Commit | Line | Data |
---|---|---|
2bda0e17 | 1 | ///////////////////////////////////////////////////////////////////////////// |
c2ca375c | 2 | // Name: wx/msw/private/timer.h |
2bda0e17 KB |
3 | // Purpose: wxTimer class |
4 | // Author: Julian Smart | |
2bda0e17 KB |
5 | // Created: 01/02/97 |
6 | // RCS-ID: $Id$ | |
bbcdf8bc | 7 | // Copyright: (c) Julian Smart |
65571936 | 8 | // Licence: wxWindows licence |
2bda0e17 KB |
9 | ///////////////////////////////////////////////////////////////////////////// |
10 | ||
c2ca375c VZ |
11 | #ifndef _WX_MSW_PRIVATE_TIMER_H_ |
12 | #define _WX_MSW_PRIVATE_TIMER_H_ | |
2bda0e17 | 13 | |
a8ff046b VZ |
14 | #if wxUSE_TIMER |
15 | ||
c2ca375c | 16 | #include "wx/private/timer.h" |
c085e333 | 17 | |
c2ca375c VZ |
18 | class WXDLLIMPEXP_BASE wxMSWTimerImpl : public wxTimerImpl |
19 | { | |
03f38c58 | 20 | public: |
c2ca375c | 21 | wxMSWTimerImpl(wxTimer *timer) : wxTimerImpl(timer) { m_id = 0; } |
03f38c58 | 22 | |
bfbb0b4c | 23 | virtual bool Start(int milliseconds = -1, bool oneShot = false); |
0470b1e6 | 24 | virtual void Stop(); |
03f38c58 | 25 | |
0470b1e6 | 26 | virtual bool IsRunning() const { return m_id != 0; } |
03f38c58 | 27 | |
c085e333 | 28 | protected: |
97f278b4 | 29 | unsigned long m_id; |
2bda0e17 KB |
30 | }; |
31 | ||
a8ff046b VZ |
32 | #endif // wxUSE_TIMER |
33 | ||
c2ca375c | 34 | #endif // _WX_TIMERH_ |