]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/timer.h
1. wxFileDialog patch for multiple selection applied (with some small changes),
[wxWidgets.git] / include / wx / gtk1 / timer.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: timer.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10
11 #ifndef __GTKTIMERH__
12 #define __GTKTIMERH__
13
14 #ifdef __GNUG__
15 #pragma interface "timer.h"
16 #endif
17
18 //-----------------------------------------------------------------------------
19 // wxTimer
20 //-----------------------------------------------------------------------------
21
22 class wxTimer : public wxTimerBase
23 {
24 public:
25 wxTimer();
26 ~wxTimer();
27
28 virtual bool Start( int millisecs = -1, bool oneShot = FALSE );
29 virtual void Stop();
30
31 virtual bool IsRunning() const { return m_tag != -1; }
32
33 protected:
34 int m_tag;
35
36 private:
37 DECLARE_ABSTRACT_CLASS(wxTimer)
38 };
39
40 #endif // __GTKTIMERH__