GimpUi.SizeEntry.prototype.add_field

function add_field(value_spinbutton: Gtk.SpinButton, refval_spinbutton: Gtk.SpinButton): void {
    // Gjs wrapper for gimp_size_entry_add_field()
}
  

Adds an input field to the GimpUi.SizeEntry.

The new input field will have the index 0. If you specified @show_refval as true in GimpUi.SizeEntry.new you have to pass an additional Gtk.SpinButton to hold the reference value. If @show_refval was false, refval_spinbutton will be ignored.

value_spinbutton

The spinbutton to display the field's value.

refval_spinbutton

The spinbutton to display the field's reference value.