]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/timer.h
changing inheritance and delegation
[wxWidgets.git] / include / wx / mac / timer.h
CommitLineData
0dbd6262
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: timer.h
3// Purpose: wxTimer class
a31a5f85 4// Author: Stefan Csomor
0dbd6262 5// Modified by:
a31a5f85 6// Created: 1998-01-01
0dbd6262 7// RCS-ID: $Id$
a31a5f85 8// Copyright: (c) Stefan Csomor
e40298d5 9// Licence: wxWindows licence
0dbd6262
SC
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_TIMER_H_
13#define _WX_TIMER_H_
14
af49c4b8 15#if defined(__GNUG__) && !defined(__APPLE__)
0dbd6262
SC
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:
e40298d5
JS
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 40protected :
e40298d5 41 void Init();
0dbd6262 42private:
d015713e 43
0dbd6262
SC
44 DECLARE_ABSTRACT_CLASS(wxTimer)
45};
46
0dbd6262
SC
47#endif
48 // _WX_TIMER_H_