]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/os2/private/timer.h
Richtext interface fixes and additions for Phoenix
[wxWidgets.git] / include / wx / os2 / private / timer.h
... / ...
CommitLineData
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_OS2_PRIVATE_TIMER_H_
13#define _WX_OS2_PRIVATE_TIMER_H_
14
15#include "wx/private/timer.h"
16
17class WXDLLIMPEXP_CORE wxOS2TimerImpl: public wxTimerImpl
18{
19friend void wxProcessTimer(wxOS2TimerImpl& timer);
20
21public:
22 wxOS2TimerImpl(wxTimer *timer) : wxTimerImpl(timer) { m_ulId = 0; }
23
24 virtual bool Start(int nMilliseconds = -1, bool bOneShot = FALSE);
25 virtual void Stop(void);
26
27 virtual bool IsRunning(void) const { return m_ulId != 0L; }
28
29protected:
30 ULONG m_ulId;
31 HAB m_Hab;
32};
33
34extern ULONG wxTimerProc( HWND WXUNUSED(hwnd)
35 ,ULONG
36 ,int nIdTimer
37 ,ULONG
38 );
39#endif // _WX_OS2_PRIVATE_TIMER_H_