# GimpUi.coordinates_new

    function coordinates_new(unit: Gimp.Unit, unit_format: String, menu_show_pixels: Boolean, menu_show_percent: Boolean, spinbutton_width: Number(gint), update_policy: GimpUi.SizeEntryUpdatePolicy, chainbutton_active: Boolean, chain_constrains_ratio: Boolean, xlabel: String, x: Number(gdouble), xres: Number(gdouble), lower_boundary_x: Number(gdouble), upper_boundary_x: Number(gdouble), xsize_0: Number(gdouble), xsize_100: Number(gdouble), ylabel: String, y: Number(gdouble), yres: Number(gdouble), lower_boundary_y: Number(gdouble), upper_boundary_y: Number(gdouble), ysize_0: Number(gdouble), ysize_100: Number(gdouble)): Gtk.Widget {
        // Gjs wrapper for gimp_coordinates_new()
    }

Convenience function that creates a GimpUi.SizeEntry with two fields for x/y coordinates/sizes with a GimpUi.ChainButton attached to constrain either the two fields' values or the ratio between them.

unit

  The initial unit of the #GimpUnitMenu.

unit_format

  A printf-like unit-format string as is used with gimp_unit_menu_new().

menu_show_pixels

  true if the #GimpUnitMenu should contain an item for GIMP_UNIT_PIXEL.

menu_show_percent

  true if the #GimpUnitMenu should contain an item for GIMP_UNIT_PERCENT.

spinbutton_width

  The horizontal size of the GimpUi.SizeEntry's Gtk.SpinButton's.

update_policy

  The update policy for the GimpUi.SizeEntry.

chainbutton_active

  true if the attached GimpUi.ChainButton should be active.

chain_constrains_ratio

  true if the chainbutton should constrain the fields' aspect ratio. If false, the values will be constrained.

xlabel

  The label for the X coordinate.

x

  The initial value of the X coordinate.

xres

  The horizontal resolution in DPI.

lower_boundary_x

  The lower boundary of the X coordinate.

upper_boundary_x

  The upper boundary of the X coordinate.

xsize_0

  The X value which will be treated as 0%.

xsize_100

  The X value which will be treated as 100%.

ylabel

  The label for the Y coordinate.

y

  The initial value of the Y coordinate.

yres

  The vertical resolution in DPI.

lower_boundary_y

  The lower boundary of the Y coordinate.

upper_boundary_y

  The upper boundary of the Y coordinate.

ysize_0

  The Y value which will be treated as 0%.

ysize_100

  The Y value which will be treated as 100%.

Returns

  The new GimpUi.SizeEntry.