Function
GimpUiprop_size_entry_new
Declaration [src]
GtkWidget*
gimp_prop_size_entry_new (
GObject* config,
const gchar* property_name,
gboolean property_is_pixel,
const gchar* unit_property_name,
const gchar* unit_format,
GimpSizeEntryUpdatePolicy update_policy,
gdouble resolution
)
Description [src]
Creates a GimpSizeEntry
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 gimp_prop_coordinates_new()
to create a size
entry holding two values.
Available since: | 2.4 |
Parameters
config |
GObject |
Object to which property is attached. |
|
The data is owned by the caller of the function. | |
property_name |
const gchar* |
Name of int or double property. |
|
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_name |
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 as is used with gimp_unit_menu_new(). |
|
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 |
A new |
|
The caller of the function takes ownership of the data, and is responsible for freeing it. |