]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mgl/timer.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxTimer class
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __WX_TIMER_H__
12 #define __WX_TIMER_H__
15 #pragma interface "timer.h"
18 //-----------------------------------------------------------------------------
20 //-----------------------------------------------------------------------------
23 class wxTimerScheduler
;
25 class WXDLLEXPORT wxTimer
: public wxTimerBase
29 wxTimer(wxEvtHandler
*owner
, int id
= -1) : wxTimerBase(owner
, id
)
33 virtual bool Start(int millisecs
= -1, bool oneShot
= FALSE
);
36 virtual bool IsRunning() const;
39 static void NotifyTimers();
47 static wxTimerScheduler
*ms_scheduler
;
48 static size_t ms_timersCnt
;
50 DECLARE_ABSTRACT_CLASS(wxTimer
)
53 #endif // __WX_TIMER_H__