prop_size_entry_new


Description:

[ CCode ( cname = "gimp_prop_size_entry_new" ) ]
[ Version ( since = "2.4" ) ]
public Widget prop_size_entry_new (Object config, string property_name, bool property_is_pixel, string unit_property_name, string unit_format, SizeEntryUpdatePolicy update_policy, double resolution)

Creates a SizeEntry to set and display the specified double or int property, and its associated unit property.

Note that this function is only suitable for creating a size entry holding a single value. Use prop_coordinates_new to create a size entry holding two values.

Parameters:

config

Object to which property is attached.

property_name

Name of int or double property.

property_is_pixel

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

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.

resolution

The resolution (in dpi) for the field.

Returns:

A new SizeEntry widget.


Namespace: GimpUi
Package: gimp-ui-3.0