]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/timer.h
corrections for theme brush alignments
[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
24typedef struct MacTimerInfo
25{
26 TMTask m_task;
27 wxMacNotifierTableRef m_table ;
28 wxTimer* m_timer ;
29} ;
30
31class WXDLLEXPORT wxTimer: public wxTimerBase
0dbd6262
SC
32{
33public:
d015713e
SC
34 wxTimer() { Init(); }
35 wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id) { Init(); }
0dbd6262
SC
36 ~wxTimer();
37
38 virtual bool Start(int milliseconds = -1,
39 bool one_shot = FALSE); // Start timer
40 virtual void Stop(); // Stop timer
41
05adb9d2 42 virtual bool IsRunning() const ;
0dbd6262 43
05adb9d2 44 MacTimerInfo m_info;
d015713e
SC
45protected :
46 void Init();
0dbd6262 47private:
d015713e 48
0dbd6262
SC
49 DECLARE_ABSTRACT_CLASS(wxTimer)
50};
51
0dbd6262
SC
52#endif
53 // _WX_TIMER_H_