]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/timer.h
compilation fixes, doesn't work yet
[wxWidgets.git] / include / wx / motif / timer.h
CommitLineData
9b6dbb09
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: timer.h
3// Purpose: wxTimer class
4// Author: Julian Smart
5// Modified by:
6// Created: 17/09/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_TIMER_H_
13#define _WX_TIMER_H_
14
15#ifdef __GNUG__
0470b1e6 16 #pragma interface "timer.h"
9b6dbb09
JS
17#endif
18
0470b1e6 19class WXDLLEXPORT wxTimer : public wxTimerBase
9b6dbb09 20{
0470b1e6
VZ
21friend void wxTimerCallback(wxTimer * timer);
22
23public:
24 wxTimer();
25 ~wxTimer();
9b6dbb09 26
0470b1e6
VZ
27 virtual bool Start(int milliseconds = -1, bool oneShot = FALSE);
28 virtual void Stop();
0d57be45 29
0470b1e6 30 virtual bool IsRunning() const { return m_id != 0; }
9b6dbb09
JS
31
32protected:
0470b1e6 33 long m_id;
9b6dbb09 34
0470b1e6
VZ
35private:
36 DECLARE_DYNAMIC_CLASS(wxTimer)
9b6dbb09
JS
37};
38
9b6dbb09
JS
39#endif
40 // _WX_TIMER_H_