SmoothToggle.setProgress

void setProgress(float value)

Sets the progress to the given value (clamped).