]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mgl/timer.h
Applied patch for wxComboBox and wxListBox to
[wxWidgets.git] / include / wx / mgl / timer.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: timer.h
3 // Purpose:
4 // Author: Vaclav Slavik
5 // Id: $Id$
6 // Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10
11 #ifndef __WX_TIMER_H__
12 #define __WX_TIMER_H__
13
14 #ifdef __GNUG__
15 #pragma interface "timer.h"
16 #endif
17
18 //-----------------------------------------------------------------------------
19 // wxTimer
20 //-----------------------------------------------------------------------------
21
22 //FIXME_MGL
23 class WXDLLEXPORT wxTimer : public wxTimerBase
24 {
25 public:
26 wxTimer() { Init(); }
27 wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id)
28 { Init(); }
29 ~wxTimer() {}
30
31 virtual bool Start( int millisecs = -1, bool oneShot = FALSE ) { return TRUE; }
32 virtual void Stop() {}
33
34 virtual bool IsRunning() const { return m_tag != -1; }
35
36 protected:
37 void Init() {}
38
39 int m_tag;
40
41 private:
42 DECLARE_ABSTRACT_CLASS(wxTimer)
43 };
44
45 #endif // __GTKTIMERH__