Gimp.Unit.get_by_id

function get_by_id(unit_id: Number(gint)): Gimp.Unit {
    // Gjs wrapper for gimp_unit_get_by_id()
}
  

Returns the unique [class@Unit] object corresponding to unit_id, which is the integer identifier as returned by [method@Unit.get_id].

Since 3.0

unit_id

The unit id.

Returns

the Gimp.Unit object with ID unit_id.