]>
git.saurik.com Git - wxWidgets.git/blob - src/gtk/timer.cpp
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
12 #pragma implementation "timer.h"
19 //-----------------------------------------------------------------------------
21 //-----------------------------------------------------------------------------
23 IMPLEMENT_ABSTRACT_CLASS(wxTimer
,wxObject
)
25 gint
timeout_callback( gpointer data
)
27 wxTimer
*timer
= (wxTimer
*)data
;
50 bool wxTimer::Start( int millisecs
, bool oneShot
)
59 m_tag
= gtk_timeout_add( millisecs
, timeout_callback
, this );
68 gtk_timeout_remove( m_tag
);