GimpUi.prop_size_entry_new

function prop_size_entry_new(config: GObject.Object, property_name: String, property_is_pixel: Boolean, unit_property_name: String, unit_format: String, update_policy: GimpUi.SizeEntryUpdatePolicy, resolution: Number(gdouble)): Gtk.Widget {
    // Gjs wrapper for gimp_prop_size_entry_new()
}
  

Creates a GimpUi.SizeEntry to set and display the specified double or int property, and its associated unit property. Note that this function is only suitable for creating a size entry holding a single value. Use GimpUi.prop_coordinates_new to create a size entry holding two values.

Since 2.4

config

Object to which property is attached.

property_name

Name of int or double property.

property_is_pixel

When true, the property value is in pixels, and in the selected unit otherwise.

unit_property_name

Name of unit property.

unit_format

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

update_policy

How the automatic pixel <-> real-world-unit calculations should be done.

resolution

The resolution (in dpi) for the field.

Returns

A new GimpUi.SizeEntry widget.