1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %% Purpose: wxAppTraits
4 %% Author: Francesco Montorsi
8 %% Copyright: (c) wxWidgets Team
9 %% License: wxWindows license
10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12 \section{\class{wxAppTraits
}}\label{wxapptraits
}
14 The
{\bf wxAppTraits
} class defines various configurable aspects of a
\helpref{wxApp
}{wxapp
}.
15 You can access it using
\helpref{wxApp::GetTraits
}{wxappgettraits
} function and you can
16 create your own
\helpref{wxAppTraits
}{wxapptraits
} overriding the
17 \helpref{wxApp::CreateTraits
}{wxappcreatetraits
} function.
19 By default, wxWidgets creates a
{\tt wxConsoleAppTraits
} object for console applications
20 (i.e. those applications linked against wxBase library only - see the
21 \helpref{Libraries list
}{librarieslist
} page) and a
{\tt wxGUIAppTraits
} object for GUI
24 \wxheading{Derived from
}
28 \wxheading{Include files
}
34 \helpref{wxApp overview
}{wxappoverview
},
\helpref{wxApp
}{wxapp
}
36 \latexignore{\rtfignore{\wxheading{Members
}}}
39 \membersection{wxAppTraits::GetToolkitInfo
}\label{wxapptraitsgettoolkitinfo
}
41 \func{virtual wxToolkitInfo \&
}{GetToolkitInfo
}{\void}
43 Returns information about which toolkit is running. See
\helpref{wxToolkitInfo
}{wxtoolkitinfo
}
47 \membersection{wxAppTraits::HasStderr
}\label{wxapptraitshasstderr
}
49 \func{virtual bool
}{HasStderr
}{\void}
51 Returns
\true if
{\tt fprintf(stderr)
} goes somewhere,
\false otherwise.
55 \membersection{wxAppTraits::ShowAssertDialog
}\label{wxapptraitsshowassertdialog
}
57 \func{virtual bool
}{ShowAssertDialog
}{\param{const wxString \&
}{ msg
}}
59 Shows the assert dialog with the specified message in GUI mode or just prints
60 the string to stderr in console mode.
62 Returns
\true to suppress subsequent asserts,
\false to continue as before.
66 \membersection{wxAppTraits::GetStandardPaths
}\label{wxapptraitsgetstandardpaths
}
68 \func{virtual wxStandardPaths \&
}{GetStandardPaths
}{\void}
70 Returns the wxStandardPaths object for the application.
71 It's normally the same for wxBase and wxGUI except in the case of wxMac and wxCocoa.
75 \membersection{wxAppTraits::CreateRenderer
}\label{wxapptraitscreaterenderer
}
77 \func{virtual wxRendererNative *
}{CreateRenderer
}{\void}
79 Returns the renderer to use for drawing the generic controls (return value may be
\NULL
80 in which case the default renderer for the current platform is used);
81 this is used in GUI mode only and always returns
\NULL in console.
83 NOTE: returned pointer will be deleted by the caller.
87 \membersection{wxAppTraits::CreateLogTarget
}\label{wxapptraitscreatelogtarget
}
89 \func{virtual wxLog *
}{CreateLogTarget
}{\void}
91 Creates the default log target for the application.
95 \membersection{wxAppTraits::CreateMessageOutput
}\label{wxapptraitscreatemessageoutput
}
97 \func{virtual wxMessageOutput *
}{CreateMessageOutput
}{\void}
99 Creates the global object used for printing out messages.
103 \membersection{wxAppTraits::CreateFontMapper
}\label{wxapptraitscreatefontmapper
}
105 \func{virtual wxFontMapper *
}{CreateFontMapper
}{\void}
107 Creates the global font mapper object used for encodings/charset mapping.