]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/timer.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxTimer class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/object.h"
17 class WXDLLEXPORT wxTimer
: public wxObject
19 friend void wxProcessTimer(wxTimer
& timer
);
25 virtual bool Start(int milliseconds
= -1,
26 bool one_shot
= FALSE
); // Start timer
27 virtual void Stop(); // Stop timer
29 virtual void Notify() = 0; // Override this member
31 // Returns the current interval time (0 if stop)
32 int Interval() const { return milli
; };
33 bool OneShot() const { return oneShot
; }
43 DECLARE_ABSTRACT_CLASS(wxTimer
)