]>
Commit | Line | Data |
---|---|---|
0cbff120 JS |
1 | \section{\class{wxSystemOptions}}\label{wxsystemoptions} |
2 | ||
fc2171bd | 3 | wxSystemOptions stores option/value pairs that wxWidgets itself or |
0cbff120 JS |
4 | applications can use to alter behaviour at run-time. It can be |
5 | used to optimize behaviour that doesn't deserve a distinct API, | |
6 | but is still important to be able to configure. | |
7 | ||
fc2171bd | 8 | These options are currently recognised by wxWidgets: |
0cbff120 JS |
9 | |
10 | \twocolwidtha{7cm} | |
11 | \begin{twocollist}\itemsep=0pt | |
12 | \twocolitem{{\bf Option}}{{\bf Value}} | |
13 | \twocolitem{no-maskblt}{1 to never use WIN32's MaskBlt function, 0 to allow it to be used where possible. Default: 0. | |
14 | ||
15 | In some circumstances the MaskBlt function can be slower than using the fallback code, especially if using | |
16 | DC cacheing. By default, MaskBlt will be used where it is implemented by the operating system and driver. | |
17 | } | |
1e6afae8 VS |
18 | \twocolitem{mgl.aa-threshold}{(wxMGL only) Set this integer option to point |
19 | size below which fonts are not antialiased. Default: 10. | |
20 | } | |
82a16d7e | 21 | \twocolitem{mgl.screen-refresh}{(wxMGL only) Screen refresh rate in Hz. |
1e6afae8 VS |
22 | Reasonable default is used if not specified. |
23 | } | |
0cbff120 JS |
24 | \end{twocollist} |
25 | ||
26 | The compile-time option to include or exclude this functionality | |
27 | is wxUSE\_SYSTEM\_OPTIONS. | |
28 | ||
29 | \wxheading{Derived from} | |
30 | ||
31 | \helpref{wxObject}{wxobject} | |
32 | ||
33 | \wxheading{Include files} | |
34 | ||
35 | <wx/sysopt.h> | |
36 | ||
37 | \latexignore{\rtfignore{\wxheading{Members}}} | |
38 | ||
82a16d7e | 39 | |
08f1d438 | 40 | \membersection{wxSystemOptions::wxSystemOptions}\label{wxsystemoptionsctor} |
0cbff120 JS |
41 | |
42 | \func{}{wxSystemOptions}{\void} | |
43 | ||
44 | Default constructor. You don't need to create an instance of wxSystemOptions | |
45 | since all of its functions are static. | |
46 | ||
82a16d7e | 47 | |
0cbff120 JS |
48 | \membersection{wxSystemOptions::GetOption}\label{wxsystemoptionsgetoption} |
49 | ||
50 | \constfunc{wxString}{GetOption}{\param{const wxString\&}{ name}} | |
51 | ||
52 | Gets an option. The function is case-insensitive to {\it name}. | |
53 | ||
82a16d7e VZ |
54 | Returns empty string if the option hasn't been set. |
55 | ||
0cbff120 JS |
56 | \wxheading{See also} |
57 | ||
58 | \helpref{wxSystemOptions::SetOption}{wxsystemoptionssetoption},\rtfsp | |
59 | \helpref{wxSystemOptions::GetOptionInt}{wxsystemoptionsgetoptionint},\rtfsp | |
60 | \helpref{wxSystemOptions::HasOption}{wxsystemoptionshasoption} | |
61 | ||
82a16d7e | 62 | |
0cbff120 JS |
63 | \membersection{wxSystemOptions::GetOptionInt}\label{wxsystemoptionsgetoptionint} |
64 | ||
65 | \constfunc{int}{GetOptionInt}{\param{const wxString\&}{ name}} | |
66 | ||
67 | Gets an option as an integer. The function is case-insensitive to {\it name}. | |
68 | ||
82a16d7e VZ |
69 | If the option hasn't been set, this function returns $0$. |
70 | ||
0cbff120 JS |
71 | \wxheading{See also} |
72 | ||
73 | \helpref{wxSystemOptions::SetOption}{wxsystemoptionssetoption},\rtfsp | |
74 | \helpref{wxSystemOptions::GetOption}{wxsystemoptionsgetoption},\rtfsp | |
75 | \helpref{wxSystemOptions::HasOption}{wxsystemoptionshasoption} | |
76 | ||
82a16d7e | 77 | |
0cbff120 JS |
78 | \membersection{wxSystemOptions::HasOption}\label{wxsystemoptionshasoption} |
79 | ||
80 | \constfunc{bool}{HasOption}{\param{const wxString\&}{ name}} | |
81 | ||
82a16d7e | 82 | Returns \true if the given option is present. The function is case-insensitive to {\it name}. |
0cbff120 JS |
83 | |
84 | \wxheading{See also} | |
85 | ||
86 | \helpref{wxSystemOptions::SetOption}{wxsystemoptionssetoption},\rtfsp | |
87 | \helpref{wxSystemOptions::GetOption}{wxsystemoptionsgetoption},\rtfsp | |
88 | \helpref{wxSystemOptions::GetOptionInt}{wxsystemoptionsgetoptionint} | |
89 | ||
82a16d7e | 90 | |
0cbff120 JS |
91 | \membersection{wxSystemOptions::SetOption}\label{wxsystemoptionssetoption} |
92 | ||
93 | \func{void}{SetOption}{\param{const wxString\&}{ name}, \param{const wxString\&}{ value}} | |
94 | ||
95 | \func{void}{SetOption}{\param{const wxString\&}{ name}, \param{int}{ value}} | |
96 | ||
97 | Sets an option. The function is case-insensitive to {\it name}. | |
98 | ||
99 | \wxheading{See also} | |
100 | ||
101 | \helpref{wxSystemOptions::GetOption}{wxsystemoptionsgetoption},\rtfsp | |
102 | \helpref{wxSystemOptions::GetOptionInt}{wxsystemoptionsgetoptionint},\rtfsp | |
103 | \helpref{wxSystemOptions::HasOption}{wxsystemoptionshasoption} | |
104 |