X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/924b84ab9461c95cf5c5386d1091ae0f7a8e7ce7..65baafba0e8cd74f2264b7e2f7625ff5bea84864:/docs/latex/wx/app.tex?ds=sidebyside diff --git a/docs/latex/wx/app.tex b/docs/latex/wx/app.tex index fc1fa101d6..b0ad4a4595 100644 --- a/docs/latex/wx/app.tex +++ b/docs/latex/wx/app.tex @@ -42,7 +42,7 @@ Constructor. Called implicitly with a definition of a wxApp object. \membersection{wxApp::\destruct{wxApp}}\label{wxappdtor} -\func{}{\destruct{wxApp}}{\void} +\func{virtual}{\destruct{wxApp}}{\void} Destructor. Will be called implicitly on program exit if the wxApp object is created on the stack. @@ -197,20 +197,6 @@ different visuals, false otherwise. Returns the application's vendor name. -\membersection{wxApp::HandleEvent}\label{wxapphandleevent} - -\constfunc{virtual void}{HandleEvent}{\param{wxEvtHandler}{ *handler}, \param{wxEventFunction}{ func}, \param{wxEvent\& }{event}} - -This function simply invokes the -\helpref{DoHandleEvent}{wxevthandlerdohandleevent} method of event handler -\arg{handler}, passing \arg{func} and \arg{event} as parameters. If an -exception occurs, \helpref{OnExceptionInMainLoop}{wxapponexceptioninmainloop} -is called by this function. You can override it to customize exceptions -handling. - -If you want to modify this behaviour, override this function. - - \membersection{wxApp::IsActive}\label{wxappisactive} \constfunc{bool}{IsActive}{\void} @@ -679,6 +665,18 @@ This function currently only has effect under GTK. \docparam{flag}{If true, the app will use the best visual.} + +\membersection{wxApp::HandleEvent}\label{wxapphandleevent} + +\constfunc{virtual void}{HandleEvent}{\param{wxEvtHandler}{ *handler}, \param{wxEventFunction}{ func}, \param{wxEvent\& }{event}} + +This function simply invokes the given method \arg{func} of the specified +event handler \arg{handler} with the \arg{event} as parameter. It exists solely +to allow to catch the C++ exceptions which could be thrown by all event +handlers in the application in one place: if you want to do this, override this +function in your wxApp-derived class and add try/catch clause(s) to it. + + \membersection{wxApp::Yield}\label{wxappyield} \func{bool}{Yield}{\param{bool}{ onlyIfNeeded = false}}