]> git.saurik.com Git - wxWidgets.git/blame - include/wx/generic/private/timer.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[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 4// Author: Vaclav Slavik
6d89ddef 5// Copyright: (c) Vaclav Slavik
65571936 6// Licence: wxWindows licence
32b8ec41
VZ
7/////////////////////////////////////////////////////////////////////////////
8
c2ca375c
VZ
9#ifndef _WX_GENERIC_PRIVATE_TIMER_H_
10#define _WX_GENERIC_PRIVATE_TIMER_H_
11
3c029873
VZ
12#if wxUSE_TIMER
13
c2ca375c 14#include "wx/private/timer.h"
32b8ec41 15
32b8ec41
VZ
16//-----------------------------------------------------------------------------
17// wxTimer
18//-----------------------------------------------------------------------------
19
1acd70f9 20class wxTimerDesc;
1acd70f9 21
163b3ad7 22class WXDLLIMPEXP_BASE wxGenericTimerImpl : public wxTimerImpl
32b8ec41
VZ
23{
24public:
c2ca375c
VZ
25 wxGenericTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { Init(); }
26 virtual ~wxGenericTimerImpl();
32b8ec41 27
ca65c044 28 virtual bool Start(int millisecs = -1, bool oneShot = false);
1acd70f9 29 virtual void Stop();
32b8ec41 30
1acd70f9 31 virtual bool IsRunning() const;
32b8ec41 32
1acd70f9
VS
33 // implementation
34 static void NotifyTimers();
32b8ec41 35
1acd70f9
VS
36protected:
37 void Init();
32b8ec41
VZ
38
39private:
1acd70f9 40 wxTimerDesc *m_desc;
32b8ec41
VZ
41};
42
3c029873
VZ
43#endif // wxUSE_TIMER
44
c2ca375c 45#endif // _WX_GENERIC_PRIVATE_TIMER_H_