1
/////////////////////////////////////////////////////////////////////////////
2
// Name: wx/cocoa/private/timer.h
3
// Purpose: Cocoa wxTimer class
5
// Copyright: (c) Ryan Norton
6
// Licence: wxWindows licence
7
/////////////////////////////////////////////////////////////////////////////
9
#ifndef _WX_COCOA_PRIVATE_TIMER_H_
10
#define _WX_COCOA_PRIVATE_TIMER_H_
12
#include "wx/private/timer.h"
14
#include "wx/cocoa/ObjcRef.h"
16
//-----------------------------------------------------------------------------
18
//-----------------------------------------------------------------------------
20
DECLARE_WXCOCOA_OBJC_CLASS(NSTimer);
22
class WXDLLIMPEXP_CORE wxCocoaTimerImpl : public wxTimerImpl
25
wxCocoaTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { Init(); }
26
virtual ~wxCocoaTimerImpl();
28
virtual bool Start(int millisecs = -1, bool oneShot = false);
31
virtual bool IsRunning() const;
33
WX_NSTimer GetNSTimer() { return m_cocoaNSTimer; }
39
WX_NSTimer m_cocoaNSTimer;
42
#endif // _WX_COCOA_PRIVATE_TIMER_H_