]>
Commit | Line | Data |
---|---|---|
0e320a79 | 1 | ///////////////////////////////////////////////////////////////////////////// |
c2ca375c | 2 | // Name: wx/os2/private/timer.h |
0e320a79 | 3 | // Purpose: wxTimer class |
d90895ac | 4 | // Author: David Webster |
0e320a79 | 5 | // Modified by: |
d90895ac | 6 | // Created: 10/17/99 |
0e320a79 | 7 | // RCS-ID: $Id$ |
d90895ac | 8 | // Copyright: (c) David Webster |
65571936 | 9 | // Licence: wxWindows licence |
0e320a79 DW |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_TIMER_H_ | |
13 | #define _WX_TIMER_H_ | |
14 | ||
c2ca375c | 15 | #include "wx/private/timerimpl.h" |
0e320a79 | 16 | |
c2ca375c | 17 | class WXDLLEXPORT wxOS2TimerImpl: public wxTimerImpl |
0e320a79 | 18 | { |
c2ca375c | 19 | friend void wxProcessTimer(wxOS2TimerImpl& timer); |
d90895ac | 20 | |
0e320a79 | 21 | public: |
c2ca375c VZ |
22 | wxOS2TimerImpl(wxTimer *timer) : wxTimerImpl(timer) { Init(); } |
23 | virtual ~wxOS2TimerImpl(); | |
0e320a79 | 24 | |
6c0fdfbb | 25 | virtual void Notify(void); |
9ed0fac8 DW |
26 | virtual bool Start( int nMilliseconds = -1 |
27 | ,bool bOneShot = FALSE | |
28 | ); | |
29 | virtual void Stop(void); | |
0e320a79 | 30 | |
9ed0fac8 | 31 | inline virtual bool IsRunning(void) const { return m_ulId != 0L; } |
5d644707 | 32 | inline int GetTimerId(void) const { return m_idTimer; } |
0e320a79 DW |
33 | |
34 | protected: | |
b9cf5e6d DW |
35 | void Init(void); |
36 | ||
9ed0fac8 DW |
37 | ULONG m_ulId; |
38 | HAB m_Hab; | |
0e320a79 DW |
39 | }; |
40 | ||
b9cf5e6d DW |
41 | extern ULONG wxTimerProc( HWND WXUNUSED(hwnd) |
42 | ,ULONG | |
43 | ,int nIdTimer | |
44 | ,ULONG | |
45 | ); | |
0e320a79 DW |
46 | #endif |
47 | // _WX_TIMER_H_ |