]> git.saurik.com Git - wxWidgets.git/blame - include/wx/generic/private/timer.h
create greyed image for wxBitmapButton in MSW automatically, as in wxGTK (replaces...
[wxWidgets.git] / include / wx / generic / private / timer.h
CommitLineData
32b8ec41 1/////////////////////////////////////////////////////////////////////////////
c2ca375c 2// Name: wx/generic/private/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
c2ca375c
VZ
10#ifndef _WX_GENERIC_PRIVATE_TIMER_H_
11#define _WX_GENERIC_PRIVATE_TIMER_H_
12
3c029873
VZ
13#if wxUSE_TIMER
14
c2ca375c 15#include "wx/private/timer.h"
32b8ec41 16
32b8ec41
VZ
17//-----------------------------------------------------------------------------
18// wxTimer
19//-----------------------------------------------------------------------------
20
1acd70f9 21class wxTimerDesc;
1acd70f9 22
c2ca375c 23class WXDLLEXPORT wxGenericTimerImpl : public wxTimerImpl
32b8ec41
VZ
24{
25public:
c2ca375c
VZ
26 wxGenericTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { Init(); }
27 virtual ~wxGenericTimerImpl();
32b8ec41 28
ca65c044 29 virtual bool Start(int millisecs = -1, bool oneShot = false);
1acd70f9 30 virtual void Stop();
32b8ec41 31
1acd70f9 32 virtual bool IsRunning() const;
32b8ec41 33
1acd70f9
VS
34 // implementation
35 static void NotifyTimers();
32b8ec41 36
1acd70f9
VS
37protected:
38 void Init();
32b8ec41
VZ
39
40private:
1acd70f9 41 wxTimerDesc *m_desc;
32b8ec41
VZ
42};
43
3c029873
VZ
44#endif // wxUSE_TIMER
45
c2ca375c 46#endif // _WX_GENERIC_PRIVATE_TIMER_H_