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