]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/private/timer.h
Fix wxWrapSizer minimal size calculation.
[wxWidgets.git] / include / wx / cocoa / private / timer.h
CommitLineData
2fcd7f64 1/////////////////////////////////////////////////////////////////////////////
c2ca375c 2// Name: wx/cocoa/private/timer.h
2fcd7f64
RN
3// Purpose: Cocoa wxTimer class
4// Author: Ryan Norton
5// Id: $Id$
6// Copyright: (c) Ryan Norton
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
c2ca375c
VZ
10#ifndef _WX_COCOA_PRIVATE_TIMER_H_
11#define _WX_COCOA_PRIVATE_TIMER_H_
2fcd7f64 12
c2ca375c 13#include "wx/private/timer.h"
2fcd7f64 14
2fcd7f64
RN
15#include "wx/cocoa/ObjcRef.h"
16
17//-----------------------------------------------------------------------------
18// wxTimer
19//-----------------------------------------------------------------------------
20
21DECLARE_WXCOCOA_OBJC_CLASS(NSTimer);
22
53a2db12 23class WXDLLIMPEXP_CORE wxCocoaTimerImpl : public wxTimerImpl
2fcd7f64
RN
24{
25public:
c2ca375c
VZ
26 wxCocoaTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { Init(); }
27 virtual ~wxCocoaTimerImpl();
2fcd7f64
RN
28
29 virtual bool Start(int millisecs = -1, bool oneShot = false);
30 virtual void Stop();
31
32 virtual bool IsRunning() const;
33
c2ca375c 34 WX_NSTimer GetNSTimer() { return m_cocoaNSTimer; }
2fcd7f64
RN
35
36protected:
37 void Init();
38
39private:
40 WX_NSTimer m_cocoaNSTimer;
2fcd7f64
RN
41};
42
c2ca375c 43#endif // _WX_COCOA_PRIVATE_TIMER_H_