]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/timer.h
removed extra membersections (patch 1702329)
[wxWidgets.git] / include / wx / motif / timer.h
CommitLineData
9b6dbb09 1/////////////////////////////////////////////////////////////////////////////
925f7740 2// Name: wx/motif/timer.h
9b6dbb09
JS
3// Purpose: wxTimer class
4// Author: Julian Smart
5// Modified by:
6// Created: 17/09/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
925f7740 9// Licence: wxWindows licence
9b6dbb09
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_TIMER_H_
13#define _WX_TIMER_H_
14
0470b1e6 15class WXDLLEXPORT wxTimer : public wxTimerBase
9b6dbb09 16{
83df96d6 17 friend void wxTimerCallback(wxTimer * timer);
925f7740 18
0470b1e6 19public:
b3ddc4c2
GRG
20 wxTimer() { Init(); }
21 wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id)
83df96d6 22 { Init(); }
d3c7fc99 23 virtual ~wxTimer();
925f7740 24
96be256b 25 virtual bool Start(int milliseconds = -1, bool oneShot = false);
0470b1e6 26 virtual void Stop();
925f7740 27
0470b1e6 28 virtual bool IsRunning() const { return m_id != 0; }
925f7740 29
9b6dbb09 30protected:
b3ddc4c2 31 void Init();
925f7740 32
0470b1e6 33 long m_id;
925f7740 34
0470b1e6
VZ
35private:
36 DECLARE_DYNAMIC_CLASS(wxTimer)
9b6dbb09
JS
37};
38
9b6dbb09 39#endif
83df96d6 40// _WX_TIMER_H_