]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/timer.h
cleaning up problems after string changes
[wxWidgets.git] / include / wx / msw / timer.h
CommitLineData
2bda0e17
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: timer.h
3// Purpose: wxTimer class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
bbcdf8bc 8// Copyright: (c) Julian Smart
65571936 9// Licence: wxWindows licence
2bda0e17
KB
10/////////////////////////////////////////////////////////////////////////////
11
bbcdf8bc
JS
12#ifndef _WX_TIMER_H_
13#define _WX_TIMER_H_
2bda0e17 14
0470b1e6 15class WXDLLEXPORT wxTimer : public wxTimerBase
2bda0e17 16{
c085e333
VZ
17friend void wxProcessTimer(wxTimer& timer);
18
03f38c58 19public:
ed791986 20 wxTimer() { Init(); }
bfbb0b4c 21 wxTimer(wxEvtHandler *owner, int id = wxID_ANY) : wxTimerBase(owner, id)
ed791986 22 { Init(); }
d3c7fc99 23 virtual ~wxTimer();
03f38c58 24
bfbb0b4c 25 virtual bool Start(int milliseconds = -1, bool oneShot = false);
0470b1e6 26 virtual void Stop();
03f38c58 27
0470b1e6 28 virtual bool IsRunning() const { return m_id != 0; }
03f38c58 29
c085e333 30protected:
ed791986
VZ
31 void Init();
32
97f278b4 33 unsigned long m_id;
03f38c58
VZ
34
35private:
fc7a2a60 36 DECLARE_DYNAMIC_CLASS_NO_COPY(wxTimer)
2bda0e17
KB
37};
38
2bda0e17 39#endif
bbcdf8bc 40 // _WX_TIMERH_