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