# GimpUi.NumberPairEntry.new

    function new(separators: String, allow_simplification: Boolean, min_valid_value: Number(gdouble), max_valid_value: Number(gdouble)): Gtk.Widget {
        // Gjs wrapper for gimp_number_pair_entry_new()
    }

Creates a new GimpUi.NumberPairEntry widget, which is a GtkEntry that accepts two numbers separated by a separator. Typical input example with a 'x' separator: "377x233".

The widget supports simplification of the entered ratio when the input ends in '=', if "allow-simplification" is TRUE.

The "separators" property contains a string of characters valid as separators when parsing input. The first separator is used when displaying the current values.

It is possible to specify what range of values that shall be considered as valid when parsing user input, by changing "min-valid-value" and "max-valid-value".

The first separator of separators is used to display the current value.

Since 2.4

separators

  The allowed separators.

allow_simplification

  Whether to do simplification on the entered term.

min_valid_value

  The minimum allowed result value.

max_valid_value

  The maximum allowed result value.

Returns

  The new GimpUi.NumberPairEntry widget.