Valuator.value

double value() const nothrow @nogc

Gets the current value of the valuator.

Returns

The current floating-point value
bool value(double val) nothrow @nogc

Sets the current value of the valuator.

The value is rounded to the nearest step (if step is non-zero) and then clamped to the range minimum, maximum.

Parameters

valThe new value

Returns

true if the value changed