]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/msw/timer.h
Mostly Mingw32/Cygwin corrections
[wxWidgets.git] / include / wx / msw / timer.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: timer.h
3// Purpose: wxTimer class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
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__
16 #pragma interface "timer.h"
17#endif
18
19class WXDLLEXPORT wxTimer : public wxTimerBase
20{
21friend void wxProcessTimer(wxTimer& timer);
22
23public:
24 wxTimer();
25 ~wxTimer();
26
27 virtual bool Start(int milliseconds = -1, bool oneShot = FALSE);
28 virtual void Stop();
29
30 virtual bool IsRunning() const { return m_id != 0; }
31
32protected:
33 long m_id;
34
35private:
36 DECLARE_ABSTRACT_CLASS(wxTimer)
37};
38
39#endif
40 // _WX_TIMERH_