1 \section{\class{wxSystemOptions
}}\label{wxsystemoptions
}
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.
8 These options are currently recognised by wxWidgets:
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.
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.
18 \twocolitem{mgl.aa-threshold
}{(wxMGL only) Set this integer option to point
19 size below which fonts are not antialiased. Default:
10.
21 \twocolitem{mgl.screen-refresh
}{(wxMGL only) Screen refresh rate in Hz.
22 Reasonable default is used if not specified.
26 The compile-time option to include or exclude this functionality
27 is wxUSE
\_SYSTEM\_OPTIONS.
29 \wxheading{Derived from
}
31 \helpref{wxObject
}{wxobject
}
33 \wxheading{Include files
}
37 \latexignore{\rtfignore{\wxheading{Members
}}}
40 \membersection{wxSystemOptions::wxSystemOptions
}\label{wxsystemoptionsctor
}
42 \func{}{wxSystemOptions
}{\void}
44 Default constructor. You don't need to create an instance of wxSystemOptions
45 since all of its functions are static.
48 \membersection{wxSystemOptions::GetOption
}\label{wxsystemoptionsgetoption
}
50 \constfunc{wxString
}{GetOption
}{\param{const wxString\&
}{ name
}}
52 Gets an option. The function is case-insensitive to
{\it name
}.
54 Returns empty string if the option hasn't been set.
58 \helpref{wxSystemOptions::SetOption
}{wxsystemoptionssetoption
},
\rtfsp
59 \helpref{wxSystemOptions::GetOptionInt
}{wxsystemoptionsgetoptionint
},
\rtfsp
60 \helpref{wxSystemOptions::HasOption
}{wxsystemoptionshasoption
}
63 \membersection{wxSystemOptions::GetOptionInt
}\label{wxsystemoptionsgetoptionint
}
65 \constfunc{int
}{GetOptionInt
}{\param{const wxString\&
}{ name
}}
67 Gets an option as an integer. The function is case-insensitive to
{\it name
}.
69 If the option hasn't been set, this function returns $
0$.
73 \helpref{wxSystemOptions::SetOption
}{wxsystemoptionssetoption
},
\rtfsp
74 \helpref{wxSystemOptions::GetOption
}{wxsystemoptionsgetoption
},
\rtfsp
75 \helpref{wxSystemOptions::HasOption
}{wxsystemoptionshasoption
}
78 \membersection{wxSystemOptions::HasOption
}\label{wxsystemoptionshasoption
}
80 \constfunc{bool
}{HasOption
}{\param{const wxString\&
}{ name
}}
82 Returns
\true if the given option is present. The function is case-insensitive to
{\it name
}.
86 \helpref{wxSystemOptions::SetOption
}{wxsystemoptionssetoption
},
\rtfsp
87 \helpref{wxSystemOptions::GetOption
}{wxsystemoptionsgetoption
},
\rtfsp
88 \helpref{wxSystemOptions::GetOptionInt
}{wxsystemoptionsgetoptionint
}
91 \membersection{wxSystemOptions::SetOption
}\label{wxsystemoptionssetoption
}
93 \func{void
}{SetOption
}{\param{const wxString\&
}{ name
},
\param{const wxString\&
}{ value
}}
95 \func{void
}{SetOption
}{\param{const wxString\&
}{ name
},
\param{int
}{ value
}}
97 Sets an option. The function is case-insensitive to
{\it name
}.
101 \helpref{wxSystemOptions::GetOption
}{wxsystemoptionsgetoption
},
\rtfsp
102 \helpref{wxSystemOptions::GetOptionInt
}{wxsystemoptionsgetoptionint
},
\rtfsp
103 \helpref{wxSystemOptions::HasOption
}{wxsystemoptionshasoption
}