X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cc81d32f2bf8c159f3b1bf6ddaf62e6d77720209..e7c240da70308b5e54bf8bcc9813b5c4e4fece4d:/docs/latex/wx/closeevt.tex?ds=sidebyside diff --git a/docs/latex/wx/closeevt.tex b/docs/latex/wx/closeevt.tex index 4a70a1707d..0880be8144 100644 --- a/docs/latex/wx/closeevt.tex +++ b/docs/latex/wx/closeevt.tex @@ -42,19 +42,20 @@ This event applies to wxApp only.} \wxheading{See also} \helpref{wxWindow::Close}{wxwindowclose},\rtfsp -\helpref{wxApp::OnQueryEndSession}{wxapponqueryendsession},\rtfsp %% GD: OnXXX functions are not documented %%\helpref{wxApp::OnEndSession}{wxapponendsession},\rtfsp \helpref{Window deletion overview}{windowdeletionoverview} \latexignore{\rtfignore{\wxheading{Members}}} -\membersection{wxCloseEvent::wxCloseEvent} + +\membersection{wxCloseEvent::wxCloseEvent}\label{wxcloseeventctor} \func{}{wxCloseEvent}{\param{WXTYPE}{ commandEventType = 0}, \param{int}{ id = 0}} Constructor. + \membersection{wxCloseEvent::CanVeto}\label{wxcloseeventcanveto} \func{bool}{CanVeto}{\void} @@ -63,17 +64,15 @@ Returns true if you can veto a system shutdown or a window close event. Vetoing a window close event is not possible if the calling code wishes to force the application to exit, and so this function must be called to check this. + \membersection{wxCloseEvent::GetLoggingOff}\label{wxcloseeventgetloggingoff} \constfunc{bool}{GetLoggingOff}{\void} -Returns true if the user is logging off. - -\membersection{wxCloseEvent::GetSessionEnding}\label{wxcloseeventgetsessionending} - -\constfunc{bool}{GetSessionEnding}{\void} +Returns true if the user is just logging off or false if the system is +shutting down. This method can only be called for end session and query end +session events, it doesn't make sense for close window event. -Returns true if the session is ending. \membersection{wxCloseEvent::GetForce}\label{wxcloseeventgetforce} @@ -82,24 +81,28 @@ Returns true if the session is ending. Returns true if the application wishes to force the window to close. This will shortly be obsolete, replaced by CanVeto. + \membersection{wxCloseEvent::SetCanVeto}\label{wxcloseeventsetcanveto} \func{void}{SetCanVeto}{\param{bool}{ canVeto}} Sets the 'can veto' flag. + \membersection{wxCloseEvent::SetForce}\label{wxcloseeventsetforce} \constfunc{void}{SetForce}{\param{bool}{ force}} Sets the 'force' flag. + \membersection{wxCloseEvent::SetLoggingOff}\label{wxcloseeventsetloggingoff} \constfunc{void}{SetLoggingOff}{\param{bool}{ loggingOff}} Sets the 'logging off' flag. + \membersection{wxCloseEvent::Veto}\label{wxcloseeventveto} \func{void}{Veto}{\param{bool}{ veto = true}}