1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Cocoa wxTimer class
6 // Copyright: (c) Ryan Norton
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __WX_TIMER_H__
12 #define __WX_TIMER_H__
14 #include "wx/cocoa/ObjcRef.h"
16 //-----------------------------------------------------------------------------
18 //-----------------------------------------------------------------------------
20 DECLARE_WXCOCOA_OBJC_CLASS(NSTimer
);
22 class WXDLLEXPORT wxTimer
: public wxTimerBase
26 wxTimer(wxEvtHandler
*owner
, int timerid
= -1) : wxTimerBase(owner
, timerid
)
30 virtual bool Start(int millisecs
= -1, bool oneShot
= false);
33 virtual bool IsRunning() const;
35 inline WX_NSTimer
GetNSTimer()
36 { return m_cocoaNSTimer
; }
42 WX_NSTimer m_cocoaNSTimer
;
44 DECLARE_ABSTRACT_CLASS(wxTimer
)
47 #endif // __WX_TIMER_H__