]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/private/timer.h
Remove all lines containing cvs/svn "$Id$" keyword.
[wxWidgets.git] / include / wx / gtk / private / timer.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/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_GTK_PRIVATE_TIMER_H_
10 #define _WX_GTK_PRIVATE_TIMER_H_
11
12 #if wxUSE_TIMER
13
14 #include "wx/private/timer.h"
15
16 //-----------------------------------------------------------------------------
17 // wxTimer
18 //-----------------------------------------------------------------------------
19
20 class WXDLLIMPEXP_CORE wxGTKTimerImpl : public wxTimerImpl
21 {
22 public:
23 wxGTKTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { m_sourceId = 0; }
24
25 virtual bool Start( int millisecs = -1, bool oneShot = false );
26 virtual void Stop();
27 virtual bool IsRunning() const { return m_sourceId != 0; }
28
29 protected:
30 int m_sourceId;
31 };
32
33 #endif // wxUSE_TIMER
34
35 #endif // _WX_GTK_PRIVATE_TIMER_H_