gimpunit Provides a collection of predefined units and functions for creating user-defined units. Provides a collection of predefined units and functions for creating user-defined units. #GimpUnitMenu #GimpSizeEntry @GIMP_UNIT_PIXEL: @GIMP_UNIT_INCH: @GIMP_UNIT_MM: @GIMP_UNIT_POINT: @GIMP_UNIT_PICA: @GIMP_UNIT_END: @GIMP_UNIT_PERCENT: Returns the number of units which are known to the #GimpUnit system. @Returns: The number of defined units. Returns the number of #GimpUnit's which are hardcoded in the unit system (UNIT_INCH, UNIT_MM, UNIT_POINT, UNIT_PICA and the "pseudo unit" UNIT_PIXEL). @Returns: The number of built-in units. Returns the integer ID of the new #GimpUnit. Note that a new unit is always created with it's deletion flag set to #TRUE. You will have to set it to #FALSE with gimp_unit_set_deletion_flag() to make the unit definition persistent. @identifier: The unit's identifier string. @factor: The unit's factor (how many units are in one inch). @digits: The unit's suggested number of digits (see gimp_unit_get_digits()). @symbol: The symbol of the unit (e.g. "''" for inch). @abbreviation: The abbreviation of the unit. @singular: The singular form of the unit. @plural: The plural form of the unit. @Returns: The ID of the new unit. @unit: The unit you want to know the @deletion_flag of. @Returns: The unit's @deletion_flag. Sets a #GimpUnit's @deletion_flag. If the @deletion_flag of a unit is #TRUE when GIMP exits, this unit will not be saved in the uses's "unitrc" file. Trying to change the @deletion_flag of a built-in unit will be silently ignored. @unit: The unit you want to set the @deletion_flag for. @deletion_flag: The new deletion_flag. A #GimpUnit's @factor is defined to be: distance_in_units == (@factor * distance_in_inches) Returns 0 for @unit == GIMP_UNIT_PIXEL. @unit: The unit you want to know the factor of. @Returns: The unit's factor. Returns the number of digits an entry field should provide to get approximately the same accuracy as an inch input field with two digits. Returns 0 for @unit == GIMP_UNIT_PIXEL. @unit: The unit you want to know the digits of. @Returns: The suggested number of digits. This is an unstranslated string. NOTE: This string has to be g_free()'d by plugins but is a pointer to a constant string when this function is used from inside the GIMP. @unit: The unit you want to know the identifier of. @Returns: The unit's identifier. This is e.g. "''" for UNIT_INCH. NOTE: This string has to be g_free()'d by plugins but is a pointer to a constant string when this function is used from inside the GIMP. @unit: The unit you want to know the symbol of. @Returns: The unit's symbol. For built-in units, this function returns the translated abbreviation of the unit. NOTE: This string has to be g_free()'d by plugins but is a pointer to a constant string when this function is used from inside the GIMP. @unit: The unit you want to know the abbreviation of. @Returns: The unit's abbreviation. For built-in units, this function returns the translated singular form of the unit's name. NOTE: This string has to be g_free()'d by plugins but is a pointer to a constant string when this function is used from inside the GIMP. @unit: The unit you want to know the singular form of. @Returns: The unit's singular form. For built-in units, this function returns the translated plural form of the unit's name. NOTE: This string has to be g_free()'d by plugins but is a pointer to a constant string when this function is used from inside the GIMP. @unit: The unit you want to know the plural form of. @Returns: The unit's plural form.