prop_coordinates_new


Description:

[ CCode ( cname = "gimp_prop_coordinates_new" ) ]
[ Version ( since = "2.4" ) ]
public Widget prop_coordinates_new (Object config, string x_property_name, string y_property_name, string unit_property_name, string unit_format, SizeEntryUpdatePolicy update_policy, double xresolution, double yresolution, bool has_chainbutton)

Creates a SizeEntry to set and display two double or int properties, which will usually represent X and Y coordinates, and their associated unit property.

If unit_format is null, the unit will default to inch. Otherwise it must be the name of a property of type gimpparamunit:

Parameters:

config

Object to which property is attached.

x_property_name

Name of int or double property for X coordinate.

y_property_name

Name of int or double property for Y coordinate.

unit_property_name

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.

xresolution

The resolution (in dpi) for the X coordinate.

yresolution

The resolution (in dpi) for the Y coordinate.

has_chainbutton

Whether to add a chainbutton to the size entry.

Returns:

A new SizeEntry widget.


Namespace: GimpUi
Package: gimp-ui-3.0