]>
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 |
d90895ac | 7 | // Copyright: (c) David Webster |
65571936 | 8 | // Licence: wxWindows licence |
0e320a79 DW |
9 | ///////////////////////////////////////////////////////////////////////////// |
10 | ||
55bfbcb9 VZ |
11 | #ifndef _WX_OS2_PRIVATE_TIMER_H_ |
12 | #define _WX_OS2_PRIVATE_TIMER_H_ | |
0e320a79 | 13 | |
55bfbcb9 | 14 | #include "wx/private/timer.h" |
0e320a79 | 15 | |
53a2db12 | 16 | class WXDLLIMPEXP_CORE wxOS2TimerImpl: public wxTimerImpl |
0e320a79 | 17 | { |
c2ca375c | 18 | friend void wxProcessTimer(wxOS2TimerImpl& timer); |
d90895ac | 19 | |
0e320a79 | 20 | public: |
55bfbcb9 | 21 | wxOS2TimerImpl(wxTimer *timer) : wxTimerImpl(timer) { m_ulId = 0; } |
0e320a79 | 22 | |
55bfbcb9 | 23 | virtual bool Start(int nMilliseconds = -1, bool bOneShot = FALSE); |
9ed0fac8 | 24 | virtual void Stop(void); |
0e320a79 | 25 | |
55bfbcb9 | 26 | virtual bool IsRunning(void) const { return m_ulId != 0L; } |
0e320a79 DW |
27 | |
28 | protected: | |
9ed0fac8 DW |
29 | ULONG m_ulId; |
30 | HAB m_Hab; | |
0e320a79 DW |
31 | }; |
32 | ||
b9cf5e6d DW |
33 | extern ULONG wxTimerProc( HWND WXUNUSED(hwnd) |
34 | ,ULONG | |
35 | ,int nIdTimer | |
36 | ,ULONG | |
37 | ); | |
55bfbcb9 | 38 | #endif // _WX_OS2_PRIVATE_TIMER_H_ |