]>
git.saurik.com Git - wxWidgets.git/blob - src/qt/timer.cpp
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
13 #pragma implementation "timer.h"
18 //-----------------------------------------------------------------------------
20 //-----------------------------------------------------------------------------
22 IMPLEMENT_DYNAMIC_CLASS(wxTimer
,wxObject
)
24 gint
timeout_callback( gpointer data
)
26 wxTimer
*timer
= (wxTimer
*)data
;
28 if (timer
->OneShot()) timer
->Stop();
32 wxTimer::wxTimer(void)
38 wxTimer::~wxTimer(void)
43 int wxTimer::Interval(void)
48 bool wxTimer::OneShot(void)
53 void wxTimer::Notify(void)
57 void wxTimer::Start( int millisecs
, bool oneShot
)
59 if (millisecs
!= -1) m_time
= millisecs
;
63 void wxTimer::Stop(void)