9 :
Setting(commandController_, name_, description_,
KeyCodeSetting(CommandController &commandController, std::string_view name, static_string_view description, Keys::KeyCode initialValue)
Keys::KeyCode getKey() const noexcept
std::string_view getTypeString() const override
Returns a string describing the setting type (integer, string, ..) Could be used in a GUI to pick an ...
void setChecker(std::function< void(TclObject &)> checkFunc_)
Set value-check-callback.
const TclObject & getValue() const final
Gets the current value of this setting as a TclObject.
zstring_view getString() const
KeyCode
Constants that identify keys and key modifiers.
KeyCode getCode(string_view name)
Translate key name to key code.
std::string getName(KeyCode keyCode)
Translate key code to key name.
This file implemented 3 utility functions: