Constructor
GimpUiSpinButtonnew_with_range
since: 2.10.10
Declaration [src]
GtkWidget*
gimp_spin_button_new_with_range (
gdouble min,
gdouble max,
gdouble step
)
Description [src]
This is a convenience constructor that allows creation of a numeric
GimpSpinButton
without manually creating an adjustment. The value is
initially set to the minimum value and a page increment of 10 * step
is the default. The precision of the spin button is equivalent to the
precision of step
.
Note that the way in which the precision is derived works best if step
is a power of ten. If the resulting precision is not suitable for your
needs, use gtk_spin_button_set_digits()
to correct it.
Available since: 2.10.10
Parameters
min
-
Type:
gdouble
Minimum allowable value.
max
-
Type:
gdouble
Maximum allowable value.
step
-
Type:
gdouble
Increment added or subtracted by spinning the widget.
Return value
Type: GtkWidget
The new spin button as a GtkWidget
.
The data is owned by the called function. |