]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/timer.h
Added support for frames without borders (such as for
[wxWidgets.git] / include / wx / gtk1 / timer.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: timer.h
3// Purpose:
4// Author: Robert Roebling
5// Created: 01/02/97
6// Id:
7// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11
12#ifndef __GTKTIMERH__
13#define __GTKTIMERH__
14
15#ifdef __GNUG__
16#pragma interface
17#endif
18
19#include "wx/defs.h"
20#include "wx/object.h"
21
22//-----------------------------------------------------------------------------
23// derived classes
24//-----------------------------------------------------------------------------
25
26class wxTimer;
27
28//-----------------------------------------------------------------------------
29// wxTimer
30//-----------------------------------------------------------------------------
31
32class wxTimer: public wxObject
33{
03f38c58
VZ
34public:
35 wxTimer();
36 ~wxTimer();
37
38 int Interval() const { return m_time; }
39
40 bool OneShot() const { return m_oneShot; }
41
42 virtual bool Start( int millisecs = -1, bool oneShot = FALSE );
43 virtual void Stop();
44
45 virtual void Notify() = 0; // override this
46
47protected:
c801d85f
KB
48 int m_tag;
49 int m_time;
50 bool m_oneShot;
03f38c58
VZ
51
52private:
53 DECLARE_ABSTRACT_CLASS(wxTimer)
c801d85f
KB
54};
55
56#endif // __GTKTIMERH__