Creates a new SizeEntry widget.
To have all automatic calculations performed correctly, set up the widget in the following order:
For each input field:
The SizeEntry is derived from Grid and will have an empty border of one cell width on each side plus an empty column left of the UnitComboBox to allow the caller to add labels or a ChainButton.
| number_of_fields |
The number of input fields. |
| unit |
The initial unit. |
| unit_format |
A printf-like unit-format string as is used with |
| menu_show_pixels |
true if the unit menu should contain an item for GIMP_UNIT_PIXEL (ignored if the |
| menu_show_percent |
true if the unit menu should contain an item for GIMP_UNIT_PERCENT. |
| show_refval |
true if you want an extra "reference value" spinbutton per input field. |
| spinbutton_width |
The minimal horizontal size of the SpinButton's. |
| update_policy |
How the automatic pixel <-> real-world-unit calculations should be done. |
|
A Pointer to the new SizeEntry widget. |