X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c5c5dad5950a43edbb9a4e7144f44b8f3bd6bf80..961dd75341aaa5083098fefd5c1074d8308b5732:/include/wx/timer.h?ds=inline diff --git a/include/wx/timer.h b/include/wx/timer.h index 1707d8346e..9e9ed4e523 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; } @@ -183,7 +187,7 @@ private: typedef void (wxEvtHandler::*wxTimerEventFunction)(wxTimerEvent&); #define EVT_TIMER(timerid, func) \ - DECLARE_EVENT_TABLE_ENTRY( wxEVT_TIMER, timerid, -1, (wxObjectEventFunction) (wxEventFunction) (wxTimerEventFunction) & func, NULL), + DECLARE_EVENT_TABLE_ENTRY( wxEVT_TIMER, timerid, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxTimerEventFunction, & func ), NULL), #endif // wxUSE_GUI && wxUSE_TIMER