# Gimp.Unit

    const Gimp = imports.gi.Gimp;

    let unit = new Gimp.Unit();

Provides a collection of predefined units and functions for creating user-defined units.

## Hierarchy

- Gimp.Unit

## Constructors

- Gimp.Unit.new

## Methods

- Gimp.Unit.prototype.get_abbreviation
- Gimp.Unit.prototype.get_deletion_flag
- Gimp.Unit.prototype.get_digits
- Gimp.Unit.prototype.get_factor
- Gimp.Unit.prototype.get_identifier
- Gimp.Unit.prototype.get_plural
- Gimp.Unit.prototype.get_scaled_digits
- Gimp.Unit.prototype.get_singular
- Gimp.Unit.prototype.get_symbol
- Gimp.Unit.prototype.is_metric
- Gimp.Unit.prototype.set_deletion_flag

## Static Functions

- Gimp.Unit.format_string
- Gimp.Unit.get_number_of_built_in_units
- Gimp.Unit.get_number_of_units