1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/private/timer.h
3 // Purpose: wxTimer class
4 // Author: Julian Smart
6 // Copyright: (c) Julian Smart
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_MOTIF_PRIVATE_TIMER_H_
11 #define _WX_MOTIF_PRIVATE_TIMER_H_
13 #include "wx/private/timer.h"
15 class WXDLLIMPEXP_CORE wxMotifTimerImpl
: public wxTimerImpl
18 wxMotifTimerImpl(wxTimer
* timer
) : wxTimerImpl(timer
) { m_id
= 0; }
19 virtual ~wxMotifTimerImpl();
21 virtual bool Start(int milliseconds
= -1, bool oneShot
= false);
23 virtual bool IsRunning() const { return m_id
!= 0; }
25 // override this to rearm the timer if necessary (i.e. if not one shot) as
26 // X timeouts are removed automatically when they expire
27 virtual void Notify();
30 // common part of Start() and Notify()
36 #endif // _WX_MOTIF_PRIVATE_TIMER_H_