]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/timer.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxTimer class
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "timer.h"
19 #include "wx/object.h"
20 #include "wx/mac/macnotfy.h"
26 class WXDLLEXPORT wxTimer
: public wxTimerBase
30 wxTimer(wxEvtHandler
*owner
, int id
= -1) : wxTimerBase(owner
, id
) { Init(); }
33 virtual bool Start(int milliseconds
= -1,
34 bool one_shot
= FALSE
); // Start timer
35 virtual void Stop(); // Stop timer
37 virtual bool IsRunning() const ;
44 DECLARE_ABSTRACT_CLASS(wxTimer
)