]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/private/timer.h
Remove all lines containing cvs/svn "$Id$" keyword.
[wxWidgets.git] / include / wx / msw / private / timer.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/private/timer.h
3 // Purpose: wxTimer class
4 // Author: Julian Smart
5 // Created: 01/02/97
6 // Copyright: (c) Julian Smart
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_MSW_PRIVATE_TIMER_H_
11 #define _WX_MSW_PRIVATE_TIMER_H_
12
13 #if wxUSE_TIMER
14
15 #include "wx/private/timer.h"
16 #include "wx/msw/wrapwin.h" // for WPARAM
17
18 class WXDLLIMPEXP_BASE wxMSWTimerImpl : public wxTimerImpl
19 {
20 public:
21 wxMSWTimerImpl(wxTimer *timer) : wxTimerImpl(timer) { m_id = 0; }
22
23 virtual bool Start(int milliseconds = -1, bool oneShot = false);
24 virtual void Stop();
25
26 virtual bool IsRunning() const { return m_id != 0; }
27
28 protected:
29 // this must be 64 bit under Win64 as WPARAM (storing timer ids) is 64 bit
30 // there and so the ids may possibly not fit in 32 bits
31 WPARAM m_id;
32 };
33
34 #endif // wxUSE_TIMER
35
36 #endif // _WX_TIMERH_