X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9b11752c4f9e1fd4b11ba3d184246267facb3ad3..e733c4ce1e24cf7e4b0b0d8362fc59aaa7a7641c:/include/wx/timer.h diff --git a/include/wx/timer.h b/include/wx/timer.h index 21f8ece1ed..8ee5684e00 100644 --- a/include/wx/timer.h +++ b/include/wx/timer.h @@ -5,7 +5,6 @@ // Modified by: Vadim Zeitlin (wxTimerBase) // Guillermo Rodriguez (global clean up) // Created: 04/01/98 -// RCS-ID: $Id$ // Copyright: (c) Julian Smart // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -81,6 +80,10 @@ public: // timer if it is already running virtual bool Start(int milliseconds = -1, bool oneShot = false); + // start the timer for one iteration only, this is just a simple wrapper + // for Start() + bool StartOnce(int milliseconds = -1) { return Start(milliseconds, true); } + // stop the timer, does nothing if the timer is not running virtual void Stop(); @@ -113,7 +116,7 @@ protected: wxTimerImpl *m_impl; - DECLARE_NO_COPY_CLASS(wxTimer) + wxDECLARE_NO_COPY_CLASS(wxTimer); }; // ---------------------------------------------------------------------------- @@ -146,7 +149,7 @@ public: private: wxTimer& m_timer; - DECLARE_NO_COPY_CLASS(wxTimerRunner) + wxDECLARE_NO_COPY_CLASS(wxTimerRunner); }; // ----------------------------------------------------------------------------