]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/motif/timer.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxTimer class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 #pragma interface "timer.h"
19 #include "wx/object.h"
21 class WXDLLEXPORT wxTimer
: public wxObject
23 DECLARE_DYNAMIC_CLASS(wxTimer
)
25 friend void wxTimerCallback (wxTimer
* timer
);
30 virtual bool Start(int milliseconds
= -1,bool one_shot
= FALSE
); // Start timer
31 virtual void Stop(); // Stop timer
32 virtual void Notify() = 0; // Override this member
33 inline int Interval() { return m_milli
; }; // Returns the current interval time (0 if stop)
43 /* Note: these are implemented in common/timercmn.cpp, so need to implement them separately.
44 * But you may need to modify timercmn.cpp.