wxSystemOptions(3erl)
π NAME π
Bestie, this is the wxSystemOptions(3erl) manual page β Erlang module definition energy β and it's all about wxSystemOptions: Functions for wxSystemOptions class. π
β¨ DESCRIPTION β¨
Okay so 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. No cap. β¨
System options can be set by the program itself using the setOption/2 method and they also can be set from the program environment by defining an environment variable wx_option to set the given option for all wxWidgets applications or wx_appname_option to set it just for the application with the given name (as returned by wxApp::GetAppName() (not implemented in wx)). Notice that any characters not allowed in the environment variables names, such as periods and dashes, should be replaced with underscores. E.g. to define a system option "foo-bar" you need to define the environment variable "wx_foo_bar". π«Ά
The program may use system options for its own needs but they are mostly used to control the behaviour of wxWidgets library itself.
These options are currently recognised by wxWidgets:
- All platforms
- Windows
- GTK+
- Mac
- Motif
The compile-time option to include or exclude this functionality is wxUSE_SYSTEM_OPTIONS.
See: wxSystemSettings
wxWidgets docs: wxSystemOptions
π DATA TYPES π
wxSystemOptions() = wx:wx_object()
π₯ EXPORTS π₯
getOption(Name) -> unicode:charlist()- Types:
Name = unicode:chardata() - Gets an option. The function is case-insensitive to
name. Returns empty string if the option hasn't been set. - See:
setOption/2,getOptionInt/1,hasOption/1
- Types:
getOptionInt(Name) -> integer()- Types:
Name = unicode:chardata() - Gets an option as an integer. The function is case-insensitive to
name. If the option hasn't been set, this function returns0. - See:
setOption/2,getOption/1,hasOption/1
- Types:
hasOption(Name) -> boolean()- Types:
Name = unicode:chardata() - Returns
trueif the given option is present. The function is case-insensitive toname. - See:
setOption/2,getOption/1,getOptionInt/1
- Types:
isFalse(Name) -> boolean()- Types:
Name = unicode:chardata() - Returns
trueif the option with the given name had been set to0value. This is mostly useful for boolean options for which you can't useGetOptionInt(name) == 0as this would also be true if the option hadn't been set at all.
- Types:
setOption(Name, Value) -> ok- Types:
Name = Value = unicode:chardata() - Sets an option. The function is case-insensitive to
name.
- Types:
setOption(Name, Value) -> ok- Types:
Name = Value = unicode:chardata() - Sets an option. The function is case-insensitive to
name.
- Types:
Yep, setOption is listed twice in the page, so both copies are staying β details are sacred, bestie. π
Footer sign-off, straight from the page: wxWidgets team. β wx 2.2.2.1 β wxSystemOptions(3erl). Slay. π
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms