X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2cb94e7ad66471a655561084056bfc77ccf6d0ac..5a20d2ced0a0779b5d8b1cc8064f8404b2727e92:/docs/latex/wx/timer.tex diff --git a/docs/latex/wx/timer.tex b/docs/latex/wx/timer.tex index fc32e41259..dc7ba28b18 100644 --- a/docs/latex/wx/timer.tex +++ b/docs/latex/wx/timer.tex @@ -10,7 +10,7 @@ There are three different ways to use this class: \item You may derive a new class from wxTimer and override the \helpref{Notify}{wxtimernotify} member to perform the required action. \item Or you may redirect the notifications to any -\helpref{wxEvtHandler}{wxevthandler} derived object by using the non default +\helpref{wxEvtHandler}{wxevthandler} derived object by using the non-default constructor or \helpref{SetOwner}{wxtimersetowner}. Then use the {\tt EVT\_TIMER} macro to connect it to the event handler which will receive \helpref{wxTimerEvent}{wxtimerevent} notifications. @@ -29,6 +29,7 @@ be stopped later with \helpref{Stop}{wxtimerstop}. \wxheading{Derived from} \helpref{wxEvtHandler}{wxevthandler} +\helpref{wxObject}{wxobject} \wxheading{Include files} @@ -36,7 +37,7 @@ be stopped later with \helpref{Stop}{wxtimerstop}. \wxheading{See also} -\helpref{::wxStartTimer}{wxstarttimer}, \helpref{::wxGetElapsedTime}{wxgetelapsedtime}, \helpref{wxStopWatch}{wxstopwatch} +\helpref{wxStopWatch}{wxstopwatch} \latexignore{\rtfignore{\wxheading{Members}}} @@ -65,6 +66,20 @@ Destructor. Stops the timer if it is running. Returns the current interval for the timer (in milliseconds). +\membersection{wxTimer::GetOwner}\label{wxtimergetowner} + +\constfunc{wxEvtHandler}{GetOwner}{\void} + +Returns the current {\it owner} of the timer. +If non-\NULL this is the event handler which will receive the +\helpref{timer events}{wxtimerevent} when the timer is running. + +\membersection{wxTimer::GetId}\label{wxtimergetid} + +\constfunc{int}{GetId}{\void} + +Returns the ID of the events generated by this timer. + \membersection{wxTimer::IsOneShot}\label{wxtimerisoneshot} \constfunc{bool}{IsOneShot}{\void} @@ -123,6 +138,13 @@ restarting it. Stops the timer. + + + + +%% wxTimerEvent + + \section{\class{wxTimerEvent}}\label{wxtimerevent} wxTimerEvent object is passed to the event handler of timer events. @@ -157,6 +179,10 @@ void MyFrame::OnTimer(wxTimerEvent& event) \end{verbatim} +\wxheading{Derived from} + +\helpref{wxEvent}{wxevent} + \wxheading{Include files} @@ -173,3 +199,10 @@ void MyFrame::OnTimer(wxTimerEvent& event) Returns the interval of the timer which generated this event. + +\membersection{wxTimerEvent::GetTimer}\label{wxtimereventgettimer} + +\constfunc{wxTimer\&}{GetTimer}{\void} + +Returns the timer object which generated this event. +