Gimp.Unit.get_number_of_built_in_units

function get_number_of_built_in_units(): Number(gint) {
    // Gjs wrapper for gimp_unit_get_number_of_built_in_units()
}
  

Returns the number of Gimp.Unit's which are hardcoded in the unit system (UNIT_INCH, UNIT_MM, UNIT_POINT, UNIT_PICA and the two "pseudo unit" UNIT_PIXEL).

Returns

The number of built-in units.