get_spin_scale


Description:

[ CCode ( cname = "gimp_procedure_dialog_get_spin_scale" ) ]
public unowned Widget get_spin_scale (string property, double factor)

Creates a new SpinScale for property which must necessarily be an integer or double property.

This can be used instead of get_widget in particular if you want to tweak the display factor. A typical example is showing a [0.0, 1.0] range as [0.0, 100.0] instead (factor = 100.0).

If a widget has already been created for this procedure, it will be returned instead (whatever its actual widget type).

Parameters:

this

the associated ProcedureDialog.

property

name of the int or double property to build a SpinScale for. It must be a property of the Procedure this has been created for.

factor

a display factor for the range shown by the widget. It must be set to 1.0 for integer properties.

Returns:

the Widget representing property. The object belongs to this and must not be freed.