]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/private/timer.h
Don't directly include GTK+ semi-public headers.
[wxWidgets.git] / include / wx / gtk / private / timer.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
c2ca375c
VZ
2// Name: wx/private/gtk/timer.h
3// Purpose: wxTimerImpl for wxGTK
c801d85f 4// Author: Robert Roebling
58614078
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
65571936 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
c2ca375c
VZ
10#ifndef _WX_GTK_PRIVATE_TIMER_H_
11#define _WX_GTK_PRIVATE_TIMER_H_
12
3c029873
VZ
13#if wxUSE_TIMER
14
c2ca375c 15#include "wx/private/timer.h"
c801d85f 16
c801d85f
KB
17//-----------------------------------------------------------------------------
18// wxTimer
19//-----------------------------------------------------------------------------
20
c2ca375c 21class WXDLLIMPEXP_CORE wxGTKTimerImpl : public wxTimerImpl
c801d85f 22{
03f38c58 23public:
c2ca375c 24 wxGTKTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { m_sourceId = 0; };
03f38c58 25
c2ca375c 26 virtual bool Start( int millisecs = -1, bool oneShot = false );
03f38c58 27 virtual void Stop();
855f31eb 28 virtual bool IsRunning() const { return m_sourceId != 0; }
03f38c58 29
c2ca375c
VZ
30protected:
31 int m_sourceId;
c801d85f
KB
32};
33
3c029873
VZ
34#endif // wxUSE_TIMER
35
c2ca375c 36#endif // _WX_GTK_PRIVATE_TIMER_H_