]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/private/timer.h
changed wxDC::GetTextExtent() and related methods to take const wxFont pointer, for...
[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 #include "wx/private/timer.h"
14
15 //-----------------------------------------------------------------------------
16 // wxTimer
17 //-----------------------------------------------------------------------------
18
19 class WXDLLIMPEXP_CORE wxGTKTimerImpl : public wxTimerImpl
20 {
21 public:
22 wxGTKTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { m_sourceId = 0; };
23
24 virtual bool Start( int millisecs = -1, bool oneShot = false );
25 virtual void Stop();
26 virtual bool IsRunning() const { return m_sourceId != 0; }
27
28 protected:
29 int m_sourceId;
30 };
31
32 #endif // _WX_GTK_PRIVATE_TIMER_H_