]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/timer.h
don't log mouse events by default
[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
ed791986 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
10
11#ifndef __GTKTIMERH__
12#define __GTKTIMERH__
13
14#ifdef __GNUG__
0470b1e6 15 #pragma interface "timer.h"
c801d85f
KB
16#endif
17
c801d85f
KB
18//-----------------------------------------------------------------------------
19// wxTimer
20//-----------------------------------------------------------------------------
21
0470b1e6 22class wxTimer : public wxTimerBase
c801d85f 23{
03f38c58 24public:
ed791986
VZ
25 wxTimer() { Init(); }
26 wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id)
27 { Init(); }
03f38c58
VZ
28 ~wxTimer();
29
03f38c58
VZ
30 virtual bool Start( int millisecs = -1, bool oneShot = FALSE );
31 virtual void Stop();
32
0470b1e6 33 virtual bool IsRunning() const { return m_tag != -1; }
03f38c58
VZ
34
35protected:
ed791986
VZ
36 void Init();
37
c801d85f 38 int m_tag;
03f38c58
VZ
39
40private:
41 DECLARE_ABSTRACT_CLASS(wxTimer)
c801d85f
KB
42};
43
44#endif // __GTKTIMERH__