]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/private/timer.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[wxWidgets.git] / include / wx / gtk1 / private / timer.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/private/timer.h
3 // Purpose: wxTimerImpl for wxGTK
4 // Author: Robert Roebling
5 // Copyright: (c) 1998 Robert Roebling
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
8
9 #ifndef _WX_GTK1_PRIVATE_TIMER_H_
10 #define _WX_GTK1_PRIVATE_TIMER_H_
11
12 #include "wx/private/timer.h"
13
14 //-----------------------------------------------------------------------------
15 // wxTimer
16 //-----------------------------------------------------------------------------
17
18 class WXDLLIMPEXP_CORE wxGTKTimerImpl : public wxTimerImpl
19 {
20 public:
21 wxGTKTimerImpl(wxTimer *timer) : wxTimerImpl(timer) { m_tag = -1; }
22
23 virtual bool Start(int millisecs = -1, bool oneShot = FALSE);
24 virtual void Stop();
25
26 virtual bool IsRunning() const { return m_tag != -1; }
27
28 private:
29 // registered timeout id, -1 if the timer isn't running
30 int m_tag;
31 };
32
33 #endif // _WX_GTK1_PRIVATE_TIMER_H_