Scale.setDigits

Sets the number of decimal places to which the value is rounded when it is changed. This also sets the number of digits shown in the displayed value when using the default handler for the #GtkScale::format-value signal.

Note that rounding to a small number of digits can interfere with the smooth autoscrolling that is built into #GtkScale. As an alternative, you can use the #GtkScale::format-value signal to format the displayed value yourself.

class Scale
void
setDigits
(
int digits
)

Parameters

digits int

the number of decimal places to which the value will be rounded

Meta