]>
git.saurik.com Git - wxWidgets.git/blob - interface/sysopt.h
879e600c55013d43bb3f46ce70c49f99baa34ab6
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: documentation for wxSystemOptions class
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
10 @class wxSystemOptions
13 wxSystemOptions stores option/value pairs that wxWidgets itself or
14 applications can use to alter behaviour at run-time. It can be
15 used to optimize behaviour that doesn't deserve a distinct API,
16 but is still important to be able to configure.
18 These options are currently recognised by wxWidgets.
24 wxSystemOptions::SetOption, wxSystemOptions::GetOptionInt,
25 wxSystemOptions::HasOption
27 class wxSystemOptions
: public wxObject
31 Default constructor. You don't need to create an instance of wxSystemOptions
32 since all of its functions are static.
37 Gets an option. The function is case-insensitive to @e name.
39 Returns empty string if the option hasn't been set.
41 @sa SetOption(), GetOptionInt(),
44 wxString
GetOption(const wxString
& name
);
47 Gets an option as an integer. The function is case-insensitive to @e name.
49 If the option hasn't been set, this function returns 0.
51 @sa SetOption(), GetOption(),
54 int GetOptionInt(const wxString
& name
);
57 Returns @true if the given option is present. The function is
58 case-insensitive to @e name.
60 @sa SetOption(), GetOption(),
63 bool HasOption(const wxString
& name
);
66 Returns @true if the option with the given @e name had been set to 0
67 value. This is mostly useful for boolean options for which you can't use
68 @c GetOptionInt(name) == 0 as this would also be @true if the option
69 hadn't been set at all.
71 bool IsFalse(const wxString
& name
);
75 Sets an option. The function is case-insensitive to @e name.
77 void SetOption(const wxString
& name
, const wxString
& value
);
78 void SetOption(const wxString
& name
, int value
);