GimpUi » GimpUi.SizeEntry »

GimpUi.SizeEntry.prototype.set_unit

function set_unit(unit: Gimp.Unit): void {
    // Gjs wrapper for gimp_size_entry_set_unit()
}
  

Sets the GimpUi.SizeEntry's unit. The reference value for all fields will stay the same but the value in units or pixels per unit will change according to which GimpUi.SizeEntryUpdatePolicy you chose in GimpUi.SizeEntry.new.

unit

The new unit.

More Information

  • GimpUi.SizeEntry