8 double minValue_,
double maxValue_,
10 :
Setting(commandController_, name_, description_,
18 newValue = std::clamp(val, minValue, maxValue);
void additionalInfo(TclObject &result) const override
Helper method for info().
FloatSetting(CommandController &commandController, std::string_view name, static_string_view description, double initialValue, double minValue, double maxValue, Save save=Save::YES)
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.
Interpreter & getInterpreter() const
void setValue(const TclObject &newValue) final
Change the value of this setting to the given value.
double getDouble(Interpreter &interp) const
void addListElement(const T &t)
This file implemented 3 utility functions:
TclObject makeTclList(Args &&... args)