get_coordinates


Description:

[ CCode ( cname = "gimp_procedure_dialog_get_coordinates" ) ]
public unowned Widget get_coordinates (string coordinates_id, string x_property, string y_property, string unit_property, string unit_format, SizeEntryUpdatePolicy update_policy, double x_resolution, double y_resolution)

Creates a new GimpCoordinatess for x_property and y_property which must necessarily be an integer or double property.

The associated unit_property must be a GimpUnit 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.

coordinates_id

Identifier for GimpCoordinatess widget.

x_property

Name of int or double property for X coordinate.

y_property

Name of int or double property for Y coordinate.

unit_property

Name of unit property.

unit_format

A printf-like unit-format string as is used with gimp_unit_menu_new.

update_policy

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

x_resolution

The resolution (in dpi) for the X coordinate.

y_resolution

The resolution (in dpi) for the Y coordinate.

Returns:

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