# GimpUi.prop_scale_entry_new

    function prop_scale_entry_new(config: GObject.Object, property_name: String, label: String, factor: Number(gdouble), limit_scale: Boolean, lower_limit: Number(gdouble), upper_limit: Number(gdouble)): Gtk.Widget {
        // Gjs wrapper for gimp_prop_scale_entry_new()
    }

Creates a GimpUi.ScaleEntry (slider and spin button) to set and display the value of a specified int or double property with sensible default settings depending on the range (decimal places, increments, etc.). These settings can be overridden by the relevant widget methods.

If label is null, the property_name's nick will be used as label of the returned object.

If factor is not 1.0, the widget's range will be computed based of property_name's range multiplied by factor. A typical usage would be to display a [0.0, 1.0] range as [0.0, 100.0] by setting 100.0 as factor.

See GimpUi.ScaleEntry.prototype.set_bounds for more information on limit_scale, lower_limit and upper_limit.

Since 2.4

config

  Object to which property is attached.

property_name

  Name of integer or double property controlled by the scale.

label

  The text for the Gtk.Label which will appear left of the Gtk.Scale.

factor

  Optional multiplier to convert property_name's range into the GimpUi.ScaleEntry's range. The common usage is to set 1.0. For non-double properties, no other values than 1.0 are acceptable.

limit_scale

  false if the range of possible values of the GtkScale should be the same as of the GtkSpinButton.

lower_limit

  The scale's lower boundary if @scale_limits is true.

upper_limit

  The scale's upper boundary if @scale_limits is true.

Returns

  The newly allocated GimpUi.ScaleEntry.