]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/timer.h
Fix MinGW compilation.
[wxWidgets.git] / include / wx / mac / timer.h
CommitLineData
0dbd6262
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: timer.h
3// Purpose: wxTimer class
4// Author: AUTHOR
5// Modified by:
6// Created: ??/??/98
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
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
19#include "wx/object.h"
05adb9d2 20#include "wx/mac/macnotfy.h"
0dbd6262 21
05adb9d2
SC
22class wxTimer ;
23
5273bf2f 24struct MacTimerInfo ;
05adb9d2
SC
25
26class WXDLLEXPORT wxTimer: public wxTimerBase
0dbd6262
SC
27{
28public:
d015713e
SC
29 wxTimer() { Init(); }
30 wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id) { Init(); }
0dbd6262
SC
31 ~wxTimer();
32
33 virtual bool Start(int milliseconds = -1,
34 bool one_shot = FALSE); // Start timer
35 virtual void Stop(); // Stop timer
36
05adb9d2 37 virtual bool IsRunning() const ;
0dbd6262 38
5273bf2f 39 MacTimerInfo* m_info;
d015713e
SC
40protected :
41 void Init();
0dbd6262 42private:
d015713e 43
0dbd6262
SC
44 DECLARE_ABSTRACT_CLASS(wxTimer)
45};
46
0dbd6262
SC
47#endif
48 // _WX_TIMER_H_