wxSystemOptions stores option/value pairs that wxWidgets itself or applications can use to alter behaviour at run-time. It can be used to optimize behaviour that doesn't deserve a distinct API, but is still important to be able to configure.
These options are currently recognised by wxWidgets:
Option | Value |
no-maskblt |
1 to never use WIN32's MaskBlt function, 0 to allow it to be used where possible. Default: 0. In some circumstances the MaskBlt function can be slower than using the fallback code, especially if using DC cacheing. By default, MaskBlt will be used where it is implemented by the operating system and driver. |
mgl.aa-threshold | (wxMGL only) Set this integer option to point size below which fonts are not antialiased. Default: 10. |
mgl.aa-threshold | (wxMGL only) Screen refresh rate in Hz. Reasonable default is used if not specified. |
The compile-time option to include or exclude this functionality is wxUSE_SYSTEM_OPTIONS.
Derived from
Include files
<wx/sysopt.h>
Members
wxSystemOptions::wxSystemOptions
wxSystemOptions::GetOption
wxSystemOptions::GetOptionInt
wxSystemOptions::HasOption
wxSystemOptions::SetOption
wxSystemOptions()
Default constructor. You don't need to create an instance of wxSystemOptions since all of its functions are static.
wxString GetOption(const wxString& name) const
Gets an option. The function is case-insensitive to name.
See also
wxSystemOptions::SetOption, wxSystemOptions::GetOptionInt, wxSystemOptions::HasOption
int GetOptionInt(const wxString& name) const
Gets an option as an integer. The function is case-insensitive to name.
See also
wxSystemOptions::SetOption, wxSystemOptions::GetOption, wxSystemOptions::HasOption
bool HasOption(const wxString& name) const
Returns true if the given option is present. The function is case-insensitive to name.
See also
wxSystemOptions::SetOption, wxSystemOptions::GetOption, wxSystemOptions::GetOptionInt
void SetOption(const wxString& name, const wxString& value)
void SetOption(const wxString& name, int value)
Sets an option. The function is case-insensitive to name.
See also
wxSystemOptions::GetOption, wxSystemOptions::GetOptionInt, wxSystemOptions::HasOption