]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/private/timer.h
forward port from 2.8
[wxWidgets.git] / include / wx / mac / carbon / private / timer.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/mac/carbon/private/timer.h
3 // Purpose: wxTimer class
4 // Author: Stefan Csomor
5 // Created: 1998-01-01
6 // RCS-ID: $Id$
7 // Copyright: (c) Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_MAC_PRIVATE_TIMER_H_
12 #define _WX_MAC_PRIVATE_TIMER_H_
13
14 #include "wx/mac/macnotfy.h"
15 #include "wx/private/timer.h"
16
17 struct MacTimerInfo;
18
19 class WXDLLEXPORT wxCarbonTimerImpl : public wxTimerImpl
20 {
21 public:
22 wxCarbonTimerImpl(wxTimer *timer);
23 virtual ~wxCarbonTimerImpl();
24
25 virtual bool Start(int milliseconds = -1, bool one_shot = false);
26 virtual void Stop();
27
28 virtual bool IsRunning() const;
29
30 private:
31 MacTimerInfo *m_info;
32 };
33
34 #endif // _WX_MAC_PRIVATE_TIMER_H_