]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/apptraits.tex
added wxRect::Inside(wxRect) for testing if a rectangle is completely within another...
[wxWidgets.git] / docs / latex / wx / apptraits.tex
CommitLineData
afdf936c
VZ
1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2%% Name: apptraits.tex
3%% Purpose: wxAppTraits
4%% Author: Francesco Montorsi
5%% Modified by:
6%% Created: 5-7-2006
7%% RCS-ID: $Id$
8%% Copyright: (c) wxWidgets Team
9%% License: wxWindows license
10%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11
12\section{\class{wxAppTraits}}\label{wxapptraits}
13
14The {\bf wxAppTraits} class defines various configurable aspects of a \helpref{wxApp}{wxapp}.
15You can access it using \helpref{wxApp::GetTraits}{wxappgettraits} function and you can
16create your own \helpref{wxAppTraits}{wxapptraits} overriding the
17\helpref{wxApp::CreateTraits}{wxappcreatetraits} function.
18
19By 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
22applications.
23
24\wxheading{Derived from}
25
26None
27
28\wxheading{Include files}
29
30<wx/apptrait.h>
31
32\wxheading{See also}
33
34\helpref{wxApp overview}{wxappoverview}, \helpref{wxApp}{wxapp}
35
36\latexignore{\rtfignore{\wxheading{Members}}}
37
38
39\membersection{wxAppTraits::GetToolkitInfo}\label{wxapptraitsgettoolkitinfo}
40
41\func{virtual wxToolkitInfo \&}{GetToolkitInfo}{\void}
42
43Returns information about which toolkit is running. See \helpref{wxToolkitInfo}{wxtoolkitinfo}
44for more details.
45
46
47\membersection{wxAppTraits::HasStderr}\label{wxapptraitshasstderr}
48
49\func{virtual bool}{HasStderr}{\void}
50
51Returns \true if {\tt fprintf(stderr)} goes somewhere, \false otherwise.
52
53
54
55\membersection{wxAppTraits::ShowAssertDialog}\label{wxapptraitsshowassertdialog}
56
57\func{virtual bool}{ShowAssertDialog}{\param{const wxString \&}{ msg}}
58
59Shows the assert dialog with the specified message in GUI mode or just prints
60the string to stderr in console mode.
61
62Returns \true to suppress subsequent asserts, \false to continue as before.
63
64
65
66\membersection{wxAppTraits::GetStandardPaths}\label{wxapptraitsgetstandardpaths}
67
68\func{virtual wxStandardPaths \&}{GetStandardPaths}{\void}
69
70Returns the wxStandardPaths object for the application.
71It's normally the same for wxBase and wxGUI except in the case of wxMac and wxCocoa.
72
73
74
75\membersection{wxAppTraits::CreateRenderer}\label{wxapptraitscreaterenderer}
76
77\func{virtual wxRendererNative *}{CreateRenderer}{\void}
78
79Returns the renderer to use for drawing the generic controls (return value may be \NULL
80in which case the default renderer for the current platform is used);
81this is used in GUI mode only and always returns \NULL in console.
82
83NOTE: returned pointer will be deleted by the caller.
84
85
86
87\membersection{wxAppTraits::CreateLogTarget}\label{wxapptraitscreatelogtarget}
88
89\func{virtual wxLog *}{CreateLogTarget}{\void}
90
91Creates the default log target for the application.
92
93
94
95\membersection{wxAppTraits::CreateMessageOutput}\label{wxapptraitscreatemessageoutput}
96
97\func{virtual wxMessageOutput *}{CreateMessageOutput}{\void}
98
99Creates the global object used for printing out messages.
100
101
102
103\membersection{wxAppTraits::CreateFontMapper}\label{wxapptraitscreatefontmapper}
104
105\func{virtual wxFontMapper *}{CreateFontMapper}{\void}
106
107Creates the global font mapper object used for encodings/charset mapping.
108
109