The wxAppTraits class defines various configurable aspects of a wxApp. You can access it using wxApp::GetTraits function and you can create your own wxAppTraits overriding the wxApp::CreateTraits function.
By default, wxWidgets creates a wxConsoleAppTraits object for console applications (i.e. those applications linked against wxBase library only - see the Libraries list page) and a wxGUIAppTraits object for GUI applications.
Derived from
None
Include files
<wx/apptrait.h>
See also
Members
wxAppTraits::GetToolkitInfo
wxAppTraits::HasStderr
wxAppTraits::ShowAssertDialog
wxAppTraits::GetStandardPaths
wxAppTraits::CreateRenderer
wxAppTraits::CreateLogTarget
wxAppTraits::CreateMessageOutput
wxAppTraits::CreateFontMapper
virtual wxToolkitInfo & GetToolkitInfo()
Returns information about which toolkit is running. See wxToolkitInfo (REF NOT FOUND) for more details.
virtual bool HasStderr()
Returns true if fprintf(stderr) goes somewhere, false otherwise.
virtual bool ShowAssertDialog(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.
virtual wxStandardPaths & GetStandardPaths()
Returns the wxStandardPaths object for the application. It's normally the same for wxBase and wxGUI except in the case of wxMac and wxCocoa.
virtual wxRendererNative * CreateRenderer()
Returns the renderer to use for drawing the generic controls (return value may be NULL in which case the default renderer for the current platform is used); this is used in GUI mode only and always returns NULL in console.
NOTE: returned pointer will be deleted by the caller.
virtual wxLog * CreateLogTarget()
Creates the default log target for the application.
virtual wxMessageOutput * CreateMessageOutput()
Creates the global object used for printing out messages.
virtual wxFontMapper * CreateFontMapper()
Creates the global font mapper object used for encodings/charset mapping.