]> git.saurik.com Git - wxWidgets.git/blame - src/stubs/timer.cpp
wxWindow::Fit() infinite loop bug fixed
[wxWidgets.git] / src / stubs / timer.cpp
CommitLineData
93cf77c0
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: timer.cpp
3// Purpose: wxTimer implementation
4// Author: AUTHOR
5// Modified by:
6// Created: ??/??/98
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13#pragma implementation "timer.h"
14#endif
15
16#include "wx/timer.h"
17
18#if !USE_SHARED_LIBRARY
19IMPLEMENT_ABSTRACT_CLASS(wxTimer, wxObject)
20#endif
21
22wxTimer::wxTimer()
23{
24 m_milli = 0 ;
93cf77c0
JS
25 m_id = 0;
26 m_oneShot = FALSE;
27}
28
29wxTimer::~wxTimer()
30{
31 Stop();
32}
33
34bool wxTimer::Start(int milliseconds,bool mode)
35{
36 m_oneShot = mode ;
34138703 37 if (milliseconds <= 0)
93cf77c0
JS
38 return FALSE;
39
34138703 40 m_milli = milliseconds;
93cf77c0
JS
41
42 // TODO: set the timer going.
43 return FALSE;
44}
45
46void wxTimer::Stop()
47{
48 m_id = 0 ;
49 m_milli = 0 ;
50}
51
52