Method
GimpUiProcedureDialogget_size_entry
Declaration [src]
GtkWidget*
gimp_procedure_dialog_get_size_entry (
GimpProcedureDialog* dialog,
const gchar* property,
gboolean property_is_pixel,
const gchar* unit_property,
const gchar* unit_format,
GimpSizeEntryUpdatePolicy update_policy,
gdouble resolution
)
Description [src]
Creates a new GimpSizeEntry
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
property |
const gchar* |
Name of the int property to build an entry for.
It must be a property of the |
|
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
property_is_pixel |
gboolean |
When |
|
unit_property |
const gchar* |
Name of unit property. |
|
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
unit_format |
const gchar* |
A printf-like unit-format string used for unit labels. |
|
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
update_policy |
GimpSizeEntryUpdatePolicy |
How the automatic pixel <-> real-world-unit calculations should be done. |
|
resolution |
gdouble |
The resolution (in dpi) for the field. |
Return value
Returns: | GtkWidget |
The |
|
The data is owned by the instance. |