From 3c52ef94230fa216fdb8f4c353c4db2e01250497 Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Wed, 26 Nov 2008 16:13:51 +0000 Subject: [PATCH] added note about GetTimestamp() (fixes #1986) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56981 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/event.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/interface/wx/event.h b/interface/wx/event.h index 2db11fddb5..a8d4459f1e 100644 --- a/interface/wx/event.h +++ b/interface/wx/event.h @@ -83,6 +83,10 @@ public: Gets the timestamp for the event. The timestamp is the time in milliseconds since some fixed moment (not necessarily the standard Unix Epoch, so only differences between the timestamps and not their absolute values usually make sense). + + @warning + wxWidgets returns a non-NULL timestamp only for mouse and key events + (see wxMouseEvent and wxKeyEvent). */ long GetTimestamp() const; @@ -117,7 +121,7 @@ public: /** Sets the timestamp for the event. */ - void SetTimestamp(long = 0); + void SetTimestamp(long timeStamp = 0); /** Test if this event should be propagated or not, i.e. if the propagation level -- 2.45.2