X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/afdf936cbcea4eb3370cd4a1b913c5b2e77e3c27..f1e3914fde06186edb75b2948418aeea9914a075:/docs/latex/wx/apptraits.tex diff --git a/docs/latex/wx/apptraits.tex b/docs/latex/wx/apptraits.tex index f50a1c01d3..6c15c18363 100644 --- a/docs/latex/wx/apptraits.tex +++ b/docs/latex/wx/apptraits.tex @@ -36,40 +36,26 @@ None \latexignore{\rtfignore{\wxheading{Members}}} -\membersection{wxAppTraits::GetToolkitInfo}\label{wxapptraitsgettoolkitinfo} - -\func{virtual wxToolkitInfo \&}{GetToolkitInfo}{\void} - -Returns information about which toolkit is running. See \helpref{wxToolkitInfo}{wxtoolkitinfo} -for more details. - - -\membersection{wxAppTraits::HasStderr}\label{wxapptraitshasstderr} - -\func{virtual bool}{HasStderr}{\void} - -Returns \true if {\tt fprintf(stderr)} goes somewhere, \false otherwise. +\membersection{wxAppTraits::CreateFontMapper}\label{wxapptraitscreatefontmapper} +\func{virtual wxFontMapper *}{CreateFontMapper}{\void} +Creates the global font mapper object used for encodings/charset mapping. -\membersection{wxAppTraits::ShowAssertDialog}\label{wxapptraitsshowassertdialog} -\func{virtual bool}{ShowAssertDialog}{\param{const wxString \&}{ msg}} -Shows the assert dialog with the specified message in GUI mode or just prints -the string to stderr in console mode. +\membersection{wxAppTraits::CreateLogTarget}\label{wxapptraitscreatelogtarget} -Returns \true to suppress subsequent asserts, \false to continue as before. +\func{virtual wxLog *}{CreateLogTarget}{\void} +Creates the default log target for the application. -\membersection{wxAppTraits::GetStandardPaths}\label{wxapptraitsgetstandardpaths} - -\func{virtual wxStandardPaths \&}{GetStandardPaths}{\void} +\membersection{wxAppTraits::CreateMessageOutput}\label{wxapptraitscreatemessageoutput} -Returns the wxStandardPaths object for the application. -It's normally the same for wxBase and wxGUI except in the case of wxMac and wxCocoa. +\func{virtual wxMessageOutput *}{CreateMessageOutput}{\void} +Creates the global object used for printing out messages. \membersection{wxAppTraits::CreateRenderer}\label{wxapptraitscreaterenderer} @@ -83,27 +69,47 @@ this is used in GUI mode only and always returns \NULL in console. NOTE: returned pointer will be deleted by the caller. +\membersection{wxAppTraits::GetStandardPaths}\label{wxapptraitsgetstandardpaths} -\membersection{wxAppTraits::CreateLogTarget}\label{wxapptraitscreatelogtarget} +\func{virtual wxStandardPaths \&}{GetStandardPaths}{\void} -\func{virtual wxLog *}{CreateLogTarget}{\void} +Returns the wxStandardPaths object for the application. +It's normally the same for wxBase and wxGUI except in the case of wxMac and wxCocoa. -Creates the default log target for the application. +\membersection{wxAppTraits::GetToolkitVersion}\label{wxapptraitsgettoolkitversion} +\func{virtual wxPortId}{GetToolkitVersion}{\param{int *}{major = NULL}, \param{int *}{minor = NULL}} +Returns the wxWidgets port ID used by the running program and eventually +fills the given pointers with the values of the major and minor digits +of the native toolkit currently used. -\membersection{wxAppTraits::CreateMessageOutput}\label{wxapptraitscreatemessageoutput} +E.g. if your program is using wxGTK port this function will return wxPORT\_GTK and +put in given pointers the versions of the GTK library in use. -\func{virtual wxMessageOutput *}{CreateMessageOutput}{\void} +See \helpref{wxPlatformInfo}{wxplatforminfo} for more details. -Creates the global object used for printing out messages. +\membersection{wxAppTraits::HasStderr}\label{wxapptraitshasstderr} +\func{virtual bool}{HasStderr}{\void} -\membersection{wxAppTraits::CreateFontMapper}\label{wxapptraitscreatefontmapper} +Returns \true if {\tt fprintf(stderr)} goes somewhere, \false otherwise. -\func{virtual wxFontMapper *}{CreateFontMapper}{\void} -Creates the global font mapper object used for encodings/charset mapping. +\membersection{wxAppTraits::IsUsingUniversalWidgets}\label{wxapptraitsisusinguniversalwidgets} + +\constfunc{bool}{IsUsingUniversalWidgets}{\void} +Returns \true if the library was built as wxUniversal. Always returns +\false for wxBase-only apps. + + +\membersection{wxAppTraits::ShowAssertDialog}\label{wxapptraitsshowassertdialog} +\func{virtual bool}{ShowAssertDialog}{\param{const wxString \&}{ msg}} + +Shows the assert dialog with the specified message in GUI mode or just prints +the string to stderr in console mode. + +Returns \true to suppress subsequent asserts, \false to continue as before.