]> git.saurik.com Git - wxWidgets.git/blame - src/mac/carbon/timer.cpp
Used when the Apparence Manager is not installed
[wxWidgets.git] / src / mac / carbon / timer.cpp
CommitLineData
e9576ca5
SC
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 ;
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 ;
37 if (milliseconds <= 0)
38 return FALSE;
39
40 m_milli = milliseconds;
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