]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/private/timer.h
Eliminate (or at least reduce) 64-bit build warnings (as described in wxPG sourceforg...
[wxWidgets.git] / include / wx / gtk / private / timer.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/private/gtk/timer.h
3 // Purpose: wxTimerImpl for wxGTK
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_GTK_PRIVATE_TIMER_H_
11 #define _WX_GTK_PRIVATE_TIMER_H_
12
13 #if wxUSE_TIMER
14
15 #include "wx/private/timer.h"
16
17 //-----------------------------------------------------------------------------
18 // wxTimer
19 //-----------------------------------------------------------------------------
20
21 class WXDLLIMPEXP_CORE wxGTKTimerImpl : public wxTimerImpl
22 {
23 public:
24 wxGTKTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { m_sourceId = 0; };
25
26 virtual bool Start( int millisecs = -1, bool oneShot = false );
27 virtual void Stop();
28 virtual bool IsRunning() const { return m_sourceId != 0; }
29
30 protected:
31 int m_sourceId;
32 };
33
34 #endif // wxUSE_TIMER
35
36 #endif // _WX_GTK_PRIVATE_TIMER_H_