1
/////////////////////////////////////////////////////////////////////////////
2
// Name: wx/cocoa/private/timer.h
3
// Purpose: Cocoa wxTimer class
5
// Id: $Id: timer.h 52834 2008-03-26 15:06:00Z FM $
6
// Copyright: (c) Ryan Norton
7
// Licence: wxWindows licence
8
/////////////////////////////////////////////////////////////////////////////
10
#ifndef _WX_COCOA_PRIVATE_TIMER_H_
11
#define _WX_COCOA_PRIVATE_TIMER_H_
13
#include "wx/private/timer.h"
15
#include "wx/cocoa/ObjcRef.h"
17
//-----------------------------------------------------------------------------
19
//-----------------------------------------------------------------------------
21
DECLARE_WXCOCOA_OBJC_CLASS(NSTimer);
23
class WXDLLIMPEXP_CORE wxCocoaTimerImpl : public wxTimerImpl
26
wxCocoaTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { Init(); }
27
virtual ~wxCocoaTimerImpl();
29
virtual bool Start(int millisecs = -1, bool oneShot = false);
32
virtual bool IsRunning() const;
34
WX_NSTimer GetNSTimer() { return m_cocoaNSTimer; }
40
WX_NSTimer m_cocoaNSTimer;
43
#endif // _WX_COCOA_PRIVATE_TIMER_H_