]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/sysopt.tex
cross-reference types in the generated docs (patch 1038083)
[wxWidgets.git] / docs / latex / wx / sysopt.tex
1 \section{\class{wxSystemOptions}}\label{wxsystemoptions}
2
3 wxSystemOptions stores option/value pairs that wxWidgets itself or
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
8 These options are currently recognised by wxWidgets:
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 }
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.screen-refresh}{(wxMGL only) Screen refresh rate in Hz.
22 Reasonable default is used if not specified.
23 }
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
39
40 \membersection{wxSystemOptions::wxSystemOptions}\label{wxsystemoptionsctor}
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
47
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
54 Returns empty string if the option hasn't been set.
55
56 \wxheading{See also}
57
58 \helpref{wxSystemOptions::SetOption}{wxsystemoptionssetoption},\rtfsp
59 \helpref{wxSystemOptions::GetOptionInt}{wxsystemoptionsgetoptionint},\rtfsp
60 \helpref{wxSystemOptions::HasOption}{wxsystemoptionshasoption}
61
62
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
69 If the option hasn't been set, this function returns $0$.
70
71 \wxheading{See also}
72
73 \helpref{wxSystemOptions::SetOption}{wxsystemoptionssetoption},\rtfsp
74 \helpref{wxSystemOptions::GetOption}{wxsystemoptionsgetoption},\rtfsp
75 \helpref{wxSystemOptions::HasOption}{wxsystemoptionshasoption}
76
77
78 \membersection{wxSystemOptions::HasOption}\label{wxsystemoptionshasoption}
79
80 \constfunc{bool}{HasOption}{\param{const wxString\&}{ name}}
81
82 Returns \true if the given option is present. The function is case-insensitive to {\it name}.
83
84 \wxheading{See also}
85
86 \helpref{wxSystemOptions::SetOption}{wxsystemoptionssetoption},\rtfsp
87 \helpref{wxSystemOptions::GetOption}{wxsystemoptionsgetoption},\rtfsp
88 \helpref{wxSystemOptions::GetOptionInt}{wxsystemoptionsgetoptionint}
89
90
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