15 double initialValue,
double minValue,
double maxValue);
17 [[nodiscard]] std::string_view
getTypeString()
const override;
25 const double minValue;
26 const double maxValue;
A Setting with a floating point value.
double getDouble() const noexcept
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 ...
float getFloat() const noexcept
Interpreter & getInterpreter() const
const TclObject & getValue() const final
Gets the current value of this setting as a TclObject.
double getDouble(Interpreter &interp) const
float getFloat(Interpreter &interp) const
This file implemented 3 utility functions: