8 double minValue_,
double maxValue_)
9 :
Setting(commandController_, name_, description_,
17 newValue =
std::clamp(val, minValue, maxValue);
FloatSetting(CommandController &commandController, std::string_view name, static_string_view description, double initialValue, double minValue, double maxValue)
void additionalInfo(TclObject &result) const override
Helper method for info().
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)
constexpr vecN< N, T > clamp(const vecN< N, T > &x, const vecN< N, T > &minVal, const vecN< N, T > &maxVal)
This file implemented 3 utility functions:
TclObject makeTclList(Args &&... args)