]>
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 | } | |
21 | \twocolitem{mgl.aa-threshold}{(wxMGL only) Screen refresh rate in Hz. | |
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 | ||
08f1d438 | 39 | \membersection{wxSystemOptions::wxSystemOptions}\label{wxsystemoptionsctor} |
0cbff120 JS |
40 | |
41 | \func{}{wxSystemOptions}{\void} | |
42 | ||
43 | Default constructor. You don't need to create an instance of wxSystemOptions | |
44 | since all of its functions are static. | |
45 | ||
46 | \membersection{wxSystemOptions::GetOption}\label{wxsystemoptionsgetoption} | |
47 | ||
48 | \constfunc{wxString}{GetOption}{\param{const wxString\&}{ name}} | |
49 | ||
50 | Gets an option. The function is case-insensitive to {\it name}. | |
51 | ||
52 | \wxheading{See also} | |
53 | ||
54 | \helpref{wxSystemOptions::SetOption}{wxsystemoptionssetoption},\rtfsp | |
55 | \helpref{wxSystemOptions::GetOptionInt}{wxsystemoptionsgetoptionint},\rtfsp | |
56 | \helpref{wxSystemOptions::HasOption}{wxsystemoptionshasoption} | |
57 | ||
58 | \membersection{wxSystemOptions::GetOptionInt}\label{wxsystemoptionsgetoptionint} | |
59 | ||
60 | \constfunc{int}{GetOptionInt}{\param{const wxString\&}{ name}} | |
61 | ||
62 | Gets an option as an integer. The function is case-insensitive to {\it name}. | |
63 | ||
64 | \wxheading{See also} | |
65 | ||
66 | \helpref{wxSystemOptions::SetOption}{wxsystemoptionssetoption},\rtfsp | |
67 | \helpref{wxSystemOptions::GetOption}{wxsystemoptionsgetoption},\rtfsp | |
68 | \helpref{wxSystemOptions::HasOption}{wxsystemoptionshasoption} | |
69 | ||
70 | \membersection{wxSystemOptions::HasOption}\label{wxsystemoptionshasoption} | |
71 | ||
72 | \constfunc{bool}{HasOption}{\param{const wxString\&}{ name}} | |
73 | ||
cc81d32f | 74 | Returns true if the given option is present. The function is case-insensitive to {\it name}. |
0cbff120 JS |
75 | |
76 | \wxheading{See also} | |
77 | ||
78 | \helpref{wxSystemOptions::SetOption}{wxsystemoptionssetoption},\rtfsp | |
79 | \helpref{wxSystemOptions::GetOption}{wxsystemoptionsgetoption},\rtfsp | |
80 | \helpref{wxSystemOptions::GetOptionInt}{wxsystemoptionsgetoptionint} | |
81 | ||
82 | \membersection{wxSystemOptions::SetOption}\label{wxsystemoptionssetoption} | |
83 | ||
84 | \func{void}{SetOption}{\param{const wxString\&}{ name}, \param{const wxString\&}{ value}} | |
85 | ||
86 | \func{void}{SetOption}{\param{const wxString\&}{ name}, \param{int}{ value}} | |
87 | ||
88 | Sets an option. The function is case-insensitive to {\it name}. | |
89 | ||
90 | \wxheading{See also} | |
91 | ||
92 | \helpref{wxSystemOptions::GetOption}{wxsystemoptionsgetoption},\rtfsp | |
93 | \helpref{wxSystemOptions::GetOptionInt}{wxsystemoptionsgetoptionint},\rtfsp | |
94 | \helpref{wxSystemOptions::HasOption}{wxsystemoptionshasoption} | |
95 |