]> git.saurik.com Git - wxWidgets.git/blame - include/wx/generic/timer.h
wxMSW wxDatePickerCtrl header
[wxWidgets.git] / include / wx / generic / timer.h
CommitLineData
32b8ec41
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: timer.h
a0cb0ba5 3// Purpose: Generic implementation of wxTimer class
32b8ec41
VZ
4// Author: Vaclav Slavik
5// Id: $Id$
6d89ddef 6// Copyright: (c) Vaclav Slavik
65571936 7// Licence: wxWindows licence
32b8ec41
VZ
8/////////////////////////////////////////////////////////////////////////////
9
10
11#ifndef __WX_TIMER_H__
12#define __WX_TIMER_H__
13
12028905 14#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
32b8ec41
VZ
15 #pragma interface "timer.h"
16#endif
17
18//-----------------------------------------------------------------------------
19// wxTimer
20//-----------------------------------------------------------------------------
21
1acd70f9 22class wxTimerDesc;
1acd70f9 23
32b8ec41
VZ
24class WXDLLEXPORT wxTimer : public wxTimerBase
25{
26public:
27 wxTimer() { Init(); }
c5c5dad5 28 wxTimer(wxEvtHandler *owner, int timerid = -1) : wxTimerBase(owner, timerid)
32b8ec41 29 { Init(); }
1acd70f9 30 ~wxTimer();
32b8ec41 31
ca65c044 32 virtual bool Start(int millisecs = -1, bool oneShot = false);
1acd70f9 33 virtual void Stop();
32b8ec41 34
1acd70f9 35 virtual bool IsRunning() const;
32b8ec41 36
1acd70f9
VS
37 // implementation
38 static void NotifyTimers();
32b8ec41 39
1acd70f9
VS
40protected:
41 void Init();
32b8ec41
VZ
42
43private:
1acd70f9 44 wxTimerDesc *m_desc;
ca65c044 45
32b8ec41
VZ
46 DECLARE_ABSTRACT_CLASS(wxTimer)
47};
48
1acd70f9 49#endif // __WX_TIMER_H__