From: Robin Dunn Date: Wed, 3 Dec 2003 01:37:30 +0000 (+0000) Subject: Give wxTimer a GetId accessor X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0bdc5dd6f391db63b7baae66ce5363f35e046af6 Give wxTimer a GetId accessor git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/timer.h b/include/wx/timer.h index 1707d8346e..a16209c387 100644 --- a/include/wx/timer.h +++ b/include/wx/timer.h @@ -90,6 +90,10 @@ public: // return TRUE if the timer is one shot bool IsOneShot() const { return m_oneShot; } + // return the timer ID + int GetId() const { return m_idTimer; } + + protected: // common part of all ctors void Init() { m_oneShot = FALSE; m_milli = 0; } diff --git a/wxPython/src/_timer.i b/wxPython/src/_timer.i index 6d669bc44f..b0d2dae880 100644 --- a/wxPython/src/_timer.i +++ b/wxPython/src/_timer.i @@ -78,6 +78,10 @@ public: // return True if the timer is one shot bool IsOneShot() const; + + // return the timer ID + int GetId() const; + };