1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/private/timer.h
3 // Purpose: wxTimer class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/private/timerimpl.h"
17 class WXDLLEXPORT wxOS2TimerImpl
: public wxTimerImpl
19 friend void wxProcessTimer(wxOS2TimerImpl
& timer
);
22 wxOS2TimerImpl(wxTimer
*timer
) : wxTimerImpl(timer
) { Init(); }
23 virtual ~wxOS2TimerImpl();
25 virtual void Notify(void);
26 virtual bool Start( int nMilliseconds
= -1
27 ,bool bOneShot
= FALSE
29 virtual void Stop(void);
31 inline virtual bool IsRunning(void) const { return m_ulId
!= 0L; }
32 inline int GetTimerId(void) const { return m_idTimer
; }
41 extern ULONG
wxTimerProc( HWND
WXUNUSED(hwnd
)