]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/private/timer.h
use 6px as the default wxSizer border in wxGTK to be a little bit closer to GNOME HIG
[wxWidgets.git] / include / wx / os2 / private / timer.h
CommitLineData
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
0e320a79 7// RCS-ID: $Id$
d90895ac 8// Copyright: (c) David Webster
65571936 9// Licence: wxWindows licence
0e320a79
DW
10/////////////////////////////////////////////////////////////////////////////
11
55bfbcb9
VZ
12#ifndef _WX_OS2_PRIVATE_TIMER_H_
13#define _WX_OS2_PRIVATE_TIMER_H_
0e320a79 14
55bfbcb9 15#include "wx/private/timer.h"
0e320a79 16
c2ca375c 17class WXDLLEXPORT wxOS2TimerImpl: public wxTimerImpl
0e320a79 18{
c2ca375c 19friend void wxProcessTimer(wxOS2TimerImpl& timer);
d90895ac 20
0e320a79 21public:
55bfbcb9 22 wxOS2TimerImpl(wxTimer *timer) : wxTimerImpl(timer) { m_ulId = 0; }
0e320a79 23
55bfbcb9 24 virtual bool Start(int nMilliseconds = -1, bool bOneShot = FALSE);
9ed0fac8 25 virtual void Stop(void);
0e320a79 26
55bfbcb9 27 virtual bool IsRunning(void) const { return m_ulId != 0L; }
0e320a79
DW
28
29protected:
9ed0fac8
DW
30 ULONG m_ulId;
31 HAB m_Hab;
0e320a79
DW
32};
33
b9cf5e6d
DW
34extern ULONG wxTimerProc( HWND WXUNUSED(hwnd)
35 ,ULONG
36 ,int nIdTimer
37 ,ULONG
38 );
55bfbcb9 39#endif // _WX_OS2_PRIVATE_TIMER_H_