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. |
msw.remap | (wxMSW only) If 1 (the default), wxToolBar bitmap colours will be remapped to the current theme's values. Set this to 0 to disable this functionality, for example if you're using more than 16 colours in your tool bitmaps. |
mgl.aa-threshold | (wxMGL only) Set this integer option to point size below which fonts are not antialiased. Default: 10. |
mgl.screen-refresh | (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.
Returns empty string if the option hasn't been set.
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.
If the option hasn't been set, this function returns 0.
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