gimp-unit-new

Michael Natterer <mitch@gimp.org>

Description

Creates a new unit and returns it's integer ID.

Help

This procedure creates a new unit and returns it's integer ID. Note that the new unit will have it's deletion flag set to TRUE, so you will have to set it to FALSE with 'gimp-unit-set-deletion-flag' to make it persistent.


Type

unknown

Parameters

Type Name Description
PF_VALUE identifier The new unit's identifier
PF_FLOAT factor The new unit's factor
PF_INT digits The new unit's digits
PF_VALUE symbol The new unit's symbol
PF_VALUE abbreviation The new unit's abbreviation
PF_VALUE singular The new unit's singular form
PF_VALUE plural The new unit's plural form

Return

Type Name Description
PF_INT unit-id The new unit's ID