# GimpUi.ScaleEntry.prototype.set_bounds

    function set_bounds(lower: Number(gdouble), upper: Number(gdouble), limit_scale: Boolean): void {
        // Gjs wrapper for gimp_scale_entry_set_bounds()
    }

By default the Gtk.SpinButton and Gtk.Scale will have the same range. In some case, you want to set a different range. In particular when the finale range is huge, the Gtk.Scale might become nearly useless as every tiny slider move would dramatically update the value. In this case, it is common to set the Gtk.Scale to a smaller common range, while the Gtk.SpinButton would allow for the full allowed range. This function allows this. Obviously the Gtk.Adjustment of both widgets would be synced but if the set value is out of the Gtk.Scale range, the slider would simply show at one extreme.

If limit_scale is false though, it would sync back both widgets range to the new values.

Note that the step and page increments are updated when the range is updated according to some common usage algorithm which should work if you don't have very specific needs. If you want to customize the step increments yourself, you may call GimpUi.LabelSpin.prototype.set_increments

lower

  the lower value for the whole widget if limit_scale is false, or only for the Gtk.Scale if true.

upper

  the upper value for the whole widget if limit_scale is false, or only for the Gtk.SpinButton if true.

limit_scale

  Whether the range should only apply to the Gtk.Scale or if it should share its #GtkAdjustement with the Gtk.SpinButton. If true, both lower and upper must be included in current Gtk.SpinButton range.