]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/timer.h
rename Inside(x,y) parameters to avoid gcc warnings about parameters shadowing member...
[wxWidgets.git] / include / wx / gtk / timer.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
ed791986 2// Name: wx/gtk/timer.h
c801d85f
KB
3// Purpose:
4// Author: Robert Roebling
58614078
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
65571936 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
c801d85f
KB
10#ifndef __GTKTIMERH__
11#define __GTKTIMERH__
12
c801d85f
KB
13//-----------------------------------------------------------------------------
14// wxTimer
15//-----------------------------------------------------------------------------
16
20123d49 17class WXDLLIMPEXP_CORE wxTimer : public wxTimerBase
c801d85f 18{
03f38c58 19public:
ed791986
VZ
20 wxTimer() { Init(); }
21 wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id)
22 { Init(); }
d3c7fc99 23 virtual ~wxTimer();
03f38c58 24
03f38c58
VZ
25 virtual bool Start( int millisecs = -1, bool oneShot = FALSE );
26 virtual void Stop();
27
0470b1e6 28 virtual bool IsRunning() const { return m_tag != -1; }
03f38c58
VZ
29
30protected:
ed791986
VZ
31 void Init();
32
c801d85f 33 int m_tag;
03f38c58
VZ
34
35private:
36 DECLARE_ABSTRACT_CLASS(wxTimer)
c801d85f
KB
37};
38
39#endif // __GTKTIMERH__