]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/private/timer.h
rename wxRendererNative::DrawRadioButton() to DrawOptionButton() to avoid conflict...
[wxWidgets.git] / include / wx / gtk1 / private / timer.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
c2ca375c
VZ
2// Name: wx/gtk1/private/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_GTK1_PRIVATE_TIMER_H_
11#define _WX_GTK1_PRIVATE_TIMER_H_
12
13#include "wx/private/timer.h"
c801d85f 14
c801d85f
KB
15//-----------------------------------------------------------------------------
16// wxTimer
17//-----------------------------------------------------------------------------
18
c2ca375c 19class WXDLLIMPEXP_CORE wxGTKTimerImpl : public wxTimerImpl
c801d85f 20{
03f38c58 21public:
c2ca375c 22 wxGTKTimerImpl(wxTimer *timer) : wxTimerImpl(timer) { m_tag = -1; }
03f38c58 23
c2ca375c 24 virtual bool Start(int millisecs = -1, bool oneShot = FALSE);
03f38c58
VZ
25 virtual void Stop();
26
0470b1e6 27 virtual bool IsRunning() const { return m_tag != -1; }
03f38c58 28
03f38c58 29private:
c2ca375c
VZ
30 // registered timeout id, -1 if the timer isn't running
31 int m_tag;
c801d85f
KB
32};
33
c2ca375c 34#endif // _WX_GTK1_PRIVATE_TIMER_H_