]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/private/timer.h
Implement GetDashCount() for Carbon/Cocoa.
[wxWidgets.git] / include / wx / motif / private / timer.h
CommitLineData
c2ca375c
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/motif/private/timer.h
3// Purpose: wxTimer class
4// Author: Julian Smart
5// Created: 17/09/98
6// RCS-ID: $Id$
7// Copyright: (c) Julian Smart
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_MOTIF_PRIVATE_TIMER_H_
12#define _WX_MOTIF_PRIVATE_TIMER_H_
13
14#include "wx/private/timer.h"
15
53a2db12 16class WXDLLIMPEXP_CORE wxMotifTimerImpl : public wxTimerImpl
c2ca375c
VZ
17{
18public:
19 wxMotifTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { m_id = 0; }
20 virtual ~wxMotifTimerImpl();
21
22 virtual bool Start(int milliseconds = -1, bool oneShot = false);
23 virtual void Stop();
24 virtual bool IsRunning() const { return m_id != 0; }
25
26 // override this to rearm the timer if necessary (i.e. if not one shot) as
27 // X timeouts are removed automatically when they expire
28 virtual void Notify();
29
30protected:
31 // common part of Start() and Notify()
32 void DoStart();
33
34 long m_id;
35};
36
37#endif // _WX_MOTIF_PRIVATE_TIMER_H_