1998-05-20 14:12:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2007-04-20 01:29:16 +00:00
|
|
|
// Name: wx/msw/private/timer.h
|
1998-05-20 14:12:05 +00:00
|
|
|
// Purpose: wxTimer class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
1998-08-07 23:52:45 +00:00
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 14:12:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2007-04-20 01:29:16 +00:00
|
|
|
#ifndef _WX_MSW_PRIVATE_TIMER_H_
|
|
|
|
#define _WX_MSW_PRIVATE_TIMER_H_
|
1998-05-20 14:12:05 +00:00
|
|
|
|
2007-07-21 02:05:03 +00:00
|
|
|
#if wxUSE_TIMER
|
|
|
|
|
2007-04-20 01:29:16 +00:00
|
|
|
#include "wx/private/timer.h"
|
2009-06-16 05:05:20 +00:00
|
|
|
#include "wx/msw/wrapwin.h" // for WPARAM
|
1998-10-14 23:53:24 +00:00
|
|
|
|
2007-04-20 01:29:16 +00:00
|
|
|
class WXDLLIMPEXP_BASE wxMSWTimerImpl : public wxTimerImpl
|
|
|
|
{
|
1998-10-12 13:09:15 +00:00
|
|
|
public:
|
2010-02-15 17:34:21 +00:00
|
|
|
wxMSWTimerImpl(wxTimer *timer) : wxTimerImpl(timer) { m_id = 0; };
|
1998-10-12 13:09:15 +00:00
|
|
|
|
2004-09-07 06:01:01 +00:00
|
|
|
virtual bool Start(int milliseconds = -1, bool oneShot = false);
|
1999-11-12 19:19:38 +00:00
|
|
|
virtual void Stop();
|
1998-10-12 13:09:15 +00:00
|
|
|
|
1999-11-12 19:19:38 +00:00
|
|
|
virtual bool IsRunning() const { return m_id != 0; }
|
1998-10-12 13:09:15 +00:00
|
|
|
|
1998-10-14 23:53:24 +00:00
|
|
|
protected:
|
2009-06-16 05:05:20 +00:00
|
|
|
// this must be 64 bit under Win64 as WPARAM (storing timer ids) is 64 bit
|
|
|
|
// there and so the ids may possibly not fit in 32 bits
|
2009-06-15 17:14:50 +00:00
|
|
|
WPARAM m_id;
|
1998-05-20 14:12:05 +00:00
|
|
|
};
|
|
|
|
|
2007-07-21 02:05:03 +00:00
|
|
|
#endif // wxUSE_TIMER
|
|
|
|
|
2007-04-20 01:29:16 +00:00
|
|
|
#endif // _WX_TIMERH_
|