]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/sysopt.tex
removed documentation for wxStartTimer() and wxGetElapsedTime() which are only kept...
[wxWidgets.git] / docs / latex / wx / sysopt.tex
... / ...
CommitLineData
1\section{\class{wxSystemOptions}}\label{wxsystemoptions}
2
3wxSystemOptions stores option/value pairs that wxWidgets itself or
4applications can use to alter behaviour at run-time. It can be
5used to optimize behaviour that doesn't deserve a distinct API,
6but is still important to be able to configure.
7
8These options are currently recognised by wxWidgets.
9
10\wxheading{Windows}
11
12\twocolwidtha{7cm}
13\begin{twocollist}\itemsep=0pt
14\twocolitem{{\bf Option}}{{\bf Value}}
15\twocolitem{no-maskblt}{1 to never use WIN32's MaskBlt function, 0 to allow it to be used where possible. Default: 0.
16In some circumstances the MaskBlt function can be slower than using the fallback code, especially if using
17DC cacheing. By default, MaskBlt will be used where it is implemented by the operating system and driver.}
18\twocolitem{msw.remap}{If 1 (the default), wxToolBar bitmap colours will be remapped
19to the current theme's values. Set this to 0 to disable this functionality, for example if you're using
20more than 16 colours in your tool bitmaps.}
21\twocolitem{msw.window.no-clip-children}{If 1, windows will not automatically get the WS\_CLIPCHILDREN
22style. This restores the way windows are refreshed back to the method used in versions of wxWidgets
23earlier than 2.5.4, and for some complex window hierarchies it can reduce apparent refresh delays. You may
24still specify wxCLIP\_CHILDREN for individual windows.}
25\twocolitem{msw.notebook.themed-background}{If set to 0, globally disables themed backgrounds on notebook
26pages. Note that this won't disable the theme on the actual notebook background (noticeable only if there are no
27pages).}
28\twocolitem{msw.staticbox.optimized-paint}{If set to 0, switches off optimized wxStaticBox painting.
29Setting this to 0 causes more flicker, but allows applications to paint graphics on the parent of a static box
30(the optimized refresh causes any such drawing to disappear).}
31\twocolitem{msw.display.directdraw}{If set to 1, use DirectDraw-based implementation of
32\helpref{wxDisplay}{wxdisplay}. By default the standard Win32 functions are
33used.}
34\end{twocollist}
35
36\wxheading{GTK}
37
38\twocolwidtha{7cm}
39\begin{twocollist}\itemsep=0pt
40\twocolitem{{\bf Option}}{{\bf Value}}
41\twocolitem{gtk.tlw.can-set-transparent}{\helpref{wxTopLevelWindow::CanSetTransparent()}{wxtoplevelwindowcansettransparent}
42method normally tries to detect automatically whether transparency for top
43level windows is currently supported, however this may sometimes fail and this
44option allows to override the automatic detection. Setting it to $1$ makes the
45transparency be always available (setting it can still fail, of course) and
46setting it to $0$ makes it always unavailable.}
47\end{twocollist}
48
49\wxheading{Mac}
50
51\twocolwidtha{7cm}
52\begin{twocollist}\itemsep=0pt
53\twocolitem{{\bf Option}}{{\bf Value}}
54\twocolitem{mac.window-plain-transition}{If 1, uses a plainer transition when showing
55a window. You can also use the symbol wxMAC\_WINDOW\_PLAIN\_TRANSITION.}
56\twocolitem{window-default-variant}{The default variant used by windows (cast to integer from the wxWindowVariant enum).
57Also known as wxWINDOW\_DEFAULT\_VARIANT.}
58\twocolitem{mac.listctrl.always\_use\_generic}{Tells wxListCtrl to use the generic
59control even when it is capable of using the native control instead.
60Also knwon as wxMAC\_ALWAYS\_USE\_GENERIC\_LISTCTRL.}
61\end{twocollist}
62
63\wxheading{MGL}
64
65\twocolwidtha{7cm}
66\begin{twocollist}\itemsep=0pt
67\twocolitem{{\bf Option}}{{\bf Value}}
68\twocolitem{mgl.aa-threshold}{Set this integer option to point
69size below which fonts are not antialiased. Default: 10.}
70\twocolitem{mgl.screen-refresh}{Screen refresh rate in Hz.
71A reasonable default is used if not specified.}
72\end{twocollist}
73
74\wxheading{Motif}
75
76\twocolwidtha{7cm}
77\begin{twocollist}\itemsep=0pt
78\twocolitem{{\bf Option}}{{\bf Value}}
79\twocolitem{motif.largebuttons}{If 1, uses a bigger default size for wxButtons.}
80\end{twocollist}
81
82The compile-time option to include or exclude this functionality
83is wxUSE\_SYSTEM\_OPTIONS.
84
85\wxheading{Derived from}
86
87\helpref{wxObject}{wxobject}
88
89\wxheading{Include files}
90
91<wx/sysopt.h>
92
93\latexignore{\rtfignore{\wxheading{Members}}}
94
95
96\membersection{wxSystemOptions::wxSystemOptions}\label{wxsystemoptionsctor}
97
98\func{}{wxSystemOptions}{\void}
99
100Default constructor. You don't need to create an instance of wxSystemOptions
101since all of its functions are static.
102
103
104\membersection{wxSystemOptions::GetOption}\label{wxsystemoptionsgetoption}
105
106\constfunc{wxString}{GetOption}{\param{const wxString\&}{ name}}
107
108Gets an option. The function is case-insensitive to {\it name}.
109
110Returns empty string if the option hasn't been set.
111
112\wxheading{See also}
113
114\helpref{wxSystemOptions::SetOption}{wxsystemoptionssetoption},\rtfsp
115\helpref{wxSystemOptions::GetOptionInt}{wxsystemoptionsgetoptionint},\rtfsp
116\helpref{wxSystemOptions::HasOption}{wxsystemoptionshasoption}
117
118
119\membersection{wxSystemOptions::GetOptionInt}\label{wxsystemoptionsgetoptionint}
120
121\constfunc{int}{GetOptionInt}{\param{const wxString\&}{ name}}
122
123Gets an option as an integer. The function is case-insensitive to {\it name}.
124
125If the option hasn't been set, this function returns $0$.
126
127\wxheading{See also}
128
129\helpref{wxSystemOptions::SetOption}{wxsystemoptionssetoption},\rtfsp
130\helpref{wxSystemOptions::GetOption}{wxsystemoptionsgetoption},\rtfsp
131\helpref{wxSystemOptions::HasOption}{wxsystemoptionshasoption}
132
133
134\membersection{wxSystemOptions::HasOption}\label{wxsystemoptionshasoption}
135
136\constfunc{bool}{HasOption}{\param{const wxString\&}{ name}}
137
138Returns \true if the given option is present. The function is case-insensitive to {\it name}.
139
140\wxheading{See also}
141
142\helpref{wxSystemOptions::SetOption}{wxsystemoptionssetoption},\rtfsp
143\helpref{wxSystemOptions::GetOption}{wxsystemoptionsgetoption},\rtfsp
144\helpref{wxSystemOptions::GetOptionInt}{wxsystemoptionsgetoptionint}
145
146
147\membersection{wxSystemOptions::IsFalse}\label{wxsystemoptionsisfalse}
148
149\constfunc{bool}{IsFalse}{\param{const wxString\&}{ name}}
150
151Returns \true if the option with the given \arg{name} had been set to $0$
152value. This is mostly useful for boolean options for which you can't use
153\texttt{GetOptionInt(name) == 0} as this would also be true if the option
154hadn't been set at all.
155
156
157\membersection{wxSystemOptions::SetOption}\label{wxsystemoptionssetoption}
158
159\func{void}{SetOption}{\param{const wxString\&}{ name}, \param{const wxString\&}{ value}}
160
161\func{void}{SetOption}{\param{const wxString\&}{ name}, \param{int}{ value}}
162
163Sets an option. The function is case-insensitive to {\it name}.
164
165\wxheading{See also}
166
167\helpref{wxSystemOptions::GetOption}{wxsystemoptionsgetoption},\rtfsp
168\helpref{wxSystemOptions::GetOptionInt}{wxsystemoptionsgetoptionint},\rtfsp
169\helpref{wxSystemOptions::HasOption}{wxsystemoptionshasoption}
170