get_size_entry


Description:

[ CCode ( cname = "gimp_procedure_dialog_get_size_entry" ) ]
public unowned Widget get_size_entry (string property, bool property_is_pixel, string unit_property, string unit_format, SizeEntryUpdatePolicy update_policy, double resolution)

Creates a new SizeEntry for property which must necessarily be an integer or double property.

The associated unit_property must be a GimpUnit or integer property.

If a widget has already been created for this procedure, it will be returned instead (whatever its actual widget type).

Parameters:

this

the associated ProcedureDialog.

property

name of the int property to build an entry for. It must be a property of the Procedure this has been created for.

property_is_pixel

when true, the property value is in pixels, and in the selected unit otherwise.

unit_property

name of unit property.

unit_format

a printf-like unit-format string used for unit labels.

update_policy

how the automatic pixel <-> real-world-unit calculations should be done.

resolution

the resolution (in dpi) for the field.

Returns:

the Widget representing property. The object belongs to this and must not be freed.