]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gtk/timer.h
Implement dc mirroring for RTL.
[wxWidgets.git] / include / wx / gtk / timer.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/gtk/timer.h
3// Purpose:
4// Author: Robert Roebling
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef __GTKTIMERH__
11#define __GTKTIMERH__
12
13//-----------------------------------------------------------------------------
14// wxTimer
15//-----------------------------------------------------------------------------
16
17class WXDLLIMPEXP_CORE wxTimer : public wxTimerBase
18{
19public:
20 wxTimer() { Init(); }
21 wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id)
22 { Init(); }
23 virtual ~wxTimer();
24
25 virtual bool Start( int millisecs = -1, bool oneShot = FALSE );
26 virtual void Stop();
27
28 virtual bool IsRunning() const { return m_tag != -1; }
29
30protected:
31 void Init();
32
33 int m_tag;
34
35private:
36 DECLARE_ABSTRACT_CLASS(wxTimer)
37};
38
39#endif // __GTKTIMERH__