]> git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/timer.h
removed extra membersections (patch 1702329)
[wxWidgets.git] / include / wx / os2 / timer.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: 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/object.h"
16
17 class WXDLLEXPORT wxTimer: public wxTimerBase
18 {
19 friend void wxProcessTimer(wxTimer& timer);
20
21 public:
22 wxTimer() { Init(); }
23 wxTimer( wxEvtHandler* pOwner
24 ,int nId = -1
25 )
26 : wxTimerBase( pOwner
27 ,nId
28 )
29 { Init(); }
30 virtual ~wxTimer();
31
32 virtual void Notify(void);
33 virtual bool Start( int nMilliseconds = -1
34 ,bool bOneShot = FALSE
35 );
36 virtual void Stop(void);
37
38 inline virtual bool IsRunning(void) const { return m_ulId != 0L; }
39 inline int GetTimerId(void) const { return m_idTimer; }
40
41 protected:
42 void Init(void);
43
44 ULONG m_ulId;
45 HAB m_Hab;
46
47 private:
48 DECLARE_ABSTRACT_CLASS(wxTimer)
49 };
50
51 extern ULONG wxTimerProc( HWND WXUNUSED(hwnd)
52 ,ULONG
53 ,int nIdTimer
54 ,ULONG
55 );
56 #endif
57 // _WX_TIMER_H_