]> git.saurik.com Git - wxWidgets.git/blob - include/wx/generic/private/timer.h
Added wxRichToolTip class.
[wxWidgets.git] / include / wx / generic / private / timer.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/generic/private/timer.h
3 // Purpose: Generic implementation of wxTimer class
4 // Author: Vaclav Slavik
5 // Id: $Id$
6 // Copyright: (c) Vaclav Slavik
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_GENERIC_PRIVATE_TIMER_H_
11 #define _WX_GENERIC_PRIVATE_TIMER_H_
12
13 #if wxUSE_TIMER
14
15 #include "wx/private/timer.h"
16
17 //-----------------------------------------------------------------------------
18 // wxTimer
19 //-----------------------------------------------------------------------------
20
21 class wxTimerDesc;
22
23 class WXDLLIMPEXP_BASE wxGenericTimerImpl : public wxTimerImpl
24 {
25 public:
26 wxGenericTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { Init(); }
27 virtual ~wxGenericTimerImpl();
28
29 virtual bool Start(int millisecs = -1, bool oneShot = false);
30 virtual void Stop();
31
32 virtual bool IsRunning() const;
33
34 // implementation
35 static void NotifyTimers();
36
37 protected:
38 void Init();
39
40 private:
41 wxTimerDesc *m_desc;
42 };
43
44 #endif // wxUSE_TIMER
45
46 #endif // _WX_GENERIC_PRIVATE_TIMER_H_