Added support for timer events in Motif
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
ee8dbe6308
commit
b3ddc4c2ec
@ -21,7 +21,9 @@ class WXDLLEXPORT wxTimer : public wxTimerBase
|
||||
friend void wxTimerCallback(wxTimer * timer);
|
||||
|
||||
public:
|
||||
wxTimer();
|
||||
wxTimer() { Init(); }
|
||||
wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id)
|
||||
{ Init(); }
|
||||
~wxTimer();
|
||||
|
||||
virtual bool Start(int milliseconds = -1, bool oneShot = FALSE);
|
||||
@ -30,6 +32,8 @@ public:
|
||||
virtual bool IsRunning() const { return m_id != 0; }
|
||||
|
||||
protected:
|
||||
void Init();
|
||||
|
||||
long m_id;
|
||||
|
||||
private:
|
||||
|
@ -51,9 +51,10 @@ void wxTimerCallback (wxTimer * timer)
|
||||
timer->Notify();
|
||||
}
|
||||
|
||||
wxTimer::wxTimer()
|
||||
void wxTimer::Init()
|
||||
{
|
||||
m_id = 0;
|
||||
m_milli = 1000;
|
||||
}
|
||||
|
||||
wxTimer::~wxTimer()
|
||||
|
Loading…
Reference in New Issue
Block a user