GimpUi.Ruler.prototype.set_unit

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

This sets the unit of the ruler.

Since 2.8

unit

the Gimp.Unit to set the ruler to